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}
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
#give @a[tag=KyuLuck] minecraft:gold_nugget{display:{Lore:["Throw me on the ground for a surprise!"]}}


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

#enchanted cavern
#data merge block 999997 137 999977 {auto:1b}
execute as @e[type=marker,tag=ECChestMarker] run execute at @s run function zzzzdonotuse:structures/enchantedcavern/chest/itemsacrificestart

tag @s remove ForceRain
execute if predicate suhc:25percent run tag @s[tag=NormalModeRain,scores={DayQ=5..}] add FullRainDay
execute as @s[tag=FullRainDay,scores={DayQ=5..12},tag=!Clear] run weather rain 63s
execute as @s[tag=FullRainDay,scores={DayQ=13..},tag=!Clear] run weather thunder 63s
execute as @s[tag=FullRainDay,tag=NormalModeRain] run tellraw @a[team=P] ["",{"text":"It looks like the rain is going to last a while...","color":"gold"}]
execute if predicate suhc:25percent run execute if predicate suhc:25percent run tag @s[tag=NormalModeRain,tag=!FullRainDay] add Clear

execute if predicate suhc:25percent run execute if predicate suhc:50percent run tag @s[tag=EasyModeRain,scores={DayQ=5..}] add FullRainDay
execute as @s[tag=FullRainDay,scores={DayQ=5..12},tag=!Clear] run weather rain 63s
execute as @s[tag=FullRainDay,scores={DayQ=13..},tag=!Clear] run weather thunder 63s
execute as @s[tag=FullRainDay,tag=EasyModeRain] run tellraw @a[team=P] ["",{"text":"It looks like the rain is going to last a while...","color":"gold"}]
execute if predicate suhc:25percent run execute if predicate suhc:25percent run tag @s[tag=EasyModeRain,tag=!FullRainDay] add Clear

execute at @s[scores={DayQ2=3..}] run tellraw @a[team=P,tag=!CobbleSpell22] ["",{"text":"You've been granted the Cobble Gen spell!","color":"dark_green"}]
execute at @s[scores={DayQ2=3..}] run execute as @a[tag=K,tag=!CobbleSpell22] run give @s minecraft:paper{display:{Name:'{"text":"Torn Spell Page: Cobble Gen"}',Lore:["\"Unlocks a spell when held.\""]},HideFlags:1,Enchantments:[{id:"minecraft:lure",lvl:29s}]} 1
execute at @s[scores={DayQ2=3..}] run tag @a[tag=K,tag=!CobbleSpell22] add CobbleSpell22

execute at @s[scores={DayQ2=25..}] run execute as @a[tag=K,tag=!ExpSpell22] run give @s minecraft:paper{display:{Name:'{"text":"Torn Spell Page: Xp to Bottles"}',Lore:["\"Unlocks a spell when held.\""]},HideFlags:1,Enchantments:[{id:"minecraft:lure",lvl:30s}]} 1
execute at @s[scores={DayQ2=25..}] run tellraw @a[team=P,tag=!ExpSpell22] ["",{"text":"You've been granted the Xp to Bottles spell!","color":"dark_green"}]
execute at @s[scores={DayQ2=25..}] run tag @a[tag=K,tag=!ExpSpell22] add ExpSpell22