#execute if blah blah day progression condition passes do function zzzzdonotuse:daytimer/daytext

scoreboard players add #DayQ DayQDummy2 1
tag @s add IsDayKyu


data merge block ~ ~ ~ {auto:0b}


#resets entity tags, scoreboards, etc
function zzzzdonotuse:daytimer/daytimerresets

#misc day stuff
function zzzzdonotuse:daytimer/daytimermisc

execute as @a[nbt={Inventory:[{Slot:102b,tag:{kyuabsorbmodule:1b}}]}] run function zzzzdonotuse:modifyarmor/modules/absorptioneffect

tag @a[nbt={Inventory:[{Slot:103b,tag:{kyuglasswardmodule:1b}}]}] add GlassWard
tellraw @a[nbt={Inventory:[{Slot:103b,tag:{kyuglasswardmodule:1b}}]}] ["",{"text":"Your 'Glass Ward' module has refreshed!","color":"yellow","italic":"true"}]

tag @a[nbt={Inventory:[{Slot:101b,tag:{kyulavashieldmodule:1b}}]}] add KyuLavaShield
tellraw @a[nbt={Inventory:[{Slot:101b,tag:{kyulavashieldmodule:1b}}]}] ["",{"text":"Your 'Lava Shield' module has refreshed!","color":"yellow","italic":"true"}]



execute if predicate suhc:50percent run execute as @s[tag=LavDungMade] run tellraw @a[tag=K] ["",{"text":"[","color":"dark_blue"},{"text":"Cadeyrn the Wretched","color":"gold"},{"text":"] ","color":"dark_blue"},{"text":"The gods are always willing to ease your burdens...for a suitable sacrifice. I can facilitate this; come to ","color":"dark_red","italic":"true"},{"score":{"name":"@e[name=DayQ,limit=1]","objective":"CadeyrnShopX"},"color":"red","italic":"true"},{"text":"x, ","color":"red","italic":"true"},{"score":{"name":"@e[name=DayQ,limit=1]","objective":"CadeyrnShopY"},"color":"red","italic":"true"},{"text":"y, ","color":"red","italic":"true"},{"score":{"name":"@e[name=DayQ,limit=1]","objective":"CadeyrnShopZ"},"color":"red","italic":"true"},{"text":"z,","color":"red","italic":"true"},{"text":" in the Nether.","color":"dark_red","italic":"true"}]


