scoreboard players add @s DayQ 1
scoreboard players add #DayQ DayQDummy 1
tag @s remove DayProg
tag @s remove SkipDay


#Day 1
execute at @s[scores={DayQ=1}] run tellraw @a[tag=K] ["",{"text":"Skeletons, Zombies, and Drowned start off Day 1 with a few pieces of gear!","color":"dark_red","underlined":true,"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Skeletons wield Power Bows, Zombies wield Stone Swords, and all of them have Leather Boots!","color":"dark_aqua"}]}}}]
execute at @s[scores={DayQ=1}] run tellraw @a[tag=K] ["",{"text":"Creeper fuses will become slightly shorter every day!","color":"dark_red"}]
execute at @s[scores={DayQ=1}] run tellraw @a[tag=K] ["",{"text":"Hitting an enderman may aggro nearby endermen!","color":"dark_red"}]


#Day 2
execute at @s[scores={DayQ=2}] run tellraw @a[tag=K] ["",{"text":"Skeletons, Zombies, and Drowned have gained a slight gear upgrade!","color":"dark_red","underlined":true,"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Skeletons, Zombies, and Drowned now have Leather Leggings, and Zombies now wield axes!","color":"dark_aqua"}]}}}]


#Day 3
execute at @s[scores={DayQ=3}] run tellraw @a[tag=K] ["",{"text":"Skeletons, Zombies, and Drowned have gained a slight gear upgrade!","color":"dark_red","underlined":true,"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Skeletons, Zombies, and Drowned now have Leather Chestplates!","color":"dark_aqua"}]}}}]
execute at @s[scores={DayQ=3}] run tellraw @a[tag=K] ["",{"text":"Pigman will now auto-aggro to anyone too close to them!","color":"dark_red"}]
execute at @s[scores={DayQ=3}] run tellraw @a[tag=K] ["",{"text":"Piglins now wear Golden Boots!","color":"dark_red"}]


#Day 4
execute at @s[scores={DayQ=4}] run tellraw @a[tag=K] ["",{"text":"Skeletons, Zombies, and Drowned have gained a slight gear upgrade!","color":"dark_red","underlined":true,"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Skeletons, Zombies, and Drowned now have Leather Helmets!","color":"dark_aqua"}]}}}]
execute at @s[scores={DayQ=4}] run tellraw @a[tag=K] ["",{"text":"Creepers and Spiders have gained a slight speed boost!","color":"dark_red"}]
#execute at @s[scores={DayQ=4}] run tellraw @a[tag=K] ["",{"text":"Ghast fireballs now spawn creepers upon detonation!","color":"dark_red"}]
execute at @s[scores={DayQ=4}] run tellraw @a[tag=K] ["",{"text":"Pillagers now shoot more quickly!","color":"dark_red"}]
execute at @s[scores={DayQ=4}] run tellraw @a[tag=K] ["",{"text":"Piglins now wear Golden Leggings!","color":"dark_red"}]


#Day 5
execute at @s[scores={DayQ=5}] run tellraw @a[tag=K] ["",{"text":"Skeletons and Zombies have gained massive gear upgrades!","color":"dark_red","underlined":true,"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Skeleton and Zombie gear have both been fully enchanted!","color":"dark_aqua"}]}}}]
#execute at @s[scores={DayQ=5}] run tellraw @a[tag=K] ["",{"text":"The world has been plunged into an ever-lasting rain storm!","color":"dark_red"}]
execute at @s[scores={DayQ=5}] run tellraw @a[tag=K] ["",{"text":"Ghast fireballs now spawn creepers upon detonation!","color":"dark_red","underlined":true,"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"2spooky","color":"dark_aqua"}]}}}]
execute at @s[scores={DayQ=5}] run tellraw @a[tag=K] ["",{"text":"Piglins now wear Golden Chestplates!","color":"dark_red"}]


#Day 6
execute at @s[scores={DayQ=6}] run tellraw @a[tag=K] ["",{"text":"Skeletons and Zombies have gained a slight gear upgrade!","color":"dark_red","underlined":true,"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Skeletons and Zombies now have Iron Boots!","color":"dark_aqua"}]}}}]
#execute at @s[scores={DayQ=6}] run tellraw @a[tag=K] ["",{"text":"Drowned have gained massive gear upgrades!","color":"dark_red","underlined":true,"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Drowned armor has been fully enchanted!","color":"dark_aqua"}]}}}]
execute at @s[scores={DayQ=6}] run tellraw @a[tag=K] ["",{"text":"Wither Skeletons now apply blindness in addition to wither!","color":"dark_red"}]
execute at @s[scores={DayQ=6}] run tellraw @a[tag=K] ["",{"text":"Piglins now wear Golden Helmets!","color":"dark_red"}]


