

tag @e[tag=GKNameTag,tag=!NoChange] remove K
execute as @e[tag=GKNameTag,tag=!NoChange] run tag @s remove GKNameTag
tag @e[name=DayQ] remove Clear
execute as @e[name=Spoder] run data merge entity @s {PersistenceRequired:0}
#kill @e[name=OreL3]
#execute at @e[name=DayQ] run summon armor_stand ~ ~ ~ {CustomName:"\"OreL3\"",NoGravity:1,Invisible:1b,Silent:1b}
tag @e[type=item] add ItemKillKyu
execute at @e[name=KyuChest] positioned ~25 1 ~ run tag @e[distance=..15,type=item] remove ItemKillKyu
execute at @a[tag=K] run tag @e[distance=..20,type=item] remove ItemKillKyu
kill @e[type=item,tag=ItemKillKyu,tag=!SaveItem]
execute as @e[name=GKCS] run data merge entity @s {PersistenceRequired:0}
tp @e[tag=WoofWoof] ~ ~-500 ~

execute at @e[sort=random,limit=1,type=armor_stand,name=METEORKYU] if block ~ ~-1 ~ bedrock run execute at @e[scores={DayQ=5..},tag=NoInfRain] run tag @e[name=DayQ] add Clear

gamerule universalAnger true
execute if entity @a[tag=K,nbt={Inventory:[{tag:{kyudayextender:1b}}]}] run execute in overworld run data merge block 999989 138 999988 {auto:1b}

data merge block 999979 144 999976 {auto:0b}

tag @a remove HasteReset
tag @a remove HorseReset
tag @a remove LadderReset
tag @a remove InvisReset
tag @a remove ResistReset
tag @a remove SlowfallReset
tag @a remove PortalReset
tag @a remove HomeCD
scoreboard players remove @a[scores={KAir=12000..}] KAir 1000
execute as @e[name=GK] run data merge entity @s {CustomName:""}
scoreboard players set @e[name=DayQ] KyuBedrock 4
data merge block 999997 137 999977 {auto:1b}

give @a[tag=KyuLuck] minecraft:gold_nugget{display:{Lore:["Throw me on the ground for a surprise!"]}}
scoreboard players remove @a[scores={KAIR=150..}] KAIR 30
scoreboard players remove @a[scores={KAIR=250..}] KAIR 30


tag @a remove NoBookQ
function zzzzdonotuse:daytimer/daytext
execute if entity @a[tag=K,nbt={Inventory:[{tag:{kyujunkstash:69b,kyuclock:1b}}]}] run execute as @a[sort=random,limit=1,tag=K,nbt={Inventory:[{tag:{kyujunkstash:69b,kyuclock:1b}}]}] run function zzzzdonotuse:trinketeffect/clock
