
# -> South
execute if entity @s[y_rotation=-45..45] run \
    return run \
        scoreboard players set #or.custom_block.player_rotation_0 OverlyRealistic.General.ArbitraryData 0

# -> East
execute if entity @s[y_rotation=-134..-44] run \
    return run \
        scoreboard players set #or.custom_block.player_rotation_0 OverlyRealistic.General.ArbitraryData 1

# -> West
execute if entity @s[y_rotation=-46..134] run \
    return run \
        scoreboard players set #or.custom_block.player_rotation_0 OverlyRealistic.General.ArbitraryData 2

# -> North
scoreboard players set #or.custom_block.player_rotation_0 OverlyRealistic.General.ArbitraryData 3
