## Run from custom_endermen.dialogue file
## @s = player

give @s ldz:end_force_bottle_3
playsound random.pop @s ~ ~ ~ 0.8

scoreboard objectives add PrisonerID dummy
scoreboard players add .var PrisonerID 0

#execute if score .var PrisonerID matches 1 run titleraw @s actionbar { "rawtext": [ { "translate": "actionbar.dialogue.ender_charger.reward", "with":["\n"] } ] }
#execute if score .var PrisonerID matches 2 run titleraw @s actionbar { "rawtext": [ { "translate": "actionbar.dialogue.ender_chef.reward", "with":["\n"] } ] }
#execute if score .var PrisonerID matches 3 run titleraw @s actionbar { "rawtext": [ { "translate": "actionbar.dialogue.ender_gardener.reward", "with":["\n"] } ] }
#execute if score .var PrisonerID matches 4 run titleraw @s actionbar { "rawtext": [ { "translate": "actionbar.dialogue.ender_hydro.reward", "with":["\n"] } ] }

execute if score .var PrisonerID matches 1 run tellraw @s { "rawtext": [ { "translate": "actionbar.dialogue.ender_charger.reward", "with":["\n"] } ] }
execute if score .var PrisonerID matches 2 run tellraw @s { "rawtext": [ { "translate": "actionbar.dialogue.ender_chef.reward", "with":["\n"] } ] }
execute if score .var PrisonerID matches 3 run tellraw @s { "rawtext": [ { "translate": "actionbar.dialogue.ender_gardener.reward", "with":["\n"] } ] }
execute if score .var PrisonerID matches 4 run tellraw @s { "rawtext": [ { "translate": "actionbar.dialogue.ender_hydro.reward", "with":["\n"] } ] }

scoreboard objectives remove PrisonerID