data modify block 999979 140 999975 Command set value "execute at @e[type=armor_stand,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}]}"
data merge block 999979 140 999975 {auto:0b}

#broked block
data merge block 999979 146 999975 {auto:0b}


#oreL3 death
data merge block 999977 162 999975 {auto:0b}
data merge block 999977 163 999975 {auto:0b}


#bye structures
setblock 999999 120 999972 air

#new sructures
setblock 999978 187 999975 chain_command_block[facing=up]{auto:1b,Command:"execute as @a[tag=K,gamemode=!spectator] run function zzzzdonotuse:structures/checkforstructurespotpart1",TrackOutput:0} destroy


#spooderfix
setblock 999981 149 999982 minecraft:chain_command_block[facing=west]{auto:1b,Command:"gamerule maxCommandChainLength 999999999",TrackOutput:0} destroy

#blastsmith
data merge block 999990 137 999978 {auto:0b}
#nvm lol data modify block 999990 160 999978 Command set value "execute at @e[tag=TempFound] positioned ~4 59 ~ run function zzzzdonotuse:structures/blastsmith"

kill @e[type=armor_stand,name=Temp]
kill @e[type=armor_stand,name=OreL3]


#KCP = Kyu Chunk Position, used for the chunk borders
scoreboard objectives add ChunkCheckKyu dummy
scoreboard objectives add KCPX1 dummy
scoreboard objectives add KCPX2 dummy
scoreboard objectives add KCPZ1 dummy
scoreboard objectives add KCPZ2 dummy
scoreboard objectives add TNTCrossbowTimer dummy

#tntcrossbow
setblock 999977 122 999971 minecraft:repeating_command_block[facing=up]{auto:0b,Command:"function zzzzdonotuse:weapons/tntcrossbowtimer",TrackOutput:0} destroy


tag @e[name=KyuPatch,type=armor_stand] add PatchOnePointFourPointThree
#tellraw @a ["",{"text":"Patch 1.4.3 has been installed!","color":"gold"},{"text":"","color":"red"}]
execute as @e[tag=CurrentPatch] run data merge entity @s[tag=CurrentPatch] {CustomName:"\"Patch 1.4.3\"",Tags:["CurrentPatch"],NoGravity:1,Invisible:1b,Silent:1b,Invulnerable:1}



#execute as @e[type=armor_stand,name=DayQ] run function zzzzdonotuse:difficulty/normaldifficulty