#Day 7
#execute at @s[scores={DayQ=7}] run tellraw @a[tag=K] ["",{"text":"Creeper fuses now become slightly shorter every day!","color":"dark_red"}]
execute at @s[scores={DayQ=7}] run tellraw @a[tag=K] ["",{"text":"Skeletons and Zombies have gained a slight gear upgrade!","color":"dark_red","underlined":true,"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Skeletons and Zombies now have Iron Leggings!","color":"dark_aqua"}]}}}]
execute at @s[scores={DayQ=7}] run tellraw @a[tag=K] ["",{"text":"Spider and Creepers have gained a slight health boost!","color":"dark_red"}]



#Day 8
execute at @s[scores={DayQ=8}] run tellraw @a[tag=K] ["",{"text":"Skeletons and Zombies have gained a slight gear upgrade!","color":"dark_red","underlined":true,"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Skeletons and Zombies now have Iron Chestplates!","color":"dark_aqua"}]}}}]
execute at @s[scores={DayQ=8}] run tellraw @a[tag=K] ["",{"text":"Piglins have gained massive gear upgrades!","color":"dark_red","underlined":true,"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Piglin armor has been fully enchanted!","color":"dark_aqua"}]}}}]
execute at @s[scores={DayQ=8}] run tellraw @a[tag=K] ["",{"text":"Pillagers now have slightly more hp!","color":"dark_red"}]
execute at @s[scores={DayQ=8}] run tellraw @a[tag=K] ["",{"text":"Ghasts now have slightly more hp!","color":"dark_red"}]



#Day 9
execute at @s[scores={DayQ=9}] run tellraw @a[tag=K] ["",{"text":"Skeletons and Zombies have gained a slight gear upgrade!","color":"dark_red","underlined":true,"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Skeletons and Zombies now have Iron Helmets!","color":"dark_aqua"}]}}}]
execute at @s[scores={DayQ=9}] run tellraw @a[tag=K] ["",{"text":"The auto-aggro range on Zombie Pigmen has been increased!","color":"dark_red"}]
execute at @s[scores={DayQ=9}] run tellraw @a[tag=K] ["",{"text":"Spiders have slightly increased attack damage!","color":"dark_red"}]
execute at @s[scores={DayQ=9}] run data merge block ~-1 ~41 ~-3 {auto:1b}


#Day 10
execute at @s[scores={DayQ=10}] run tellraw @a[tag=K] ["",{"text":"Skeletons and Zombies have gained massive gear upgrades!","color":"dark_red","underlined":true,"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Skeleton and Zombie gear have both been fully enchanted!","color":"dark_aqua"}]}}}]
execute at @s[scores={DayQ=10}] run tellraw @a[tag=K] ["",{"text":"Drowned now wear Chainmail Boots!","color":"dark_red"}]
execute at @s[scores={DayQ=10}] run tellraw @a[tag=K] ["",{"text":"Spider attacks now slow!","color":"dark_red"}]
execute at @s[scores={DayQ=10}] run tellraw @a[tag=K] ["",{"text":"Creepers now have slight knockback resistance!","color":"dark_red"}]



#Day 11
execute at @s[scores={DayQ=11}] run tellraw @a[tag=K] ["",{"text":"Drowned now wear Chainmail Leggings!","color":"dark_red"}]
execute at @s[scores={DayQ=11}] run tellraw @a[tag=K] ["",{"text":"Wither Skeletons have a ??? upgrade!","color":"dark_red","underlined":true,"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Wither skeletons...????","color":"dark_aqua"}]}}}]
execute at @s[scores={DayQ=11}] run setblock ~-2 ~-2 ~-6 minecraft:command_block[facing=down]{Command:"/tag @e[type=skeleton,tag=!DiamondKyu2,name=!GK] add GearKyu",TrackOutput:0}
#execute at @e[scores={DayQ=11}] run tellraw @a[tag=K] ["",{"text":"Spider attacks now poison!","color":"dark_red"}]
execute at @s[scores={DayQ=11}] run tellraw @a[tag=K] ["",{"text":"Spider attacks now poison! In addition, they can buff very nearby mobs to do the same!","color":"dark_red"}]
execute at @s[scores={DayQ=11}] run tellraw @a[tag=K] ["",{"text":"Random Events now occur more often!","color":"dark_red"}]
execute at @s[scores={DayQ=11}] run setblock ~-4 ~1 ~ minecraft:command_block[facing=up]{Command:"loot spawn ~1 ~1 ~ loot minecraft:randomevents/day11",TrackOutput:0} destroy
#execute at @e[scores={DayQ=11}] run tellraw @a[tag=K] ["",{"text":"WARNING: IN 3 DAYS, METEOR STORMS WILL GAIN A SIGNIFICANT POWER INCREASE.","color":"red","italic":true}]



