clear @s written_book[custom_data={devil_deal:tag,taketool:tag,nodupe:tag}] 1
advancement grant @s only survivalplus:adventure/explore/ngtool

execute if score @s titanmenu2 matches 1 run loot give @s loot survivalplus:ngtools/unbreakable
execute if score @s titanmenu2 matches 1 run loot give @s loot survivalplus:ngtools/unbreakable
execute if score @s titanmenu2 matches 1 run loot give @s loot survivalplus:ngtools/unbreakable

execute if score @s titanmenu2 matches 2 run loot give @s loot survivalplus:ngtools/spawnersalvage

execute if score @s titanmenu2 matches 3 run loot give @s loot survivalplus:ngtools/dual_spawner
execute if score @s titanmenu2 matches 3 run loot give @s loot survivalplus:ngtools/dual_spawner
execute if score @s titanmenu2 matches 3 run loot give @s loot survivalplus:ngtools/dual_spawner
execute if score @s titanmenu2 matches 3 run loot give @s loot survivalplus:ngtools/dual_spawner

execute if score @s titanmenu2 matches 4 run loot give @s loot survivalplus:ngtools/capturebag

execute if score @s titanmenu2 matches 5 run loot give @s loot survivalplus:ngtools/1uptotem

execute if score @s titanmenu2 matches 6 run loot give @s loot survivalplus:ngtools/ngshulker

#execute if score @s titanmenu2 matches 7 run loot give @s loot survivalplus:ngtools/guarditem
#execute if score @s titanmenu2 matches 7 run loot give @s loot survivalplus:ngtools/guarditem

#execute if score @s titanmenu2 matches 8 run loot give @s loot survivalplus:ngtools/titanskull

execute at @s run particle flash{color:[1,0,0,0]} ~ ~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 .8

scoreboard players reset @s titanmenu2
tag @s remove titans_gambit
scoreboard players reset Titan illager
advancement revoke @s only survivalplus:tools/titan/titans_gambit2