item replace entity @s armor.head with wither_skeleton_skull[custom_data={losesanity:tag,cursed:tag,cursehelm:tag,del:tag},item_name={"text":"Sentient Helmet","italic":false,"color":"red"},lore=[{"text":"Cursed","italic":false,"color":"red"},{"text":"Curse of Possesion","italic":false,"color":"red"},{"text":"Curse of Insanity","italic":false,"color":"red"},{"text":"Spiritual Visions","italic":false,"color":"light_purple"},{"text":"It thanks you for your cooperation","color":"gray"}],enchantments={binding_curse:1,blast_protection:2,projectile_protection:1,protection:2},attribute_modifiers=[{type:"armor",amount:3,slot:head,operation:add_value,id:"-124112852544623579-1050892"},{type:"armor_toughness",amount:2,slot:head,operation:add_value,id:"-124112852574623579-1051492"},{type:"attack_damage",amount:.4,slot:head,operation:add_multiplied_base,id:"-124112852604623579-1052092"},{type:"attack_speed",amount:.25,slot:head,operation:add_multiplied_base,id:"-124112852634623579-1052692"},{type:"max_health",amount:.4,slot:head,operation:add_multiplied_base,id:"-124112852664623579-1053292"}],unbreakable={},tooltip_display={hidden_components:[enchantments,unbreakable]}]
stopsound @s music
summon minecraft:lightning_bolt ~ 500 ~
playsound minecraft:entity.blaze.ambient player @a ~ ~1 ~ 2 0
playsound minecraft:entity.warden.heartbeat player @a ~ ~1 ~ 2 0
particle poof ~ ~1 ~ 0 0 0 .3 30
particle minecraft:soul_fire_flame ~ ~1 ~ 0 0 0 .1 30
particle minecraft:crit ~ ~1 ~ 0 0 0 1 20
particle minecraft:damage_indicator ~ ~1 ~ 0 0 0 .3 10
tellraw @s {"text":"You feel stronger","color":"gray","italic":true}
tellraw @s {"text":"Your eyes sting","color":"gray","italic":true}
tellraw @s {"text":"Something becomes aware of your presence","color":"red"}
effect give @s instant_health 1 9
effect give @s darkness 5 0 true
damage @s 1
function survivalplus:tools/cursed/laugh
tag @s add cursehelm
advancement revoke @s only survivalplus:tools/armor/equipcursehelm