effect give @s strength 3 1 true
effect give @s regeneration 3 0 true
effect give @s health_boost 3 1 true
effect give @s resistance 3 0 true
effect give @s speed 3 3 true
effect give @s hunger 3 1 true

particle dust_color_transition{from_color:[1.0,0.0,0.0],to_color:[0.75,0.0,0.0],scale:0.75} ~ ~1 ~ 0.6 0.6 0.6 1 25
playsound entity.warden.heartbeat player @a[distance=..4] ~ ~1 ~ 0.5 0.5

execute if entity @s[nbt={Inventory:[{id:"minecraft:structure_block",components:{"minecraft:custom_data":{dagda_cauldron:1b}}}]},tag=!oni_horn_wearer] run tellraw @s [{"text": "[Dagda's Cauldron] ","color": "#AD67C2","italic": false}, {"text": "A much more powerful relic has completely nullified this relic's effects!","color": "red","italic": false}]
execute if entity @s[nbt={Inventory:[{id:"minecraft:structure_block",components:{"minecraft:custom_data":{dagda_cauldron:1b}}}]},tag=!oni_horn_wearer] at @s run playsound minecraft:block.glass.break player @s ~ ~ ~ 1 0.5
tag @s add oni_horn_wearer

schedule function kiwi3:relics/oni_horn/oni_horn_remove_tag 20t replace

