
##misc block stuff
#spider slow
execute at @s[scores={DayQ=10..}] run data merge block ~-2 ~1 ~-3 {auto:1b}

#literally what
execute at @s[scores={DayQ=44..}] run setblock ~-9 ~-1 ~1 redstone_torch

#pigman aggro
execute at @s[scores={DayQ=3}] run data merge block ~-2 ~2 ~-3 {auto:1b}

#spider poison
execute at @s[scores={DayQ=11..}] run data merge block ~-2 ~3 ~-3 {auto:1b}

execute at @s[scores={DayQ=1..4},tag=!ForceRain] run weather clear 800s



execute as @s[tag=HardMode] run execute as @a[tag=K,gamemode=!spectator] run execute at @s run execute if block ~ ~3 ~ #suhc:stones run execute unless block ~ ~ ~ minecraft:cave_air run execute unless block ~ -64 ~ minecraft:yellow_concrete run execute unless block ~ -64 ~ minecraft:red_concrete run execute positioned ~ -64 ~ run scoreboard players add @s[dy=96] KAIR 10
execute at @a[tag=K,scores={KAIR=2..}] if block ~ ~2 ~ air run scoreboard players remove @p[limit=1,tag=K,scores={KAIR=2..},dy=250,y=55] KAIR 10


function zzzzdonotuse:7sec/mobmentality
scoreboard players enable @a KyuRevive


execute at @e[type=armor_stand,name=KyuLake] run scoreboard players set @e[type=armor_stand,name=DayQ] KyuLakeR 0



execute as @a[gamemode=!spectator] run execute at @s run execute if block ~ 127 ~ bedrock run scoreboard players add @s NetherQ 250




execute at @a[tag=K,predicate=suhc:overworld] run fill ~-35 -64 ~-35 ~35 -64 ~35 orange_concrete replace bedrock

execute at @e[type=armor_stand,scores={KyuLake=1202..}] run summon armor_stand ~ ~ ~ {Tags:["ECStand"],CustomName:"\"KyuChestNone\"",NoGravity:1,Invulnerable:1,Invisible:1b,Silent:1b}
execute at @e[type=armor_stand,scores={KyuLake=1202..}] run kill @e[distance=..70,tag=KyuLake3]
kill @e[type=armor_stand,scores={KyuLake=1202..}]
execute at @s positioned ~6 ~16 ~ run data merge block ~ ~ ~ {auto:1b}
data merge block 999977 209 999978 {auto:1b}
data merge block 999977 210 999978 {auto:1b}
data merge block 999977 209 999976 {auto:1b}
data merge block 999977 210 999976 {auto:1b}
scoreboard players enable @a[tag=K] KyuSpells
give @a[scores={CobbleGen=1},gamemode=!spectator] minecraft:cobblestone 1
give @a[scores={GlassGen=1},gamemode=!spectator] minecraft:glass 2




#STRUCTURE STUFF, TO BE DELETED...
#kill @e[type=armor_stand,name=OreL3]
#execute at @a[limit=1,sort=random,gamemode=!spectator] run summon armor_stand ~ ~-5 ~ {CustomName:"\"OreL3\"",NoGravity:1b,Invisible:1,Invulnerable:1,Marker:1b}
#scoreboard players set @e[type=armor_stand,name=OreL3] ChunkCheckKyu 16
#



execute at @s[scores={DayQ=5}] run data merge block ~-2 ~6 ~-3 {auto:1b}
execute at @s[scores={DayQ=6}] run data merge block ~-2 ~14 ~-3 {auto:1b}



execute at @s[scores={DayQ=9..}] run data merge block ~-2 ~2 ~-3 {auto:0b}
execute at @s[scores={DayQ=4..}] run data merge block ~-2 ~6 ~-3 {auto:1b}

scoreboard players set @s KyuLakeC 0
execute at @e[type=armor_stand,name=KyuLake] run scoreboard players add @s KyuLakeC 1
execute at @s positioned ~6 ~16 ~1 run data merge block ~ ~ ~ {auto:0b}

kill @e[type=armor_stand,name=OreL]
execute at @s run summon armor_stand ~ ~ ~ {CustomName:"\"OreL\"",Invisible:1b,Silent:1b}




execute as @e[type=minecraft:armor_stand,tag=RepGoldKyu] run function zzzzdonotuse:misc/replacegoldblock2

#execute at @s[scores={KyuBedrock=8..}] positioned ~-2 ~19 ~-3 run data merge block ~ ~ ~ {auto:1b}
#tag @e[tag=DiamondKyu2] add FollowKyu
#execute as @s[tag=!IsNightKyu] run execute if predicate suhc:nightstart run function zzzzdonotuse:daytimer/nightstuff



execute as @a[tag=DuskDraught,predicate=suhc:onsurface] run function zzzzdonotuse:7sec/duskdraughteffect




