#pushables?
execute positioned ~ ~1 ~ if block ~ ~ ~ #bd:pushable run function bd:movement/object/try_move_up

#arm stuff
#breakables
execute if entity @s[tag=player_char,tag=!arm_disconnected,scores={faceDirection=1}] positioned ~ ~1 ~1 if block ~ ~ ~ #bd:breakable run setblock ~ ~ ~ air destroy
execute if entity @s[tag=player_char,tag=!arm_disconnected,scores={faceDirection=3}] positioned ~-1 ~1 ~ if block ~ ~ ~ #bd:breakable run setblock ~ ~ ~ air destroy
execute if entity @s[tag=player_char,tag=!arm_disconnected,scores={faceDirection=5}] positioned ~ ~1 ~-1 if block ~ ~ ~ #bd:breakable run setblock ~ ~ ~ air destroy
execute if entity @s[tag=player_char,tag=!arm_disconnected,scores={faceDirection=7}] positioned ~1 ~1 ~ if block ~ ~ ~ #bd:breakable run setblock ~ ~ ~ air destroy
#pushables
execute if entity @s[tag=player_char,tag=!arm_disconnected,scores={faceDirection=1}] positioned ~ ~1 ~1 if block ~ ~ ~ #bd:pushable run function bd:movement/object/try_move_up
execute if entity @s[tag=player_char,tag=!arm_disconnected,scores={faceDirection=3}] positioned ~-1 ~1 ~ if block ~ ~ ~ #bd:pushable run function bd:movement/object/try_move_up
execute if entity @s[tag=player_char,tag=!arm_disconnected,scores={faceDirection=5}] positioned ~ ~1 ~-1 if block ~ ~ ~ #bd:pushable run function bd:movement/object/try_move_up
execute if entity @s[tag=player_char,tag=!arm_disconnected,scores={faceDirection=7}] positioned ~1 ~1 ~ if block ~ ~ ~ #bd:pushable run function bd:movement/object/try_move_up

tp @s ~ ~1 ~
execute unless block ~ ~-2 ~ piston[facing=up] run summon armor_stand ~ ~-2 ~ {Tags:["level_entity","piston_activate","kill_on_next_move"],Marker:1b,Invulnerable:1b,Invisible:1b,NoGravity:1b}
execute if block ~ ~-2 ~ piston[facing=up] run summon armor_stand ~ ~-2 ~ {Tags:["level_entity","piston_activate","remember_piston","kill_on_next_move"],Marker:1b,Invulnerable:1b,Invisible:1b,NoGravity:1b}
setblock ~ ~-2 ~ redstone_block
execute if entity @s[tag=player_char] run scoreboard players set global moveCooldown 4