#Next Level
execute in minecraft:overworld run tp @p[x=40.49,y=148.00,z=102.37,distance=..3] 18.50 51.00 99.50 35.53 -0.00
scoreboard players set @p[x=18.50,y=51.00,z=99.50] level 1
title @p[x=18.50,y=51.00,z=99.50] actionbar {"text":"Level 1: The Plains","bold":true,"color":"green"}

#Reset Inventory
item replace entity @p[x=18.50,y=51.00,z=99.50] armor.feet with leather_boots 1
clear @p[x=18.50,y=51.00,z=99.50]
item replace entity @p[x=18.50,y=51.00,z=99.50] 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=18.50,y=51.00,z=99.50] container.4 with oak_button{RepairCost:40,display:{Name:'[{"text":"Oak Button","italic":false}]',Lore:['[{"text":"You must find an ","italic":false,"color":"gray"},{"text":"Oak Button","underlined":true},{"text":" to progress","underlined":false}]']}} 1
item replace entity @p[x=18.50,y=51.00,z=99.50] 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,"bold":true,"color":"red"},{"text":" Using this item will","bold":false},{"text":"","bold":false,"color":"dark_purple"}]','[{"text":"subtract from your total hints.","italic":false,"color":"red"}]']}} 1
execute if score var spyGlass matches 1 run item replace entity @p[x=18.50,y=51.00,z=99.50] 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