#scoreboard players add @e[name=KyuLake] KyuLake 1
scoreboard players add @s KyuLake 1

execute at @s[scores={KyuLake=2}] run fill ~-16 ~-4 ~-16 ~16 ~16 ~16 dirt replace stone
execute at @s[scores={KyuLake=3}] run fill ~-2 ~ ~-2 ~2 ~5 ~2 tnt
execute at @s[scores={KyuLake=4}] run fill ~ ~ ~ ~ ~ ~ redstone_block
execute at @s[scores={KyuLake=20..300}] run stopsound @a block entity.generic.explode
execute at @s[scores={KyuLake=24}] run data merge entity @e[type=tnt,distance=..9,limit=1,sort=nearest] {Fuse:1}
execute at @s[scores={KyuLake=100..195}] run execute unless entity @e[type=tnt,distance=..29,sort=nearest] run scoreboard players set @s KyuLake 199
execute at @s[scores={KyuLake=200}] run fill ~-18 ~-4 ~-18 ~18 ~18 ~18 prismarine replace dirt
execute at @s[scores={KyuLake=200}] run fill ~-18 ~-4 ~-18 ~18 ~18 ~18 prismarine replace #suhc:stones
execute at @s[scores={KyuLake=201}] run fill ~-25 ~-4 ~-25 ~25 ~-1 ~25 grass_block replace air
execute at @s[scores={KyuLake=201}] run fill ~-25 ~-4 ~-25 ~25 ~-1 ~25 grass_block replace water
execute at @s[scores={KyuLake=201}] run fill ~-25 ~-4 ~-25 ~25 ~-1 ~25 grass_block replace water
execute at @s[scores={KyuLake=202}] run fill ~-2 ~-1 ~-2 ~1 ~-1 ~1 tnt
execute at @s[scores={KyuLake=203}] run fill ~ ~ ~ ~ ~ ~ tnt
execute at @s[scores={KyuLake=204}] run fill ~ ~1 ~ ~ ~1 ~ redstone_block
execute at @s[scores={KyuLake=224}] run data merge entity @e[type=tnt,distance=..9,limit=1,sort=nearest] {Fuse:1}
execute at @s[scores={KyuLake=300..395}] run execute unless entity @e[type=tnt,distance=..29,sort=nearest] run scoreboard players set @s KyuLake 399
execute at @s[scores={KyuLake=401}] run fill ~-25 ~-4 ~-25 ~25 ~-1 ~25 water replace air
execute at @s[scores={KyuLake=401}] run fill ~-12 4 ~-12 ~12 4 ~12 sea_lantern replace bedrock
execute at @s[scores={KyuLake=401}] run fill ~-12 3 ~-12 ~12 2 ~12 polished_diorite replace bedrock
execute at @s[scores={KyuLake=401}] run fill ~-12 7 ~-12 ~12 1 ~12 polished_diorite replace stone
execute at @s[scores={KyuLake=401}] run summon armor_stand ~ ~ ~ {CustomName:"\"KyuLakeFlowers\"",Invisible:1}

execute at @s[scores={KyuLake=2..400}] run fill ~-4 ~-4 ~-4 ~4 ~4 ~4 air replace water


#DO FLOWERS
execute as @s[scores={KyuLake=401}] run function zzzzdonotuse:structures/enchantedcavern/enchantedcavernflowers
kill @e[type=armor_stand,name=KyuLakeFlowers]

#execute at @s[scores={KyuLake=700}] run FUNCTION FILLBLOCKS


scoreboard players add @s KyuLakeItemTimer 1
execute at @s[scores={KyuLakeItemTimer=4..}] run kill @e[type=item,distance=..50]
scoreboard players set @s[scores={KyuLakeItemTimer=4..}] KyuLakeItemTimer 0
execute if entity @s[scores={KyuLake=902}] run execute as @s run function zzzzdonotuse:structures/enchantedcavern/enchantedcavernfillblocks
execute if entity @s[scores={KyuLake=902}] run execute as @e[type=armor_stand,tag=KyuLakeLamp] run function zzzzdonotuse:structures/enchantedcavern/enchantedcavernlamp
execute if entity @s[scores={KyuLake=902}] run execute at @s run summon marker ~ ~ ~ {Tags:["ECChestMarker"]}

#execute at @s[scores={KyuLake=902..},tag=!ForceLoad] run forceload remove ~-48 ~-48 ~48 ~48
#tag @s[scores={KyuLake=902..},tag=!ForceLoad] add ForceLoad
execute if entity @s[scores={KyuLake=903}] run execute at @s run setblock ~ -62 ~ air
kill @s[scores={KyuLake=903..}]

#data merge block ~ ~-32 ~1 {auto:1b}