
# -> Remove player's item if possible
execute on target run \
    item replace entity @s[gamemode=!creative] weapon.mainhand with air

# -> Advancement
execute on target run \
    advancement grant @s only overly_realistic:advancements/iron_age/now_boarding

# -> Create chest minecart
summon chest_minecart ~ ~ ~ {Tags:["OverlyRealistic.Entity.TempLargeShipPartEnt"]}

# -> Attach new entity
ride @n[type=chest_minecart,tag=OverlyRealistic.Entity.TempLargeShipPartEnt,dx=0,dy=0,dz=0] mount @s

# -> Match rotation
execute on passengers run \
    rotate @s ~90 ~
