#summon an armor stand, and tick a dummy scoreboard up by 1(dummy scoreboard is incremented on the MAIN marker, not the entity summoned below)
summon minecraft:armor_stand ~ ~ ~ {Tags:["BirchTavernLava"]}
scoreboard players add @s KyuDummy 1

#teleport the armor stand randomly via spreadplayers, then give it a tag to prevent it being teleported again
spreadplayers ~ ~ 11 12 false @e[type=armor_stand,tag=BirchTavernLava,tag=!GotSpread]
tag @e[type=armor_stand,tag=BirchTavernLava,tag=!GotSpread] add GotSpread

#run this current function 62 times
execute as @s[scores={KyuDummy=..62}] run function zzzzdonotuse:structures/birchtavern/spreadlava

#kills the summoned armor stand if it's placed too close to the main marker's location(the center of the quadrant), so it only survives if it's near the edges of the quadrant
execute positioned ~ 95 ~ run kill @e[distance=..9,tag=BirchTavernLava]

#fills logs and leaves above the structure
fill ~-8 81 ~-8 ~8 120 ~8 air replace #minecraft:logs
fill ~-8 81 ~-8 ~8 120 ~8 fire replace #minecraft:leaves



#fill ~ ~ ~ ~ ~50 ~ gold_block