#Reset Last Level
setblock 19 55 102 oak_button[powered=false,face=floor,facing=north]
scoreboard players add @p[x=19.48,y=55.00,z=102.49,distance=..3] level 1

#Next Level
execute in minecraft:overworld run tp @p[x=19.48,y=55.00,z=102.49,distance=..3] 6.51 49.00 102.62 181.18 1.20
title @p[x=6.49,y=49.00,z=102.34,distance=..1] actionbar {"text":"Level 2: Marshlands","bold":true,"color":"dark_green"}
playsound minecraft:block.note_block.chime master @p[x=6.49,y=49.00,z=102.34,distance=..1] 6.49 49.00 102.34 1 2

#Reset Inventory
clear @p[x=6.49,y=49.00,z=102.34,distance=..1]
item replace entity @p[x=6.49,y=49.00,z=102.34,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=6.49,y=49.00,z=102.34,distance=..1] container.4 with spruce_button{RepairCost:40,display:{Name:'[{"text":"Spruce Button","italic":false}]',Lore:['[{"text":"You must find a ","italic":false,"color":"gray"},{"text":"Spruce Button","underlined":true},{"text":" to progress","underlined":false}]']}} 1
item replace entity @p[x=6.49,y=49.00,z=102.34,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=6.49,y=49.00,z=102.34,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