#scoreboard players add @e[tag=KyuLakeLamp] KyuLakeLampBuild 1
scoreboard players add @s KyuLakeLampBuild 1
execute as @s[name=KyuLakeMXMZ,scores={KyuLakeLampBuild=1..10}] run execute at @s run tp @s ~-1 ~ ~-1
execute as @s[name=KyuLakeMXZ,scores={KyuLakeLampBuild=1..10}] run execute at @s run tp @s ~-1 ~ ~1
execute at @s[tag=KyuLakeLamp] run setblock ~ ~ ~ sea_lantern

execute at @s[tag=KyuLakeLamp,scores={KyuLakeLampBuild=11..},name=!KyuKillMe] positioned ~ 11 ~ run execute at @e[distance=..20,tag=KyuLakeLamp,name=!KyuKillMe] run setblock ~ ~ ~ sea_lantern
execute as @s[tag=KyuLakeLamp,scores={KyuLakeLampBuild=11..},name=!KyuKillMe] run execute at @s run tp @s ~ ~1 ~
execute as @s[tag=KyuLakeLamp,scores={KyuLakeLampBuild=11..},name=!KyuKillMe] run execute at @s run execute at @s unless block ~ ~ ~ air run data merge entity @s {CustomName:"\"KyuKillMe\""}
execute as @s[tag=KyuLakeLamp,scores={KyuLakeLampBuild=11..},name=!KyuKillMe] run execute at @s positioned ~ 32 ~ run data merge entity @s[dy=30] {CustomName:"\"KyuKillMe\""}
execute at @s[type=minecraft:armor_stand,name=KyuKillMe] run fill ~ ~ ~1 ~ ~-1 ~-1 sea_lantern
execute at @s[type=minecraft:armor_stand,name=KyuKillMe] run fill ~1 ~ ~ ~-1 ~-1 ~ sea_lantern
kill @s[tag=KyuLakeLamp,name=KyuKillMe]
execute unless entity @e[type=minecraft:armor_stand,tag=KyuLakeLamp] run scoreboard players add @e[name=DayQ,type=armor_stand] TestforReplace 1
#execute at @e[name=KyuLake,scores={KyuLake=500..}] run fill ~-18 ~-4 ~-18 ~18 ~18 ~18 water replace iron_ore
execute as @s[type=armor_stand,tag=KyuLakeLamp,name=!KyuKillMe] run function zzzzdonotuse:structures/enchantedcavern/enchantedcavernlamp
