setblock ~ ~ ~ nether_wart_block
particle block{block_state:{Name:nether_wart_block}} ~ ~ ~ .2 .2 .2 0 50
playsound minecraft:block.beacon.power_select hostile @a ~ ~ ~ 2 0
playsound minecraft:block.beacon.deactivate hostile @a ~ ~ ~ 2 .5
playsound minecraft:entity.wither.death hostile @a ~ ~ ~ 1 0
tellraw @p {"text": "Choose...","italic": true,"color": "gray"}
tag @p add titans_gambit
execute at @e[tag=giantRhand] run summon item ~ ~ ~ {Glowing:1b,Tags:[deal1,devil_deal,itemguard,special],CustomName:{"text":"Choose from a list of strong abilites","color": "yellow"},CustomNameVisible:1b,NoGravity:1b,Item:{id:"minecraft:written_book",components:{"minecraft:custom_data":{devil_deal:tag,takebook:tag,nodupe:tag},"minecraft:written_book_content":{pages:[[["",{"text":"Stats Up","color":"blue","click_event":{"action":"run_command","command":"/trigger titanmenu set 1"},"hover_event":{"action":"show_text","value":"Click to select"}},{"text":"\n+20% Speed\n+50% Damage\n+70% Mining Speed\n+0.6 Step Height\n\nApplies to all players"}]],[["",{"text":"+20 Max HP","color":"blue","click_event":{"action":"run_command","command":"/trigger titanmenu set 2"},"hover_event":{"action":"show_text","value":"Click to select"}},{"text":"\nA second health bar\n\nApplies to all players"}]],[["",{"text":"Crits","color":"blue","click_event":{"action":"run_command","command":"/trigger titanmenu set 3"},"hover_event":{"action":"show_text","value":"Click to select"}},{"text":"\nGain a 10% chance to deal +100% damage on hit\n\nApplies to all players"}]],[["",{"text":"Defbuff Imbued","color":"blue","click_event":{"action":"run_command","command":"/trigger titanmenu set 4"},"hover_event":{"action":"show_text","value":"Click to select"}},{"text":"\nImbue attacks with weakness and slowness for 5 seconds\n\nApplies to all players"}]],[["",{"text":"Spawners","color":"blue","click_event":{"action":"run_command","command":"/trigger titanmenu set 5"},"hover_event":{"action":"show_text","value":"Click to select"}},{"text":"\nObtain 5 spawners to be placed manually"},{"text":"\nand 5 random spawn eggs"}]],[["",{"text":"Cursed Sword","color":"blue","click_event":{"action":"run_command","command":"/trigger titanmenu set 6"},"hover_event":{"action":"show_text","value":"Click to select"}},{"text":"\nObtain a special formless sword"}]],[["",{"text":"Salvage Spawners","color":"blue","click_event":{"action":"run_command","command":"/trigger titanmenu set 7"},"hover_event":{"action":"show_text","value":"Click to select"}},{"text":"\nObtain a special tool that has a 25% chance to not destroy a spawner when broken"}]],[["",{"text":"Increase Mana","color":"blue","click_event":{"action":"run_command","command":"/trigger titanmenu set 8"},"hover_event":{"action":"show_text","value":"Click to select"}},{"text":"\nGain +10 permanent XP levels that regenerate over time\n\nApplies to all current players"}]],[["",{"text":"Stronger Souls","color":"blue","click_event":{"action":"run_command","command":"/trigger titanmenu set 9"},"hover_event":{"action":"show_text","value":"Click to select"}},{"text":"\nXp orbs grant more experience"}]]],title:"Option Book",author:Titan,generation:3}}}}
execute at @e[tag=deal1] run summon text_display ~ ~1.8 ~ {text:"One of the following:",Tags:[facetext,special,devil_deal]}
execute at @e[tag=deal1] run summon text_display ~ ~1.4 ~ {text:"Give a powerful ability to all players",Tags:[facetext,special,devil_deal]}
execute at @e[tag=deal1] run summon text_display ~ ~1 ~ {text:"Obtain a special tool",Tags:[facetext,special,devil_deal]}

execute at @e[tag=giantLhand] run summon item ~ ~ ~ {Glowing:1b,Tags:[deal2,devil_deal,itemguard,special],CustomName:{"text":"Take up a challenge","color": "yellow"},CustomNameVisible:1b,NoGravity:1b,Item:{id:wither_skeleton_skull,tag:{devil_deal:"tag",takechallenge:"tag",nodupe:"tag"}}}
execute at @e[tag=deal2] run summon text_display ~ ~2.2 ~ {text:"Player stats will be reduced",Tags:[facetext,special,devil_deal]}
execute at @e[tag=deal2] run summon text_display ~ ~1.8 ~ {text:"Enemy stats will be increased",Tags:[facetext,special,devil_deal]}
execute at @e[tag=deal2] run summon text_display ~ ~1.4 ~ {text:"More Blood Moons",Tags:[facetext,special,devil_deal]}
execute at @e[tag=deal2] run summon text_display ~ ~1 ~ {text:"Obtain the Black Castle Keys",Tags:[facetext,special,devil_deal]}
forceload remove ~ ~
kill @e[tag=giantskel]