#spreadplayers ~ ~ 5 70 false @s

#summon a marker, run the function as(and at) it
summon minecraft:marker ~ ~ ~ {Tags:["MushyGoDown"]}
execute as @e[type=marker,tag=MushyGoDown] run execute at @s run function zzzzdonotuse:structures/mushroomhouse/movedown

#if the marker survives the above function, spawn the structure and set the villager trades
setblock ~ ~-1 ~ minecraft:structure_block[mode=load]{name:"suhc:strangerdanger",posX:-3,posZ:-4,posY:1,rotation:NONE,mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
setblock ~ ~ ~ redstone_block
execute at @s run function zzzzdonotuse:structures/mushroomhouse/settrades

#misc block fills
fill ~ ~-1 ~ ~ ~-1 ~ mushroom_stem replace structure_block
fill ~ ~-1 ~1 ~ ~-1 ~1 ladder[facing=south] replace #minecraft:leaves
fill ~ ~-1 ~1 ~ ~-1 ~1 ladder[facing=south] replace #suhc:bloodboltpassthrough
fill ~ ~-1 ~1 ~ ~-1 ~1 ladder[facing=south] replace #suhc:logs

#what
kill @e[type=item,distance=..3]



tag @s add GotPlaceSpot
scoreboard players set @s KyuDummy5 20

