effect give @a[tag=K,nbt=!{Inventory:[{tag:{kyunaturegift:1b}}]}] unluck 900 0
effect give @a[tag=K,nbt=!{Inventory:[{tag:{kyunaturegift:1b}}]}] mining_fatigue 300 0
playsound block.lava.extinguish block @a ~ ~ ~ 3 0.5 1


tellraw @a[team=P] ["",{"text":"You feel cursed...","color":"dark_red","italic":true}]
tellraw @a[tag=K,nbt={Inventory:[{tag:{kyunaturegift:1b}}]}] ["",{"text":"Your Nature's Gift protects you from the harmful effects of this event.","color":"green","italic":true}]