{
	"format_version": "1.17.100",
	"minecraft:npc_dialogue":
	{
		"scenes":
		[
			{
				"scene_tag": "guipage0",
				"npc_name": { "rawtext": [ {"text":"Menu"} ] },
				"text": { "rawtext": [ {"text":"Menu"} ] },
				"buttons": [
					{
						"name": { "rawtext": [ {"text":"Play"} ] },
						"commands": [
							"/dialogue open @s @initiator[tag=hub] menu0",
							"/title @a[tag=!hub] actionbar §cYou can only access §fPlay §cin the Main Menu!",
							"/playsound note.bass @a[tag=!hub]"
						]
					},
					{
					    "name": { "rawtext": [ {"text":"§aShop"} ] },
						"commands": [
							"/dialogue open @s @initiator[tag=!hub] shop0",
							"/title @a[tag=hub] actionbar §cOnly in game players can access §fShop!",
							"/playsound note.bass @a[tag=hub]"
						]
					},
					{
						"name": { "rawtext": [ {"text":"Go to Hub"} ] },
						"commands": [
							"/dialogue open @s @initiator[tag=!hub] gohub0",
							"/title @a[tag=hub] actionbar §cOnly in game players can access §fGo to Hub!",
							"/playsound note.bass @a[tag=hub]"
						]
					},
					{
					    "name": { "rawtext": [ {"text":"Reset"} ] },
						"commands": [
							"/dialogue open @s @initiator[tag=operator] reset0",
							"/title @a[tag=!operator] actionbar OPERATOR§c can only access §fReset!",
							"/playsound note.bass @a[tag=!operator]"
						]
					},
					{
						"name": { "rawtext": [ {"text":"Credits"} ] },
						"commands": [
						    "/dialogue open @s @initiator credits0 "
						]
				    },
				    {
						"name": { "rawtext": [ {"text":"Close"} ] },
						"commands": [
						]
					}
				]
			},
			{
				"scene_tag": "gohub0",
				"npc_name": { "rawtext": [ {"text":"Go to Hub"} ] },
				"text": { "rawtext": [ {"text":"§cYOUR INVENTORY WILL RESET, PLEASE PUT YOUR ITEMS IN YOUR CHEST FIRST!"} ] },
				"buttons": [
					{
						"name": { "rawtext": [ {"text":"Go to Hub"} ] },
						"commands": [
							"/clear @initiator ",
							"/spawnpoint @initiator 90002 17 -90024 ",
							"/tag @initiator add hub"
						]
					},
					{
						"name": { "rawtext": [ {"text":"Back"} ] },
						"commands": [
						    "/dialogue open @s @initiator guipage0"
						]
					}
				]
			},
			{
				"scene_tag": "shop0",
				"npc_name": { "rawtext": [ {"text":"Shop"} ] },
				"text": { "rawtext": [ {"text":"Your §aMoney§f is displayed at the sidebar"} ] },
				"buttons": [
					{
						"name": { "rawtext": [ {"text":"Logs"} ] },
						"commands": [
							"/dialogue open @s @initiator shop1 "
						]
					},
					{
						"name": { "rawtext": [ {"text":"Stone"} ] },
						"commands": [
							"/dialogue open @s @initiator shop2 "
						]
					},
					{
						"name": { "rawtext": [ {"text":"Ores"} ] },
						"commands": [
							"/dialogue open @s @initiator shop3 "
						]
					},
					{
					"name": { "rawtext": [ {"text":"Seeds"} ] },
						"commands": [
							"/dialogue open @s @initiator shop4 "
						]
					},
					{
						"name": { "rawtext": [ {"text":"Back"} ] },
						"commands": [
						    "/dialogue open @s @initiator guipage0"
						]
					}
				]
			},
			{
				"scene_tag": "shop1",
				"npc_name": { "rawtext": [ {"text":"Shop"} ] },
				"text": { "rawtext": [ {"text":"Logs"} ] },
				"buttons": [
					{
						"name": { "rawtext": [ {"text":"Oak 4 : §a10$"} ] },
						"commands": [
							"/execute @initiator[scores={money=10..}] ~~~ give @p log 4",
							"/execute @initiator[scores={money=10..}] ~~~ scoreboard players remove @p money 10",
							"/execute @initiator[scores={money=10..}] ~~~ playsound note.pling ",
							"/execute @initiator[scores={money=..9}] ~~~ title @p actionbar §cNot enough §aMoney",
							"/execute @initiator[scores={money=..9}] ~~~ playsound note.bass "
						]
					},
					{
						"name": { "rawtext": [ {"text":"Spruce 4 : §a10$"} ] },
						"commands": [
							"/execute @initiator[scores={money=10..}] ~~~ give @p log 4 1",
							"/execute @initiator[scores={money=10..}] ~~~ scoreboard players remove @p money 10",
							"/execute @initiator[scores={money=10..}] ~~~ playsound note.pling ",
							"/execute @initiator[scores={money=..9}] ~~~ title @p actionbar §cNot enough §aMoney",
							"/execute @initiator[scores={money=..9}] ~~~ playsound note.bass "
						]
					},
					{
						"name": { "rawtext": [ {"text":"Birch 4 : §a10$"} ] },
						"commands": [
							"/execute @initiator[scores={money=10..}] ~~~ give @p log 4 2",
							"/execute @initiator[scores={money=10..}] ~~~ scoreboard players remove @p money 10",
							"/execute @initiator[scores={money=10..}] ~~~ playsound note.pling ",
							"/execute @initiator[scores={money=..9}] ~~~ title @p actionbar §cNot enough §aMoney",
							"/execute @initiator[scores={money=..9}] ~~~ playsound note.bass "
						]
					},
					{
						"name": { "rawtext": [ {"text":"Jungle 4 : §a10$"} ] },
						"commands": [
							"/execute @initiator[scores={money=10..}] ~~~ give @p log 4 3",
							"/execute @initiator[scores={money=10..}] ~~~ scoreboard players remove @p money 10",
							"/execute @initiator[scores={money=10..}] ~~~ playsound note.pling ",
							"/execute @initiator[scores={money=..9}] ~~~ title @p actionbar §cNot enough §aMoney",
							"/execute @initiator[scores={money=..9}] ~~~ playsound note.bass "
						]
					},
					{
						"name": { "rawtext": [ {"text":"Acacia 4 : §a10$"} ] },
						"commands": [
							"/execute @initiator[scores={money=10..}] ~~~ give @p log2 4",
							"/execute @initiator[scores={money=10..}] ~~~ scoreboard players remove @p money 10",
							"/execute @initiator[scores={money=10..}] ~~~ playsound note.pling ",
							"/execute @initiator[scores={money=..9}] ~~~ title @p actionbar §cNot enough §aMoney",
							"/execute @initiator[scores={money=..9}] ~~~ playsound note.bass "
						]
					},
					{
						"name": { "rawtext": [ {"text":"Dark 4 : §a10$"} ] },
						"commands": [
							"/execute @initiator[scores={money=10..}] ~~~ give @p log2 4 1",
							"/execute @initiator[scores={money=10..}] ~~~ scoreboard players remove @p money 10",
							"/execute @initiator[scores={money=10..}] ~~~ playsound note.pling ",
							"/execute @initiator[scores={money=..9}] ~~~ title @p actionbar §cNot enough §aMoney",
							"/execute @initiator[scores={money=..9}] ~~~ playsound note.bass "
						]
					}
				]
			},
			{
				"scene_tag": "shop2",
				"npc_name": { "rawtext": [ {"text":"Shop"} ] },
				"text": { "rawtext": [ {"text":"Stone"} ] },
				"buttons": [
					{
						"name": { "rawtext": [ {"text":"Cobble 32 : §a20$"} ] },
						"commands": [
							"/execute @initiator[scores={money=20..}] ~~~ give @p cobblestone 32",
							"/execute @initiator[scores={money=20..}] ~~~ scoreboard players remove @p money 20",
							"/execute @initiator[scores={money=20..}] ~~~ playsound note.pling ",
							"/execute @initiator[scores={money=..19}] ~~~ title @p actionbar §cNot enough §aMoney",
							"/execute @initiator[scores={money=..19}] ~~~ playsound note.bass "
						]
					},
					{
						"name": { "rawtext": [ {"text":"Stone 32 : §a30$"} ] },
						"commands": [
							"/execute @initiator[scores={money=30..}] ~~~ give @p stone 32",
							"/execute @initiator[scores={money=30..}] ~~~ scoreboard players remove @p money 30",
							"/execute @initiator[scores={money=30..}] ~~~ playsound note.pling ",
							"/execute @initiator[scores={money=..29}] ~~~ title @p actionbar §cNot enough §aMoney",
							"/execute @initiator[scores={money=..29}] ~~~ playsound note.bass "
						]
					}
				]
			},
			{
				"scene_tag": "shop3",
				"npc_name": { "rawtext": [ {"text":"Shop"} ] },
				"text": { "rawtext": [ {"text":"Ores"} ] },
				"buttons": [
					{
						"name": { "rawtext": [ {"text":"Coal 16 : §a20$"} ] },
						"commands": [
							"/execute @initiator[scores={money=20..}] ~~~ give @p coal 16",
							"/execute @initiator[scores={money=20..}] ~~~ scoreboard players remove @p money 20",
							"/execute @initiator[scores={money=20..}] ~~~ playsound note.pling ",
							"/execute @initiator[scores={money=..19}] ~~~ title @p actionbar §cNot enough §aMoney",
							"/execute @initiator[scores={money=..19}] ~~~ playsound note.bass "
						]
					},
					{
						"name": { "rawtext": [ {"text":"Iron 10 : §a30$"} ] },
						"commands": [
							"/execute @initiator[scores={money=30..}] ~~~ give @p iron_ingot 10",
							"/execute @initiator[scores={money=30..}] ~~~ scoreboard players remove @p money 30",
							"/execute @initiator[scores={money=30..}] ~~~ playsound note.pling ",
							"/execute @initiator[scores={money=..29}] ~~~ title @p actionbar §cNot enough §aMoney",
							"/execute @initiator[scores={money=..29}] ~~~ playsound note.bass "
						]
					},
					{
						"name": { "rawtext": [ {"text":"Diam 6 : §a40$"} ] },
						"commands": [
							"/execute @initiator[scores={money=40..}] ~~~ give @p diamond 6",
							"/execute @initiator[scores={money=40..}] ~~~ scoreboard players remove @p money 40",
							"/execute @initiator[scores={money=40..}] ~~~ playsound note.pling ",
							"/execute @initiator[scores={money=..39}] ~~~ title @p actionbar §cNot enough §aMoney",
							"/execute @initiator[scores={money=..39}] ~~~ playsound note.bass "
						]
					},
					{
						"name": { "rawtext": [ {"text":"Reds 64 : §a40$"} ] },
						"commands": [
							"/execute @initiator[scores={money=40..}] ~~~ give @p redstone 64",
							"/execute @initiator[scores={money=40..}] ~~~ scoreboard players remove @p money 40",
							"/execute @initiator[scores={money=40..}] ~~~ playsound note.pling ",
							"/execute @initiator[scores={money=..39}] ~~~ title @p actionbar §cNot enough §aMoney",
							"/execute @initiator[scores={money=..39}] ~~~ playsound note.bass "
						]
					}
				]
			},
			{
				"scene_tag": "shop4",
				"npc_name": { "rawtext": [ {"text":"Shop"} ] },
				"text": { "rawtext": [ {"text":"Seeds"} ] },
				"buttons": [
					{
						"name": { "rawtext": [ {"text":"POTATO 6 : §a2$"} ] },
						"commands": [
							"/execute @initiator[scores={money=2..}] ~~~ give @p potato 6",
							"/execute @initiator[scores={money=2..}] ~~~ scoreboard players remove @p money 2",
							"/execute @initiator[scores={money=2..}] ~~~ playsound note.pling ",
							"/execute @initiator[scores={money=..1}] ~~~ title @p actionbar §cNot enough §aMoney",
							"/execute @initiator[scores={money=..1}] ~~~ playsound note.bass "
						]
					},
					{
						"name": { "rawtext": [ {"text":"Wheat 6 : §a10$"} ] },
						"commands": [
							"/execute @initiator[scores={money=10..}] ~~~ give @p wheat_seeds 6",
							"/execute @initiator[scores={money=10..}] ~~~ scoreboard players remove @p money 10",
							"/execute @initiator[scores={money=10..}] ~~~ playsound note.pling ",
							"/execute @initiator[scores={money=..9}] ~~~ title @p actionbar §cNot enough §aMoney",
							"/execute @initiator[scores={money=..9}] ~~~ playsound note.bass "
						]
					},
					{
						"name": { "rawtext": [ {"text":"Pump 6 : §a10$"} ] },
						"commands": [
							"/execute @initiator[scores={money=10..}] ~~~ give @p pumpkin_seeds 6",
							"/execute @initiator[scores={money=10..}] ~~~ scoreboard players remove @p money 10",
							"/execute @initiator[scores={money=10..}] ~~~ playsound note.pling ",
							"/execute @initiator[scores={money=..9}] ~~~ title @p actionbar §cNot enough §aMoney",
							"/execute @initiator[scores={money=..9}] ~~~ playsound note.bass "
						]
					},
					{
						"name": { "rawtext": [ {"text":"Melon 6 : §a20$"} ] },
						"commands": [
							"/execute @initiator[scores={money=20..}] ~~~ give @p melon_seeds 6",
							"/execute @initiator[scores={money=20..}] ~~~ scoreboard players remove @p money 20",
							"/execute @initiator[scores={money=20..}] ~~~ playsound note.pling ",
							"/execute @initiator[scores={money=..19}] ~~~ title @p actionbar §cNot enough §aMoney",
							"/execute @initiator[scores={money=..19}] ~~~ playsound note.bass "
						]
					}
               ]
			},
			{
				"scene_tag": "menu0",
				"npc_name": { "rawtext": [ {"text":"Play"} ] },
				"text": { "rawtext": [ {"text":"Play Options"} ] },
				"buttons": [
					{
						"name": { "rawtext": [ {"text":"Start"} ] },
						"commands": [
							"/dialogue open @s @initiator start0 "
						]
					},
					{
						"name": { "rawtext": [ {"text":"Modes"} ] },
						"commands": [
						    "/dialogue open @s @initiator modes0 "
						]
					},
					{
						"name": { "rawtext": [ {"text":"Back"} ] },
						"commands": [
						    "/dialogue open @s @initiator guipage0 "
						]
					}
				]
			},
			{
				"scene_tag": "start0",
				"npc_name": { "rawtext": [ {"text":"Start"} ] },
				"text": { "rawtext": [ {"text":"Start the game"} ] },
				"buttons": [
					{
						"name": { "rawtext": [ {"text":"Start"} ] },
						"commands": [
						    "/setblock 90010 1 -90010 air",
						    "/clear @initiator[tag=hub] carved_pumpkin",
							"/tag @initiator[tag=hub] remove hub",
							"/tag @initiator add opening",
							"/playsound note.hat @a"
						]
					},
					{
						"name": { "rawtext": [ {"text":"Back"} ] },
						"commands": [
						  "/dialogue open @s @initiator menu0 "
						]
					}
				]
			},
			{ 
			   "scene_tag": "reset0",
				"npc_name": { "rawtext": [ {"text":"Reset"} ] },
				"text": { "rawtext": [ {"text":"§cNote that this can fix the problems you're currently encountering except your depression, but this could also reset your progress. (THIS DOES NOT FULLY RESET THE BUILDS PROGRESSION)"} ] },
				"buttons": [
					{
						"name": { "rawtext": [ {"text":"Reset"} ] },
						"commands": [
						    "/dialogue open @s @initiator modes0 "
						]
					},
					{
						"name": { "rawtext": [ {"text":"Cancel"} ] },
						"commands": [
						     "/dialogue open @s @initiator guipage0 "
						]
					}
				]
			},
			{
				"scene_tag": "modes0",
				"npc_name": { "rawtext": [ {"text":"Modes"} ] },
				"text": { "rawtext": [ {"text":"Choose your mode"} ] },
				"buttons": [
					{
						"name": { "rawtext": [ {"text":"§aAdventures"} ] },
						"commands": [
						    "/setblock 90026 1 -90009 redstone_block"
						]
					},
					{
						"name": { "rawtext": [ {"text":"§eSuper Random"} ] },
						"commands": [
						    "/setblock 90026 1 -90004 redstone_block"
						]
					}
				]
			 },
			 {
			     "scene_tag": "credits0",
				"npc_name": { "rawtext": [ {"text":"Credits"} ] },
				"text": { "rawtext": [ {"text":"Credits of the Game"} ] },
				"buttons": [
					{
						"name": { "rawtext": [ {"text":"CyefiYT"} ] },
						"commands": [
					       "/tellraw @initiator {\"rawtext\":[{\"text\":\"------===------\"}]}",
					        "/tellraw @initiator {\"rawtext\":[{\"text\":\"Creator/Command Blocks\"}]}",
							"/tellraw @initiator {\"rawtext\":[{\"text\":\"§cYou§fTube : CyefiYT\"}]}",
							"playsound note.hat @a"
						]
					},
					{
					    "name": { "rawtext": [ {"text":"Addons"} ] },
						"commands": [
					        "/tellraw @initiator {\"rawtext\":[{\"text\":\"------===------\"}]}",
					        "/tellraw @initiator {\"rawtext\":[{\"text\":\"GUI Addon\"}]}",
							"/tellraw @initiator {\"rawtext\":[{\"text\":\"§cYou§fTube : Smell of Curry\"}]}",
							"/tellraw @initiator {\"rawtext\":[{\"text\":\"------===------\"}]}",
					        "/tellraw @initiator {\"rawtext\":[{\"text\":\"Floating Text Addon\"}]}",
							"/tellraw @initiator {\"rawtext\":[{\"text\":\"Twit§bter§f : @AnduiberOficial\"}]}",
							"playsound note.hat @a"
						]
					},
					{
					    "name": { "rawtext": [ {"text":"ItsProfCreeper"} ] },
						"commands": [
						    "/tellraw @initiator {\"rawtext\":[{\"text\":\"------===------\"}]}",
						    "/tellraw @initiator {\"rawtext\":[{\"text\":\"Voices\"}]}",
							"/tellraw @initiator {\"rawtext\":[{\"text\":\"§cYou§fTube : ItsProfessorCreeper\"}]}",
							"playsound note.hat @a"
						]
					},
					{
					"name": { "rawtext": [ {"text":"Unrailed"} ] },
						"commands": [
						    "/tellraw @initiator {\"rawtext\":[{\"text\":\"------===------\"}]}",
						    "/tellraw @initiator {\"rawtext\":[{\"text\":\"Music\"}]}",
							"/tellraw @initiator {\"rawtext\":[{\"text\":\"Twit§bter§f : @felixbarbarino\"}]}",
							"/tellraw @initiator {\"rawtext\":[{\"text\":\"Twit§bter§f : @indoorastronaut\"}]}",
							"playsound note.hat @a"
						]
					},
					{
						"name": { "rawtext": [ {"text":"Back"} ] },
						"commands": [
						  "/dialogue open @s @initiator guipage0 "
						]
					}
				]
			}
		]
	}
}