clear @s written_book[custom_data={curse_book:tag,nodupe:tag}] 1
execute if score @s cursemenu matches 1 run tag @s add tcurse1
execute if score @s cursemenu matches 2 run tag @s add tcurse2
execute if score @s cursemenu matches 3 run tag @s add tcurse3
execute if score @s cursemenu matches 4 run tag @s add tcurse4
execute if score @s cursemenu matches 5 run tag @s add tcurse5
execute if score @s cursemenu matches 6 run tag @s add tcurse6
execute if score @s cursemenu matches 7 run tag @s add tcurse7
execute if score @s cursemenu matches 7 run tag @s add dmgreduce
execute if score @s cursemenu matches 8 run tag @s add tcurse8
tag @s add titancurse
execute at @s run particle flash ~ ~1.5 ~
execute at @s run particle firework ~ ~1.5 ~ 0 0 0 .5 50
execute at @s run playsound minecraft:item.trident.thunder player @a ~ ~1 ~ 1 .5
tellraw @s {"text": "To remove your curse, offer yourself to The Cursed Titan","color": "gray","italic": true}

scoreboard players reset @s cursemenu
advancement revoke @s only survivalplus:tools/titan/titans_curse