
# -> Set cooking board
execute on passengers run \
    item replace entity @s contents from entity 00000001-0000-002b-0000-00010000002b contents

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

# --> Set display rotation

# -> South
execute if score #or.custom_block.player_rotation_0 OverlyRealistic.General.ArbitraryData matches 0 \
    on passengers run \
        return run \
            rotate @s 0 ~

# -> East
execute if score #or.custom_block.player_rotation_0 OverlyRealistic.General.ArbitraryData matches 1 \
    on passengers run \
        return run \
            rotate @s -90 ~

# -> West
execute if score #or.custom_block.player_rotation_0 OverlyRealistic.General.ArbitraryData matches 2 \
    on passengers run \
        return run \
            rotate @s 90 ~

# -> North
execute on passengers run \
    rotate @s 180 ~
