#dawns daylight
execute if entity @a[tag=K,nbt={Inventory:[{tag:{kyudayextender:1b}}]}] run execute in overworld run data merge block 999998 121 999978 {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


#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

#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