#Day 12
execute at @s[scores={DayQ=12}] run tellraw @a[tag=K] ["",{"text":"Drowned now wear Chainmail Chestplates!","color":"dark_red"}]
execute at @s[scores={DayQ=12}] run tellraw @a[tag=K] ["",{"text":"Skeletons now shoot fireballs!...Just kidding.","color":"dark_red"}]
execute at @s[scores={DayQ=12}] run data merge block ~-2 ~4 ~-3 {auto:1b}
execute at @s[scores={DayQ=12},tag=!HardMode] run tellraw @a[tag=K] ["",{"text":"Creeper fuses no longer become shorter. They have capped out at roughly 2/3 the fuse time!","color":"dark_red"}]
execute at @s[scores={DayQ=12}] run tellraw @a[tag=K] ["",{"text":"Spiders now have slight knockback resistance!","color":"dark_red"}]
execute at @s[scores={DayQ=12}] positioned ~6 ~16 ~ run setblock ~ ~ ~ air
#execute at @s[scores={DayQ=12}] run tellraw @a[tag=K] ["",{"text":"Enchanted caverns will no longer spawn!","color":"yellow"}]


#Day 13
execute at @s[scores={DayQ=13}] run tellraw @a[tag=K] ["",{"text":"Drowned now wear Chainmail Helmets!","color":"dark_red"}]
execute at @s[scores={DayQ=13}] run tellraw @a[tag=K] ["",{"text":"Ghasts now have even more hp!","color":"dark_red"}]
execute at @s[scores={DayQ=13}] run tellraw @a[tag=K] ["",{"text":"Skeletons now shoot fireballs!...Just kidding...Unless?","color":"dark_red"}]
##execute at @s[scores={DayQ=13}] run tellraw @a[tag=K] ["",{"text":"The world has been plunged into an ever-lasting thunderstorm!","color":"dark_red"}]


#Day 14
execute at @s[scores={DayQ=14}] run tellraw @a[tag=K] ["",{"text":"Skeletons and Zombies have gained gear upgrades!","color":"dark_red","underlined":true,"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Skeleton and Zombie gear have both been enchanted further!","color":"dark_aqua"}]}}}]
execute at @s[scores={DayQ=14}] run tellraw @a[tag=K] ["",{"text":"Spiders are now invisible!","color":"dark_red"}]
execute at @s[scores={DayQ=14}] run tellraw @a[tag=K] ["",{"text":"Blazes now have more hp!","color":"dark_red"}]
#execute at @e[scores={DayQ=14}] run tellraw @a[tag=K] ["",{"text":"WARNING, THE FOLLOWING HAS TAKEN EFFECT: Meteor storms have become extremely volatile! They will explode with reckless abandon, destroying *anything*(other than obsidian and bedrock) they come near, ignoring the effects of water. They may also chain explosions in any direction they please, with the exception of downwards.","color":"red","italic":true}]


#Day 15


#Day 16
execute at @s[scores={DayQ=16}] run tellraw @a[tag=K] ["",{"text":"Drowned have gained massive gear upgrades!","color":"dark_red","underlined":true,"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Drowned armor has been fully enchanted!","color":"dark_aqua"}]}}}]
execute at @s[scores={DayQ=16}] run tellraw @a[tag=K] ["",{"text":"Zombies now have a higher chance to spawn Reinforcements!","color":"yellow"}]


#Day 17
execute at @s[scores={DayQ=17}] run tellraw @a[tag=K] ["",{"text":"Creepers now have even higher knockback resistance!","color":"dark_red"}]
execute at @s[scores={DayQ=17}] run tellraw @a[tag=K] ["",{"text":"Enderman now have more attack damage!","color":"dark_red"}]



#Day 18
execute at @s[scores={DayQ=18}] run tellraw @a[tag=K] ["",{"text":"The Poison effect of spider attacks has been slightly increased!","color":"dark_red"}]
execute at @s[scores={DayQ=18}] run tellraw @a[tag=K] ["",{"text":"Pillagers now have slightly more hp!","color":"dark_red"}]
execute at @s[scores={DayQ=18}] run data merge block ~-2 ~3 ~-3 {auto:1b,Command:"function zzzzdonotuse:halfsec/spiderpoison2"}


