execute at @s positioned ~-2 ~19 ~-3 run data merge block ~ ~ ~ {auto:1b}
scoreboard players remove @a[tag=K,scores={KyuLanternLuck=1..}] KyuLanternLuck 1

execute as @s[tag=SlowRegenKyu] run effect give @a[tag=K] minecraft:regeneration 3 0

execute at @s[scores={DayQ=5..12},tag=!Clear,tag=HardModeRain] run weather rain 300s
execute at @s[scores={DayQ=13..},tag=!Clear,tag=HardModeRain] run weather thunder 300s

execute at @s[scores={DayQ=5..12},tag=!Clear,tag=NormalModeRain,tag=!FullRainDay] run execute if predicate suhc:25percent run execute if predicate suhc:25percent run execute if predicate suhc:75percent run weather rain 300s
execute at @s[scores={DayQ=13..},tag=!Clear,tag=NormalModeRain,tag=!FullRainDay] run execute if predicate suhc:25percent run execute if predicate suhc:25percent run execute if predicate suhc:75percent run weather thunder 300s

execute at @s[scores={DayQ=5..12},tag=!Clear,tag=EasyModeRain,tag=!FullRainDay] run execute if predicate suhc:25percent run execute if predicate suhc:25percent run execute if predicate suhc:75percent run execute if predicate suhc:75percent run weather rain 300s
execute at @s[scores={DayQ=13..},tag=!Clear,tag=EasyModeRain,tag=!FullRainDay] run execute if predicate suhc:25percent run execute if predicate suhc:25percent run execute if predicate suhc:75percent run execute if predicate suhc:75percent run weather thunder 300s

execute as @s[tag=FullRainDay,scores={DayQ=1..12},tag=!Clear] run weather rain 63s
execute as @s[tag=FullRainDay,scores={DayQ=13..},tag=!Clear] run weather thunder 63s

execute as @a[scores={HealthSap=0..}] run function zzzzdonotuse:minutetimer/healthsapminutecheck

execute if entity @a[tag=CrippleZombMe] run execute in overworld run data merge block 999979 122 999971 {auto:1b}

execute as @e[type=bee,tag=ZombeeBee] run function zzzzdonotuse:minutetimer/beekill

execute as @e[tag=RemovePersist] run function zzzzdonotuse:minutetimer/removepersistence


##no longer needed :)
#execute unless entity @e[type=minecraft:armor_stand,name=TowerKyu] run data merge block 999987 124 999973 {auto:0b}
#execute unless entity @e[type=minecraft:armor_stand,name=BirchKyu2] run execute unless entity @e[type=minecraft:armor_stand,name=BirchKyu] run data merge block 999989 120 999973 {auto:0b}


execute as @a[tag=!JoinedKyu,gamemode=survival] run execute at @s run function zzzzdonotuse:minutetimer/checkfornewplayers

#execute if entity @e[type=armor_stand,name=KyuOffShoot] run function minecraft:newspoodertest1


#day timer fix
data merge block 999976 122 999979 {auto:0b}



#follow range from lantern event
execute in overworld positioned 999982 128 999980 run execute unless entity @e[distance=..3,type=marker,tag=LanternEvent] run execute as @e[tag=ReturnFollowRange] run function zzzzdonotuse:randomevent/lanterns/mobfollowrangereturn




#nether corruption check
execute if entity @e[type=marker,tag=KyuNetherCorruptionMain,scores={NetherQ=2000..}] run execute in overworld run data merge block 999976 123 999971 {auto:1b}







#tome failsafe
tag @a[nbt=!{SelectedItem:{tag:{display:{Lore:["\"A book of spells\""]}}}}] remove BookInHand









execute as @a[tag=KyuSpecialPlayerTag] run function zzzzdonotuse:minutetimer/specialplayertags