
# -> Remove temp tag
tag @s remove OverlyRealistic.Block.LargeShip_TempBase0

# -> Move upwards
tp @s ~ ~9992 ~

# -> Rotation IDs
# 0 = North
# 1 = East
# 2 = West
# 3 = South

# --> Rotate

# -> North
execute if score #or.ship_setup_facing_direction OverlyRealistic.General.ArbitraryData matches 0 run \
    return run \
        function overly_realistic:general/custom_blocks/ship_setup/rotate_ship/rotate_north

# -> East
execute if score #or.ship_setup_facing_direction OverlyRealistic.General.ArbitraryData matches 1 run \
    return run \
        function overly_realistic:general/custom_blocks/ship_setup/rotate_ship/rotate_east

# -> West
execute if score #or.ship_setup_facing_direction OverlyRealistic.General.ArbitraryData matches 2 run \
    return run \
        function overly_realistic:general/custom_blocks/ship_setup/rotate_ship/rotate_west

# -> South
function overly_realistic:general/custom_blocks/ship_setup/rotate_ship/rotate_south
