#Reset Last Level
setblock -11 53 124 dark_oak_button[powered=false,face=floor,facing=east]
scoreboard players add @p[x=-12.30,y=51.70,z=124.30,distance=..2] level 1

#Next Level
execute in overworld run tp @p[x=-12.30,y=51.70,z=124.30 ,distance=..2] -49.55 49.00 127.56 260.23 -4.80
title @p[x=-49.55,y=49.00,z=127.56,distance=..1] actionbar {"text":"Level 16: Soulsand Pass","bold":true,"color":"red"}
playsound block.note_block.chime master @p[x=-49.55,y=49.00,z=127.56,distance=..1] -49.55 49.00 127.56 1 2

#Reset Inventory
clear @p[x=-49.55,y=49.00,z=127.56,distance=..1]
item replace entity @p[x=-49.55,y=49.00,z=127.56,distance=..1] container.17 with warped_fungus_on_a_stick{display:{Name:'[{"text":"Right Click:","italic":false,"bold":true,"color":"gold"},{"text":" ","bold":false},{"text":"Return To Hub","bold":false,"color":"white"}]',Lore:['[{"text":"Teleports the player","italic":false,"color":"gray"}]','[{"text":"back to the hub.","italic":false,"color":"gray"}]']}} 1
item replace entity @p[x=-49.55,y=49.00,z=127.56,distance=..1] container.4 with polished_blackstone_button{RepairCost:40,display:{Name:'[{"text":"Polished Blackstone Button","italic":false}]',Lore:['[{"text":"You must find a ","italic":false,"color":"gray"},{"text":"Polished Blackstone Button","underlined":true},{"text":" to progress","underlined":false}]']}} 1
item replace entity @p[x=-49.55,y=49.00,z=127.56,distance=..1] container.0 with ender_eye{RepairCost:40,display:{Name:'[{"text":"Right Click:","italic":false,"bold":true,"color":"gold"},{"text":" ","bold":false},{"text":"Button Locator","bold":false,"color":"white"}]',Lore:['[{"text":"WARNING:","italic":false,"color":"red","bold":true},{"text":" Using this item will","italic":false,"color":"red","bold":false}]','[{"text":"subtract from your total hints.","italic":false,"color":"red"}]']}} 1
execute if score var spyGlass matches 1 run item replace entity @p[x=-49.55,y=49.00,z=127.56,distance=..1] container.8 with spyglass{RepairCost:40,display:{Name:'[{"text":"Magnifier","italic":false,"color":"gold","bold":true}]',Lore:['[{"text":"Hold right-click to","italic":false,"color":"gray"}]','[{"text":"magnify your target.","italic":false,"color":"gray"}]']}} 1