execute at @s run fill ~ ~ ~1 ~4 ~2 ~-1 air destroy
execute at @s positioned ~2 ~ ~-2 run fill ~1 ~ ~ ~-1 ~2 ~4 air destroy
execute at @s positioned ~1 ~-1 ~ run fill ~ ~ ~-1 ~2 ~4 ~1 air destroy
execute at @s positioned ~-3 ~ ~ run scoreboard players add @e[type=item,distance=..14] KyuWebOW 1
execute at @s run execute as @e[distance=..7,type=item] run data merge entity @s {NoGravity:1}
execute at @s positioned ~-5 ~ ~ run execute at @e[sort=random,limit=4,distance=..10,type=item,scores={KyuWebOW=1..}] run setblock ~ ~ ~ cobweb
execute at @s run kill @e[type=item,scores={KyuWebOW=5..}]
execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=KyuDung] if block ~ ~1 ~ melon run execute at @s run tp @s ~ ~-1 ~
execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=KyuDung] if block ~ ~1 ~ glass run execute at @s run tp @s ~ ~1 ~
#scoreboard players remove @e KyuDung
execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=KyuDung] if block ~ ~ ~ emerald_block run execute at @s run tp @s ~ ~ ~1
execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=KyuDung] if block ~ ~ ~ gold_block run execute at @s run tp @s ~1 ~ ~
execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=KyuDung] if block ~ ~ ~ diamond_block run execute at @s run tp @s ~ ~ ~-1
execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=KyuDung] if block ~ ~ ~ iron_block run execute at @s run tp @s ~-1 ~ ~
scoreboard players add @s KyuOffOW 1
execute at @s[scores={KyuOffOW=15}] run tag @e[type=armor_stand,name=METEORKYU] remove KyuOffOW
execute at @s[scores={KyuOffOW=16}] run tag @e[sort=random,limit=1,type=armor_stand,name=METEORKYU] add KyuOffOW
execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=KyuOffOW] if block ~ ~ ~ emerald_block run execute at @s run tp @s ~.5 ~ ~.5
execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=KyuOffOW] if block ~ ~ ~ gold_block run execute at @s run tp @s ~-.5 ~ ~-.5
execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=KyuOffOW] if block ~ ~ ~ diamond_block run execute at @s run tp @s ~.5 ~ ~-.5
execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=KyuOffOW] if block ~ ~ ~ iron_block run execute at @s run tp @s ~-.5 ~ ~.5

execute as @s[scores={KyuOffOW=17..}] run scoreboard players add @s KyuOffOW2 1
scoreboard players set @s[scores={KyuOffOW=17..}] KyuOffOW 1

execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=KyuDung] if block ~ ~ ~ diamond_block run execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=KyuDung] if block ~ ~ ~ diamond_block run execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=KyuDung] if block ~ ~ ~ diamond_block run execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=KyuDung] if block ~ ~ ~ gold_block run execute at @s run summon armor_stand ~ ~ ~ {CustomName:"\"GlowyChestOW\"",NoGravity:1}
execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=KyuDung] if block ~ ~ ~ diamond_block run execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=KyuDung] if block ~ ~ ~ diamond_block run execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=KyuDung] if block ~ ~1 ~ bedrock run execute at @s run summon armor_stand ~ ~ ~ {CustomName:"\"Glowy2OW\"",NoGravity:0}

execute at @s[scores={KyuuOffOW2=5}] run summon armor_stand ~ ~ ~ {CustomName:"\"Glowy2OW\"",NoGravity:0}
execute at @s[scores={KyuOffOW2=4}] run summon armor_stand ~ ~ ~ {CustomName:"\"GlowyChestOW\"",NoGravity:1}
execute at @s[scores={KyuOffOW2=4}] run summon armor_stand ~ ~ ~ {CustomName:"\"GlowyChestOW2\"",NoGravity:1,Invisible:1b,Silent:1b}
scoreboard players add @s[scores={KyuOffOW2=5}] KyuOffOW2 1
scoreboard players add @s[scores={KyuOffOW2=4}] KyuOffOW2 1
execute at @s if block ~-9 -64 ~ magenta_concrete run tp @s ~2 ~ ~
execute at @s if block ~-9 -64 ~ #suhc:redblueconcrete run tp @s ~2 ~ ~
execute at @s if block ~-9 -64 ~ yellow_concrete run tp @s ~2 ~ ~
execute at @s if block ~9 -64 ~ magenta_concrete run tp @s ~-2 ~ ~
execute at @s if block ~9 -64 ~ #suhc:redblueconcrete run tp @s ~-2 ~ ~
execute at @s if block ~9 -64 ~ yellow_concrete run tp @s ~-2 ~ ~
execute at @s if block ~ -64 ~-9 magenta_concrete run tp @s ~ ~ ~2
execute at @s if block ~ -64 ~-9 #suhc:redblueconcrete run tp @s ~ ~ ~2
execute at @s if block ~ -64 ~-9 yellow_concrete run tp @s ~ ~ ~2
execute at @s if block ~ -64 ~9 magenta_concrete run tp @s ~ ~ ~-2
execute at @s if block ~ -64 ~9 #suhc:redblueconcrete run tp @s ~ ~ ~-2
execute at @s if block ~ -64 ~9 yellow_concrete run tp @s ~ ~ ~-2
execute at @s positioned ~ 5 ~ run tp @s ~ ~2 ~

execute at @s run execute if entity @e[type=armor_stand,distance=..50,name=CadeyrnFight] run scoreboard players set @s KyuOffOW2 10

execute if entity @s[scores={KyuOffOW2=10..}] run execute as @s run function zzzzdonotuse:randomevent/spiderdenreset