#Day 19
execute at @s[scores={DayQ=19}] run tellraw @a[tag=K] ["",{"text":"Zombies have received a slight speed upgrade!","color":"dark_red"}]
execute at @s[scores={DayQ=19}] run tellraw @a[tag=K] ["",{"text":"Random Events now occur even more often!","color":"dark_red"}]
execute at @s[scores={DayQ=19}] run tellraw @a[tag=K] ["",{"text":"Spiders have slightly increased attack damage!","color":"dark_red"}]
execute at @s[scores={DayQ=19}] run tellraw @a[tag=K] ["",{"text":"Creeper damage and explosion radius have been increased!","color":"dark_red"}]
execute at @s[scores={DayQ=19}] run setblock ~-4 ~1 ~ minecraft:command_block[facing=up]{Command:"loot spawn ~1 ~1 ~ loot minecraft:randomevents/day19",TrackOutput:0} destroy


#Day 20
execute at @s[scores={DayQ=20}] run tellraw @a[tag=K] ["",{"text":"Creepers have gained some health!","color":"dark_red"}]
execute at @s[scores={DayQ=20}] run tellraw @a[tag=K] ["",{"text":"Spiders now have slightly higher knockback resistance!","color":"dark_red"}]
execute at @s[scores={DayQ=20}] run tellraw @a[tag=K] ["",{"text":"Certain random events have become harder!","color":"dark_red","underlined":true,"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"The event which gives all zombies massive gear upgrades now upgrades them further, and zombies affected by the event can break blocks in smaller groups than normal! A few other events have also been buffed, but that's spoilers!","color":"dark_aqua"}]}}}]


#Day 21
execute at @s[scores={DayQ=21}] run tellraw @a[tag=K] ["",{"text":"Spiders have gained even more resistance!","color":"dark_red"}]


#Day 22
execute at @s[scores={DayQ=22}] run tellraw @a[tag=K] ["",{"text":"hi!","color":"dark_red"}]
execute at @s[scores={DayQ=22}] run tellraw @a[tag=K] ["",{"text":"Drowned have gained massive gear upgrades!","color":"dark_red","underlined":true,"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Drowned armor has been enchanted further!","color":"dark_aqua"}]}}}]


#Day 23
execute at @s[scores={DayQ=23}] run tellraw @a[tag=K] ["",{"text":"Blazes now have even more hp!","color":"dark_red"}]


#Day 24
execute at @s[scores={DayQ=24}] run tellraw @a[tag=K] ["",{"text":"Spiders have gained even more health!","color":"dark_red"}]


#Day 25


#Day 26
execute at @s[scores={DayQ=26}] run tellraw @a[tag=K] ["",{"text":"The Poison effect that spiders inflict has been increased further!","color":"dark_red"}]
execute at @s[scores={DayQ=26}] run data merge block ~-2 ~3 ~-3 {auto:1b,Command:"function zzzzdonotuse:halfsec/spiderpoison3"}


#Day 27
execute at @s[scores={DayQ=27},tag=!HardMode] run tellraw @a[tag=K] ["",{"text":"Spiders now have slightly higher knockback resistance!","color":"dark_red"}]


#Day 28
execute at @s[scores={DayQ=28},tag=!HardMode] run tellraw @a[tag=K] ["",{"text":"Enderman now have even more attack damage!","color":"dark_red"}]


#Day 29
execute at @s[scores={DayQ=29},tag=!HardMode] run tellraw @a[tag=K] ["",{"text":"Spiders now have slightly increased attack damage!","color":"dark_red"}]


#Day 30


#Day 31
execute at @s[scores={DayQ=31}] run tellraw @a[tag=K] ["",{"text":"Spiders have gained even more health!","color":"dark_red"}]











execute as @s[scores={DayQ=5}] run function zzzzdonotuse:randomevent/lavadungeon


####difficulty specific text
execute at @s[scores={DayQ=5},tag=EasyMode] run tellraw @a[tag=K] ["",{"text":"Rain storms are now more common!","color":"dark_red"}]
execute at @s[scores={DayQ=5},tag=NormalMode] run tellraw @a[tag=K] ["",{"text":"Rain storms are now more common, and may last for days at a time!","color":"dark_red"}]
execute at @s[scores={DayQ=5},tag=HardMode] run tellraw @a[tag=K] ["",{"text":"The world has been plunged into an ever-lasting rain storm!","color":"dark_red"}]
execute at @s[scores={DayQ=13},tag=EasyMode] run tellraw @a[tag=K] ["",{"text":"Thunderstorms are now more common!","color":"dark_red"}]
execute at @s[scores={DayQ=13},tag=NormalMode] run tellraw @a[tag=K] ["",{"text":"Thunderstorms are now more common, and may last for days at a time!","color":"dark_red"}]
execute at @s[scores={DayQ=13},tag=HardMode] run tellraw @a[tag=K] ["",{"text":"The world has been plunged into an ever-lasting thunderstorm!","color":"dark_red"}]




