scoreboard players set global stickyBlock 0

execute positioned ~ ~ ~1 if block ~ ~ ~ #bd:pushable unless block ~ ~ ~ #bd:sticky run function bd:movement/object/try_move_up
execute positioned ~ ~ ~-1 if block ~ ~ ~ #bd:pushable unless block ~ ~ ~ #bd:sticky run function bd:movement/object/try_move_up

execute positioned ~1 ~ ~ if block ~ ~ ~ #bd:pushable unless block ~ ~ ~ #bd:sticky run function bd:movement/object/try_move_up
execute positioned ~-1 ~ ~ if block ~ ~ ~ #bd:pushable unless block ~ ~ ~ #bd:sticky run function bd:movement/object/try_move_up

execute positioned ~ ~1 ~ if block ~ ~ ~ #bd:pushable unless block ~ ~ ~ #bd:sticky run function bd:movement/object/try_move_up
execute positioned ~ ~-1 ~ if block ~ ~ ~ #bd:pushable unless block ~ ~ ~ #bd:sticky run function bd:movement/object/try_move_up