setblock 999977 151 999980 chain_command_block[facing=up]{auto:1b,Command:"execute at @e[name=DayQ,scores={DayQ=11}] run setblock ~-4 ~1 ~ minecraft:command_block[facing=up]{Command:\"loot spawn ~1 ~1 ~ loot minecraft:randomevents/day11\",TrackOutput:0} destroy",TrackOutput:0} destroy
setblock 999977 157 999980 chain_command_block[facing=up]{auto:1b,Command:"execute at @e[name=DayQ,scores={DayQ=19}] run setblock ~-4 ~1 ~ minecraft:command_block[facing=up]{Command:\"loot spawn ~1 ~1 ~ loot minecraft:randomevents/day19\",TrackOutput:0} destroy",TrackOutput:0} destroy
setblock 999976 122 999978 command_block[facing=up]{auto:0b,Command:"function zzzzdonotuse:fix/randomeventchoice",TrackOutput:0} destroy
setblock 999997 120 999975 repeating_command_block[facing=up]{auto:1b,Command:"execute if entity @a[tag=BookUpdate,nbt={SelectedItem:{tag:{display:{Lore:[\"\\\"A book of spells\\\"\"]}}}}] run data merge block ~ ~1 ~ {auto:1b}",TrackOutput:0} destroy
setblock 999997 123 999975 chain_command_block[facing=up]{auto:1b,Command:"tag @a[tag=BookUpdate,nbt={SelectedItem:{tag:{display:{Lore:[\"\\\"A book of spells\\\"\"]}}}}] add BookInHand",TrackOutput:0} destroy
setblock 999978 174 999975 chain_command_block[facing=up]{auto:1b,Command:"tag @a[tag=K,nbt={SelectedItem:{tag:{HideFlags:1,Enchantments:[{id:\"minecraft:lure\"}],display:{Lore:[\"\\\"Unlocks a spell when held.\\\"\"]}}}},tag=!SpellUpdate] add SpellUpdate",TrackOutput:0} destroy
setblock 999978 175 999975 chain_command_block[facing=up,conditional=true]{auto:1b,Command:"function zzzzdonotuse:spell/consumepage",TrackOutput:0} destroy
setblock 999976 133 999975 chain_command_block[facing=up]{auto:1b,Command:"execute at @p[tag=K,scores={TKQ=51..900}] run execute if entity @e[type=armor_stand,name=DayQ,tag=!NoMetStorm] run execute at @e[sort=random,name=Meteor,type=armor_stand,limit=1,nbt={Dimension:0}] positioned ~ ~-3 ~ run summon fireball ~ 255 ~ {CustomName:\"\\\"i\\\"\",direction:[0.0,-0.2,0.0],power:[0.0,-0.2,0.0],ExplosionPower:2}",TrackOutput:0} destroy
setblock 999981 131 999978 chain_command_block[facing=up]{auto:1b,Command:"execute at @e[name=SafeSpot] run kill @e[distance=..25,name=BUQ]",TrackOutput:0} destroy
setblock 999981 132 999978 chain_command_block[facing=up]{auto:1b,Command:"execute at @e[type=villager] run kill @e[distance=..25,name=BUQ]",TrackOutput:0} destroy
setblock 999981 133 999978 chain_command_block[facing=up]{auto:1b,Command:"execute at @e[type=player] run kill @e[distance=..25,name=BUQ]",TrackOutput:0} destroy
setblock 999981 134 999978 chain_command_block[facing=up]{auto:1b,Command:"execute as @e[type=minecraft:armor_stand,name=BUQ] run kill @s[nbt=!{Dimension:0}]",TrackOutput:0} destroy
setblock 999980 126 999978 chain_command_block[facing=up]{auto:1b,Command:"tag @e[sort=random,limit=7,type=spider,name=!Spoder] add Spoder",TrackOutput:0} destroy
setblock 999981 123 999976 chain_command_block[facing=up,conditional=true]{auto:1b,Command:"execute if entity @a[nbt={Dimension:0}] run setblock ~ ~1 ~ redstone_block",TrackOutput:0} destroy
setblock 999981 133 999976 chain_command_block[facing=up]{auto:1b,Command:"execute at @e[name=DayQ,scores={Crater2=1..10}] run execute at @a[sort=random,limit=1,tag=K,nbt={Dimension:0}] run summon armor_stand ~ 250 ~ {CustomName:\"\\\"CraterSpawn\\\"\",Small:1,Marker:1b,Invisible:1b,Silent:1b,Invulnerable:1,NoGravity:1,DisabledSlots:2039583}",TrackOutput:0} destroy
setblock 999981 134 999976 chain_command_block[facing=up]{auto:1b,Command:"execute at @e[scores={Crater2=11..12}] run execute at @a[sort=random,distance=..10000,tag=K,nbt={Dimension:0},limit=1] run spreadplayers ~ ~ 1 30 false @e[name=CraterSpawn]",TrackOutput:0} destroy
setblock 999981 138 999976 chain_command_block[facing=up]{auto:1b,Command:"execute if entity @a[nbt={Dimension:0}] run execute at @e[scores={Crater2=21..22}] run scoreboard players set @e Crater2 0",TrackOutput:0} destroy
setblock 999981 131 999976 chain_command_block[facing=up]{auto:1b,Command:"execute if entity @a[nbt={Dimension:0}] run data merge block ~ ~1 ~ {auto:1b}",TrackOutput:0} destroy
setblock 999981 127 999976 chain_command_block[facing=up]{auto:1b,Command:"execute if entity @a[nbt={Dimension:0}] run scoreboard players set @e[name=DayQ] Crater2 1",TrackOutput:0} destroy
setblock 999981 126 999976 chain_command_block[facing=up]{auto:1b,Command:"execute if entity @a[nbt={Dimension:0}] run scoreboard players set @e Crater2 0",TrackOutput:0} destroy
setblock 999982 122 999974 command_block[facing=up]{auto:0b,Command:"execute if entity @e[type=minecraft:armor_stand,name=DayQ,tag=!NoGriefer] run scoreboard players set @e[distance=..12,nbt={Item:{tag:{display:{Lore:[\"\\\"GZ\\\"\"]}}}}] EQK 200",TrackOutput:0} destroy
setblock 999980 122 999971 command_block[facing=up]{auto:0b,Command:"fill 999978 121 999971 999975 121 999973 minecraft:redstone_block replace minecraft:bedrock",TrackOutput:0} destroy
setblock 999980 123 999971 chain_command_block[facing=up]{auto:1b,Command:"fill 999978 121 999971 999975 121 999973 minecraft:bedrock replace minecraft:redstone_block",TrackOutput:0} destroy
setblock 999982 123 999977 chain_command_block[facing=up,conditional=true]{auto:1b,Command:"execute if entity @e[name=DayQ,tag=!NoMetStorm] run setblock ~ ~1 ~ redstone_block",TrackOutput:0} destroy
setblock 999980 122 999974 command_block[facing=up]{auto:0b,Command:"execute unless entity @e[type=minecraft:armor_stand,name=DayQ,scores={NightQ=1..}] run scoreboard players set @e[distance=..12,nbt={Item:{tag:{display:{Lore:[\"\\\"NIQ\\\"\"]}}}}] EQK 202",TrackOutput:0} destroy
setblock 999975 122 999971 structure_block[mode=load]{name:"suhc:randomevents2",posX:0,posZ:0,posY:-1,rotation:NONE,mirror:NONE,mode:LOAD,ignoreEntities:0b}
setblock 999975 123 999971 redstone_block
setblock 999979 146 999975 chain_command_block[facing=up]{auto:1b,Command:"execute as @e[type=zombified_piglin,tag=K,tag=!SuperHostile,tag=!CopyKyu] run data merge entity @s {ArmorItems:[{},{id:potion,Count:1,tag:{Potion:\"minecraft:strong_healing\"}},{id:gold_ingot,Count:1},{id:blaze_powder,Count:1}],ArmorDropChances:[0.0F,0.0F,0.35F,0.02F],DeathLootTable:\"--\"}",TrackOutput:0} destroy
setblock 999979 134 999975 chain_command_block[facing=up]{auto:1b,Command:"/execute at @a[tag=K] unless block ~ ~2 ~ air run execute unless block ~ 0 ~ minecraft:yellow_concrete run execute positioned ~ 0 ~ run scoreboard players add @p[limit=1,dy=32] KAIR 10",TrackOutput:0} destroy
setblock 999980 128 999977 chain_command_block[facing=up]{auto:1b,Command:"replaceitem entity @e[tag=DIQ] weapon.mainhand diamond_axe{Enchantments:[{id:\"minecraft:sharpness\",lvl:9},{id:\"minecraft:knockback\",lvl:1},{id:\"minecraft:fire_aspect\",lvl:3}]}",TrackOutput:0} destroy
setblock 999980 136 999977 chain_command_block[facing=up]{auto:1b,Command:"execute if entity @e[name=DayQ,type=armor_stand,scores={DayQ=20..}] run tag @e[type=zombie,tag=K] add DoubleMobMent",TrackOutput:0} destroy
setblock 999980 137 999977 chain_command_block[facing=up]{auto:1b,Command:"execute if entity @e[name=DayQ,type=armor_stand,scores={DayQ=20..}] run effect give @e[type=zombie,tag=K] fire_resistance 5500 0",TrackOutput:0} destroy
setblock 999977 189 999977 chain_command_block[facing=up]{auto:1b,Command:"function zzzzdonotuse:7sec/zombiemobment",TrackOutput:0} destroy
setblock 999977 169 999980 chain_command_block[facing=up]{auto:1b,Command:"function zzzzdonotuse:daytimer/daytext",TrackOutput:0} destroy
setblock 999982 129 999978 chain_command_block[facing=up]{auto:1b,Command:"execute as @e[tag=DIQ2,type=!player] run data merge entity @s {HandDropChances:[0.01f]}",TrackOutput:0} destroy
setblock 999980 129 999977 chain_command_block[facing=up]{auto:1b,Command:"execute as @e[tag=DIQ,type=!player] run data merge entity @s {HandDropChances:[0.01f]}",TrackOutput:0} destroy
setblock 999982 134 999978 chain_command_block[facing=up]{auto:1b,Command:"execute if entity @e[name=DayQ,type=armor_stand,scores={DayQ=20..}] run replaceitem entity @e[tag=K,type=skeleton] weapon.offhand minecraft:tipped_arrow{CustomPotionEffects:[{Id:2b,Amplifier:5b,Duration:40}],CustomPotionColor:7104890} 1",TrackOutput:0} destroy
setblock 999982 126 999975 chain_command_block[facing=up]{auto:1b,Command:"function zzzzdonotuse:randomevent/darkness",TrackOutput:0} destroy
setblock 999980 134 999973 chain_command_block[facing=up]{auto:1b,Command:"function zzzzdonotuse:randomevent/2spooky",TrackOutput:0} destroy
setblock 999980 129 999979 chain_command_block[facing=up]{auto:1b,Command:"execute if entity @e[name=DayQ,type=armor_stand,scores={DayQ=20..}] run replaceitem entity @e[tag=K,type=skeleton] weapon.offhand minecraft:tipped_arrow{CustomPotionEffects:[{Id:25b,Amplifier:3b,Duration:20}],CustomPotionColor:13894335} 1",TrackOutput:0} destroy
setblock 999977 161 999977 chain_command_block[facing=up]{auto:1b,Command:"execute as @e[tag=K,type=!witch,type=!horse,type=!minecraft:llama,type=!donkey,type=!minecraft:skeleton_horse,type=!minecraft:zombie_horse,type=!minecraft:item_frame] run data merge entity @s {ArmorDropChances:[0.0f]}",TrackOutput:0} destroy
setblock 999982 129 999974 chain_command_block[facing=up]{auto:1b,Command:"execute at @p[tag=Griefer] run tag @e[sort=random,type=!player,type=!wolf,type=!item,type=!minecraft:armor_stand,type=!horse,type=!item_frame,type=!villager,name=!DayQ,tag=!GearKyu2,limit=1,distance=..120] add Griefer2",TrackOutput:0} destroy
setblock 999982 168 999974 chain_command_block[facing=up]{auto:1b,Command:"execute at @e[name=Grief] run playsound entity.zombie.ambient hostile @a[distance=..15] ~ ~ ~ 1 1 1",TrackOutput:0} destroy
setblock 999980 121 999971 bedrock
setblock 999979 140 999975 chain_command_block[facing=up]{auto:1b,Command:"execute at @e[scores={DayQ=1..5}] run execute as @e[tag=FollowKyu,type=#suhc:hostiles] run data merge entity @s {Attributes:[{Name:generic.follow_range,Base:25}]}",TrackOutput:0} destroy
setblock 999981 123 999978 chain_command_block[facing=up,conditional=true]{auto:1b,Command:"execute if entity @e[type=minecraft:armor_stand,name=DayQ,tag=!NoBurrow] run setblock ~ ~1 ~ redstone_block",TrackOutput:0} destroy
setblock 999976 123 999981 chain_command_block[facing=up,conditional=true]{auto:1b,Command:"execute if entity @e[type=minecraft:armor_stand,name=DayQ,tag=!NoBurrow] run execute at @e[tag=BUQ2] run summon armor_stand ~ ~3 ~ {CustomName:\"\\\"BUQ2\\\"\",Small:1,Marker:1b,Invisible:1b,Silent:1b,Invulnerable:1,NoGravity:1,DisabledSlots:2039583}",TrackOutput:0} destroy
###
setblock 999977 153 999974 chain_command_block[facing=up]{auto:1b,Command:"execute if entity @a[scores={BreadCraft=1..}] run execute as @a[scores={BreadCraft=1..}] run function zzzzdonotuse:misc/breadcrafting",TrackOutput:0} destroy
setblock 999977 154 999974 chain_command_block[facing=up]{auto:1b,Command:"tag @a[tag=K,nbt={Inventory:[{id:\"minecraft:bread\",tag:{kyucrafted:1b}}]}] add BreadKyu",TrackOutput:0} destroy
setblock 999977 155 999974 chain_command_block[facing=up,conditional=true]{auto:1b,Command:"function zzzzdonotuse:misc/givebread",TrackOutput:0} destroy
#setblock 999977 156 999974 chain_command_block[facing=up,conditional=true]{auto:1b,Command:"give @a[tag=BreadKyu] minecraft:bread{HideFlags:1,display:{Name:'{\"text\":\"Youmuu\\'s Toastblade\"}',Lore:['{\"text\":\"I ain\\'t afraid of no toast!\"}']},kyucrafted:1b,Enchantments:[{id:\"minecraft:mending\",lvl:1s}],AttributeModifiers:[{AttributeName:\"generic.attack_damage\",Name:\"generic.attack_damage\",Amount:4,Operation:0,UUIDLeast:435366,UUIDMost:744106,Slot:\"mainhand\"},{AttributeName:\"generic.movement_speed\",Name:\"generic.movement_speed\",Amount:.1,Operation:1,UUIDLeast:642001,UUIDMost:139506,Slot:\"mainhand\"}]} 1",TrackOutput:0} destroy
#setblock 999977 157 999974 chain_command_block[facing=up,conditional=true]{auto:1b,Command:"advancement grant @a[tag=K,tag=BreadKyu] only minecraft:misc/bread",TrackOutput:0} destroy
#setblock 999977 158 999974 chain_command_block[facing=up,conditional=true]{auto:1b,Command:"tag @a remove BreadKyu",TrackOutput:0} destroy
###
execute if entity @e[name=KyuAreaBlocks,tag=!KyuMeteor] run tag @e[name=DayQ] add NoMetStorm
execute if entity @e[name=DayQ,type=armor_stand,tag=MetStormOff] run tag @e[name=DayQ] add NoMetStorm
data merge block 999982 133 999984 {auto:0b}
data merge block 999982 134 999983 {auto:0b}
scoreboard objectives add SilverfishKyu dummy
scoreboard objectives add HellfireKyu dummy
scoreboard objectives add ArrowKyu2 dummy
scoreboard objectives add PowerYFireball dummy
scoreboard objectives add MotionYFireball dummy
scoreboard objectives add BreadCraft minecraft.crafted:minecraft.bread
#
data merge block 999977 141 999976 {auto:0b}
data merge block 999977 142 999976 {auto:0b}
data merge block 999977 143 999976 {auto:0b}
data merge block 999977 144 999976 {auto:0b}
data merge block 999977 145 999976 {auto:0b}
#
setblock 999984 139 999976 chain_command_block[facing=up]{auto:1b,Command:"execute at @e[name=Glowy2] run setblock ~ ~1 ~ minecraft:spawner{SpawnData:{id:\"minecraft:spider\",Tags:[\"MobMentDone\",\"NoInvis\"],ArmorItems:[{},{id:\"minecraft:iron_sword\",Count:1b,tag:{Enchantments:[{id:\"minecraft:efficiency\",lvl:10}]}},{},{}],ArmorDropChances:[0.085F,0.05F,0.085F,0.085F]},SpawnCount:1,SpawnRange:10,RequiredPlayerRange:8,Delay:1,MinSpawnDelay:30,MaxSpawnDelay:180,MaxNearbyEntities:30}",TrackOutput:0} destroy
setblock 999979 126 999976 chain_command_block[facing=up]{auto:1b,Command:"execute at @e[scores={DayQ=14..}] run effect give @e[tag=K,type=spider,name=!GK,tag=!NoInvis] invisibility 5000 0",TrackOutput:0} destroy
setblock 999983 149 999985 chain_command_block[facing=up]{auto:1b,Command:"function zzzzdonotuse:spell/startbook",TrackOutput:0} destroy
setblock 999990 203 999973 chain_command_block[facing=down]{auto:1b,Command:"/execute at @e[name=BirchKyuBuild] positioned ~1 ~2 ~5 run summon villager ~ ~ ~ {VillagerData:{level:5,profession:\"minecraft:butcher\",type:\"minecraft:savanna\"},CustomName:\"\\\"Barkeep\\\"\",CustomNameVisible:1,Profession:4,Career:1,CareerLevel:30000,Offers:{Recipes:[{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:\"minecraft:emerald\",Count:1b},sell:{id:\"minecraft:apple\",Count:6b}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:\"minecraft:emerald\",Count:1b},sell:{id:\"minecraft:bread\",Count:8b}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:\"minecraft:emerald\",Count:1b},sell:{id:\"minecraft:cooked_beef\",Count:5b}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:\"minecraft:gold_ingot\",Count:1b},sell:{id:\"minecraft:mushroom_stew\",Count:1b}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:\"minecraft:emerald\",Count:1b},sell:{id:\"minecraft:rabbit_stew\",Count:1b}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:\"minecraft:emerald\",Count:2b},sell:{id:\"minecraft:potion\",Count:1b,tag:{display:{Name:\"Pint of Beer\"},CustomPotionEffects:[{Id:2,Amplifier:0,Duration:3600,ShowParticles:0b},{Id:5,Amplifier:0,Duration:3600,ShowParticles:0b}],Potion:\"minecraft:water\",CustomPotionColor:11233050}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:\"minecraft:coal\",Count:16b},sell:{id:\"minecraft:emerald\",Count:1b}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:\"minecraft:iron_ingot\",Count:7b},sell:{id:\"minecraft:emerald\",Count:1b}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:\"minecraft:diamond\",Count:1b},sell:{id:\"minecraft:emerald\",Count:1b}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:\"minecraft:oak_planks\",Count:64b},sell:{id:\"minecraft:emerald\",Count:1b}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:\"minecraft:emerald\",Count:10b},sell:{id:\"minecraft:golden_carrot\",Count:5b}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:\"minecraft:golden_apple\",Count:16b},sell:{id:\"minecraft:enchanted_golden_apple\",Count:1b}}]}}",TrackOutput:0} destroy
setblock 999999 151 999973 chain_command_block[facing=up]{auto:1b,Command:"execute at @e[sort=random,limit=1,type=armor_stand,name=METEORKYU] if block ~ ~-1 ~ bedrock run execute at @e[sort=random,limit=1,type=armor_stand,name=METEORKYU] if block ~ ~-1 ~ bedrock run execute at @e[sort=random,limit=1,type=armor_stand,name=METEORKYU] if block ~ ~ ~ diamond_block run execute at @e[name=OreL4,scores={KyuArea=..3}] run fill ~-1 110 ~-1 ~ 60 ~ bedrock replace birch_log",TrackOutput:0} destroy
setblock 999977 178 999975 chain_command_block[facing=up]{auto:1b,Command:"tag @a[tag=K] remove SpellUpdate",TrackOutput:0} destroy
setblock 999993 121 999977 chain_command_block[facing=up]{auto:1b,Command:"execute if entity @e[name=DayQ,scores={WeatherSpell=1..}] run execute as @a[tag=WeatherSpell2,tag=K,scores={KyuSpells=11},limit=1] run scoreboard players remove @e[name=DayQ] WeatherSpell 1",TrackOutput:0} destroy
setblock 999993 122 999977 chain_command_block[facing=up,conditional=true]{auto:1b,Command:"execute if entity @e[name=DayQ,scores={WeatherSpell=0..}] run execute as @a[tag=WeatherSpell2,tag=K,scores={KyuSpells=11}] run tellraw @s [\"\",{\"text\":\"Weather cleared! This will last until morning. Charges left: \",\"color\":\"aqua\"},{\"score\":{\"name\":\"@e[name=DayQ]\",\"objective\":\"WeatherSpell\"},\"color\":\"aqua\"},{\"text\":\".\",\"color\":\"aqua\"}]",TrackOutput:0} destroy
setblock 999993 123 999977 chain_command_block[facing=up,conditional=true]{auto:1b,Command:"execute if entity @e[name=DayQ,scores={WeatherSpell=0..}] run execute as @a[tag=WeatherSpell2,tag=K,scores={KyuSpells=11}] run tag @e[name=DayQ] add Clear",TrackOutput:0} destroy
#
#data merge block 999977 189 999977 {auto:0b}
data merge block 999977 190 999977 {auto:0b}
data merge block 999977 191 999977 {auto:0b}
data merge block 999977 192 999977 {auto:0b}
data merge block 999977 193 999977 {auto:0b}
data merge block 999977 194 999977 {auto:0b}
data merge block 999977 195 999977 {auto:0b}
#
data merge block 999977 207 999977 {auto:0b}
data merge block 999977 208 999977 {auto:0b}
#
tag @e[name=KyuPatch,type=armor_stand] add PatchOnePointTwo
tellraw @a ["",{"text":"Patch 1.2 has been installed! Please double check your override settings below to make sure they are correct!","color":"gold"},{"text":"","color":"red"}]
execute as @e[tag=CurrentPatch] run data merge entity @s[tag=CurrentPatch] {CustomName:"\"Patch 1.2\"",Tags:["CurrentPatch"],NoGravity:1,Invisible:1b,Silent:1b,Invulnerable:1}