###hardmode








#Day 7
execute at @s[scores={DayQ=7},tag=HardMode] run tellraw @a[tag=K] ["",{"text":"⚔☠","color":"red","bold":false},{"text":" Witches have received a speed upgrade! ","color":"dark_red"},{"text":" ","color":"red","bold":false}]



#Day 8
execute at @s[scores={DayQ=8},tag=HardMode] run tellraw @a[tag=K] ["",{"text":"⚔☠","color":"red","bold":false},{"text":" Spiders have received an additional speed upgrade! ","color":"dark_red"},{"text":" ","color":"red","bold":false}]



#Day 9
execute at @s[scores={DayQ=9},tag=HardMode] run tellraw @a[tag=K] ["",{"text":"⚔☠","color":"red","bold":false},{"text":" Wither Skeletons are now slightly quicker! ","color":"dark_red"},{"text":" ","color":"red","bold":false}]


#Day 10
execute at @s[scores={DayQ=10},tag=HardMode] run tellraw @a[tag=K] ["",{"text":"⚔☠","color":"red","bold":false},{"text":" Witches have received damage resistance! ","color":"dark_red"},{"text":" ","color":"red","bold":false}]



#Day 11
execute at @s[scores={DayQ=11},tag=HardMode] run tellraw @a[tag=K] ["",{"text":"⚔☠","color":"red","bold":false},{"text":" Elite mobs are now more common! ","color":"dark_red"},{"text":" ","color":"red","bold":false}]



#Day 13
execute at @s[scores={DayQ=13},tag=HardMode] run tellraw @a[tag=K] ["",{"text":"⚔☠","color":"red","bold":false},{"text":" Creepers have received an additional speed upgrade! ","color":"dark_red"},{"text":" ","color":"red","bold":false}]

#Day 15
execute at @s[scores={DayQ=15},tag=HardMode] run tellraw @a[tag=K] ["",{"text":"You've survived 2 straight weeks of upgrades. Have a day to rest.","color":"dark_red"}]


#Day 16
execute at @s[scores={DayQ=16},tag=HardMode] run tellraw @a[tag=K] ["",{"text":"⚔☠","color":"red","bold":false},{"text":" Wither Skeletons have become even quicker! ","color":"dark_red"},{"text":" ","color":"red","bold":false}]


#Day 17
execute at @s[scores={DayQ=17},tag=HardMode] run tellraw @a[tag=K] ["",{"text":"⚔☠","color":"red","bold":false},{"text":" Elite mobs are now even more common! ","color":"dark_red"},{"text":" ","color":"red","bold":false}]



#Day 18
execute at @s[scores={DayQ=18},tag=HardMode] run tellraw @a[tag=K] ["",{"text":"⚔☠","color":"red","bold":false},{"text":" Creeper fuses have capped at 1/2 the fuse time! ","color":"dark_red"},{"text":" ","color":"red","bold":false}]


#Day 22
execute at @s[scores={DayQ=22},tag=HardMode] run tellraw @a[tag=K] ["",{"text":"⚔☠","color":"red","bold":false},{"text":" Creepers now have even higher knockback resistance! ","color":"dark_red"},{"text":" ","color":"red","bold":false}]



#Day 25
execute at @s[scores={DayQ=25},tag=HardMode] run tellraw @a[tag=K] ["",{"text":"⚔☠","color":"red","bold":false},{"text":" Creeper damage and explosion radius have been increased massively! ","color":"dark_red"},{"text":" ","color":"red","bold":false}]


#Day 27
execute at @s[scores={DayQ=27},tag=HardMode] run tellraw @a[tag=K] ["",{"text":"⚔☠","color":"red","bold":false},{"text":" Spiders now have much higher knockback resistance! ","color":"dark_red"},{"text":" ","color":"red","bold":false}]


#Day 28
execute at @s[scores={DayQ=28},tag=HardMode] run tellraw @a[tag=K] ["",{"text":"⚔☠","color":"red","bold":false},{"text":" Enderman now have much more attack damage! ","color":"dark_red"},{"text":" ","color":"red","bold":false}]


#Day 29
execute at @s[scores={DayQ=29},tag=HardMode] run tellraw @a[tag=K] ["",{"text":"⚔☠","color":"red","bold":false},{"text":" Spiders now have massively increased attack damage! ","color":"dark_red"},{"text":" ","color":"red","bold":false}]


#Day 30


#Day 31















