execute at @a[tag=KyuLavaCharm,gamemode=!spectator] run fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 obsidian replace lava
effect clear @a[tag=K,tag=KyuPI] minecraft:poison
scoreboard players set @a[tag=K] KyuLuck 0
effect clear @a[tag=K] luck
scoreboard players add @a[predicate=suhc:wearingluckboots] KyuLuck 1
scoreboard players add @a[tag=K,nbt={SelectedItem:{id:"minecraft:rabbit_foot",tag:{display:{Lore:["\"Gives +1 luck when held in your hand.\""]}}}}] KyuLuck 1
scoreboard players add @a[tag=K,nbt={Inventory:[{tag:{kyudubloon:1b}}]}] KyuLuck 1
scoreboard players add @a[tag=K,tag=KyuLuck] KyuLuck 1
scoreboard players add @a[tag=K,scores={KyuLuck20min=1..}] KyuLuck 1
scoreboard players add @a[tag=K,scores={KyuLanternLuck=1..}] KyuLuck 1

effect give @a[tag=K,scores={KyuLuck=1}] luck 5000 0 true
effect give @a[tag=K,scores={KyuLuck=2}] luck 5000 1 true
effect give @a[tag=K,scores={KyuLuck=3}] luck 5000 2 true
effect give @a[tag=K,scores={KyuLuck=4}] luck 5000 3 true
effect give @a[tag=K,scores={KyuLuck=5}] luck 5000 4 true
effect give @a[tag=K,scores={KyuLuck=6}] luck 5000 5 true

effect give @a[tag=K,tag=KyuSuperLucky] luck 5000 9 true
tag @a remove KyuSuperLucky

#execute if entity
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 @e[type=minecraft:armor_stand,tag=ChampEffects] run function zzzzdonotuse:halfsec/champeffects1

execute as @a[predicate=suhc:wearingankhshield] run function zzzzdonotuse:trinketeffect/ankh

#moved to 1-tick
#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


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


