scoreboard players operation @s faceDirection = @s lastDirection

tag @s[tag=moved] remove moved

execute if entity @s[tag=!moved,tag=!arm_disconnected,scores={faceDirection=1}] run function bd:movement/face1
execute if entity @s[tag=!moved,tag=!arm_disconnected,scores={faceDirection=3}] run function bd:movement/face3
execute if entity @s[tag=!moved,tag=!arm_disconnected,scores={faceDirection=5}] run function bd:movement/face5
execute if entity @s[tag=!moved,tag=!arm_disconnected,scores={faceDirection=7}] run function bd:movement/face7

execute if entity @s[tag=!moved,tag=arm_disconnected,scores={faceDirection=1}] run function bd:movement/armless_face1
execute if entity @s[tag=!moved,tag=arm_disconnected,scores={faceDirection=3}] run function bd:movement/armless_face3
execute if entity @s[tag=!moved,tag=arm_disconnected,scores={faceDirection=5}] run function bd:movement/armless_face5
execute if entity @s[tag=!moved,tag=arm_disconnected,scores={faceDirection=7}] run function bd:movement/armless_face7

tag @s[tag=moved] remove moved

#tellraw @a ["",{"score":{"name":"@s","objective":"faceDirection"}}]