scoreboard players add #DayQ DQT 2
execute if score #DayQ DQT matches 250..302 run execute as @e[distance=..10,type=armor_stand,name=DayQ] run function zzzzdonotuse:1tick/activate7sec

scoreboard players add #DayQ 10TickTimer 1
execute if score #DayQ 10TickTimer matches 5..11 run function zzzzdonotuse:1tick/activatehalfsec

execute at @a run execute as @e[type=marker,tag=KyuStructureBase,distance=..200] positioned ~ ~ ~ run function zzzzdonotuse:structures/summonstructurenew

execute as @a[tag=BookUpdate] run execute as @s[nbt={SelectedItem:{tag:{display:{Lore:["\"A book of spells\""]}}}}] run execute in overworld run data merge block 999985 120 999976 {auto:1b}

execute as @a run execute at @s run execute if entity @e[type=item,distance=..2] run execute if entity @e[distance=..2,type=item,nbt={Item:{tag:{kyuspecialitem:1b}}}] run function zzzzdonotuse:halfsec/specialitems
