scoreboard players set #DayQ 10TickTimer 0
execute at @a[tag=KyuLavaCharm] run fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 obsidian replace lava
effect clear @a[tag=KyuPI] minecraft:poison
scoreboard players set @a KyuLuck 0
effect clear @a luck
scoreboard players add @a[predicate=suhc:wearingluckboots] KyuLuck 1
scoreboard players add @a[nbt={SelectedItem:{id:"minecraft:rabbit_foot",tag:{display:{Lore:["\"Gives +1 luck when held in your hand.\""]}}}}] KyuLuck 1
scoreboard players add @a[nbt={Inventory:[{tag:{kyudubloon:1b}}]}] KyuLuck 1
scoreboard players add @a[tag=KyuLuck] KyuLuck 1
scoreboard players add @a[scores={KyuLuck20min=1..}] KyuLuck 1
effect give @a[scores={KyuLuck=1}] luck 5000 0
effect give @a[scores={KyuLuck=2}] luck 5000 1
effect give @a[scores={KyuLuck=3}] luck 5000 2
effect give @a[scores={KyuLuck=4}] luck 5000 3
effect give @a[scores={KyuLuck=5}] luck 5000 4
execute if entity @a[scores={KyuSpells=1..}] run execute as @a[scores={KyuSpells=1..}] run function zzzzdonotuse:spell/activatespellmain
execute as @e[type=minecraft:armor_stand,tag=ChampEffects] run execute at @s positioned ~ ~-1 ~ run execute unless entity @e[tag=ChampMob,limit=1,sort=nearest,distance=..1] run function zzzzdonotuse:halfsec/champeffects
execute as @a[predicate=suhc:wearingankhshield] run function zzzzdonotuse:trinketeffect/ankh

execute as @a[predicate=suhc:sneakonground,x_rotation=-90..-30] run execute as @s[predicate=suhc:wearingspringboots] run execute as @s[nbt={OnGround:1b}] run function zzzzdonotuse:modifyarmor/modules/springbootseffect

effect give @a[tag=KyuSlowFall] minecraft:slow_falling 1 0
effect give @a[nbt={SelectedItem:{tag:{kyuslowfall:1b}}}] minecraft:slow_falling 1 0
execute as @a run execute at @s positioned ^ ^ ^1.5 run execute if entity @e[type=minecraft:armor_stand,distance=..1.5,tag=NetherShopText] run execute as @s run function zzzzdonotuse:halfsec/detectshopstand

execute as @a[nbt={SelectedItem:{id:"minecraft:paper",tag:{Enchantments:[{}]}}},tag=!SpellUpdate] run function zzzzdonotuse:spell/consumepagemain
scoreboard players enable @a KyuSpells
tag @a[tag=SpellUpdate,tag=SpellUpdateRemove] remove SpellUpdate
tag @a[tag=SpellUpdateRemove] remove SpellUpdateRemove

execute as @a[tag=GlassWard] run function zzzzdonotuse:modifyarmor/modules/glasswardeffect

execute as @a run execute at @s run execute as @e[distance=..4,type=item,nbt={Item:{Count:1b,tag:{display:{Lore:["\"Throw me on the ground for a surprise!\""]}}}}] run function zzzzdonotuse:halfsec/raredroptable


execute as @a[tag=K,gamemode=!spectator] run function zzzzdonotuse:structures/checkforstructurespotpart1

execute as @a[predicate=suhc:holdingoffhandactivate] run function zzzzdonotuse:spell/activateoffhandmain