#we're checking to see if this player selected a puzzle set by stealing the head of an armor stand
execute if entity @s[nbt={Inventory:[{id:"minecraft:dark_oak_fence_gate"}]}] run function bd:game/new_game/dozeoff
execute if entity @s[nbt={Inventory:[{id:"minecraft:pumpkin"}]}] run function bd:game/new_game/challenge
execute if entity @s[nbt={Inventory:[{id:"minecraft:lectern"}]}] run function bd:game/new_game/tutorial
execute if entity @s[nbt={Inventory:[{id:"minecraft:gold_block"}]}] run function bd:game/new_game/fingermaps

execute if entity @s[nbt={Inventory:[{id:"minecraft:lime_wool"}]}] run function bd:game/new_game/_continue
execute if entity @s[nbt={Inventory:[{id:"minecraft:tnt"}]}] run function bd:game/new_game/_start_over

title @s actionbar ["",{"text":"Use ","color":"white"},{"keybind":"key.use","color":"yellow"},{"text":" to make your selection.","color":"white"}]