#execute at @s run execute store success score @s KyuDummy4 run fill ~ 275 ~ ~ 275 ~ minecraft:structure_void replace air
#execute at @s run fill ~ 275 ~ ~ 275 ~ minecraft:air replace structure_void
execute unless score #KyuAllowStructureSpawning KyuDummy matches 1 run kill @s
tag @s[tag=!FirstTimeSpawnCheck] remove KyuDoASpawnPls

execute if score #KyuStructureChance KyuDummy matches 1 run execute if predicate suhc:50percent run execute if predicate suhc:25percent run tag @s[tag=!FirstTimeSpawnCheck] add KyuDoASpawnPls
execute if score #KyuStructureChance KyuDummy matches 2 run execute if predicate suhc:50percent run execute if predicate suhc:50percent run tag @s[tag=!FirstTimeSpawnCheck] add KyuDoASpawnPls
execute if score #KyuStructureChance KyuDummy matches 3 run execute if predicate suhc:50percent run execute if predicate suhc:75percent run tag @s[tag=!FirstTimeSpawnCheck] add KyuDoASpawnPls
execute if score #KyuStructureChance KyuDummy matches 4 run execute if predicate suhc:50percent run tag @s[tag=!FirstTimeSpawnCheck] add KyuDoASpawnPls
execute if score #KyuStructureChance KyuDummy matches 5 run execute if predicate suhc:66percent run tag @s[tag=!FirstTimeSpawnCheck] add KyuDoASpawnPls
execute if score #KyuStructureChance KyuDummy matches 6 run execute if predicate suhc:83percent run tag @s[tag=!FirstTimeSpawnCheck] add KyuDoASpawnPls
execute if score #KyuStructureChance KyuDummy matches 7.. run tag @s[tag=!FirstTimeSpawnCheck] add KyuDoASpawnPls



kill @s[tag=!FirstTimeSpawnCheck,type=marker,tag=!KyuDoASpawnPls]

execute if score #KyuAllowStructureSpawning KyuDummy matches 1 run scoreboard players set @s KyuDummy4 0
execute if score #KyuAllowStructureSpawning KyuDummy matches 1 run execute at @s positioned ~ 255 ~ run execute if block ~80 ~ ~80 air run execute if block ~80 ~ ~64 air run execute if block ~80 ~ ~48 air run execute if block ~80 ~ ~32 air run execute if block ~80 ~ ~16 air run execute if block ~80 ~ ~ air run execute if block ~80 ~ ~-80 air run execute if block ~80 ~ ~-64 air run execute if block ~80 ~ ~-48 air run execute if block ~80 ~ ~-32 air run execute if block ~80 ~ ~-16 air run execute if block ~-80 ~ ~80 air run execute if block ~-80 ~ ~64 air run execute if block ~-80 ~ ~48 air run execute if block ~-80 ~ ~32 air run execute if block ~-80 ~ ~16 air run execute if block ~-80 ~ ~ air run execute if block ~-80 ~ ~-80 air run execute if block ~-80 ~ ~-64 air run execute if block ~-80 ~ ~-48 air run execute if block ~-80 ~ ~-32 air run execute if block ~-80 ~ ~-16 air run execute if block ~80 ~ ~80 air run execute if block ~64 ~ ~80 air run execute if block ~48 ~ ~80 air run execute if block ~32 ~ ~80 air run execute if block ~16 ~ ~80 air run execute if block ~0 ~ ~80 air run execute if block ~-80 ~ ~80 air run execute if block ~-64 ~ ~80 air run execute if block ~-48 ~ ~80 air run execute if block ~-32 ~ ~80 air run execute if block ~-16 ~ ~80 air run execute if block ~80 ~ ~-80 air run execute if block ~64 ~ ~-80 air run execute if block ~48 ~ ~-80 air run execute if block ~32 ~ ~-80 air run execute if block ~16 ~ ~-80 air run execute if block ~0 ~ ~-80 air run execute if block ~-80 ~ ~-80 air run execute if block ~-64 ~ ~-80 air run execute if block ~-48 ~ ~-80 air run execute if block ~-32 ~ ~-80 air run execute if block ~-16 ~ ~-80 air run scoreboard players set @s KyuDummy4 1
execute if score #KyuAllowStructureSpawning KyuDummy matches 1 run execute as @s[tag=KyuDoASpawnPls,scores={KyuDummy4=1..}] run function zzzzdonotuse:structures/summonstructurenewtimings


tag @s add FirstTimeSpawnCheck