#if block below is air, leaves, or plant, move down a block
scoreboard players add @s KyuDummy2 1
tag @s remove MoveMeDown
execute at @s run execute if block ~ ~-1 ~ #suhc:bloodboltpassthrough run tag @s add MoveMeDown
execute at @s run execute if block ~ ~-1 ~ #leaves run tag @s add MoveMeDown
execute at @s[tag=MoveMeDown] run tp @s[tag=MoveMeDown] ~ ~-1 ~

#repeat this function until it finds solid ground, or up to 15 times max
tag @s[scores={KyuDummy2=15..}] remove MoveMeDown
execute as @s[tag=MoveMeDown] run function zzzzdonotuse:structures/logcabin/logcabinmovedown