{
	"format_version": "1.17.0",
	"minecraft:npc_dialogue": {
		"scenes": [
			{
				// CHARGER /////////////////////////////////////////////////////////////////////////////////////
				"scene_tag": "dialogue.ender_charger.prison.1",
				"npc_name": {
					"rawtext": [
						{ "translate": "entity.ldz:ender_charger.name" }
					]
				},
				"on_open_commands": [
					"/execute as @initiator run function dialogue/player_open_charger_window",
					"/execute as @s run function dialogue/charger_open_window"
				],
				"text": {
					"rawtext": [
						{ "translate": "dialogue.ender_charger.prison.1", "with": [ "\n" ] }
					]
				},
				"on_close_commands": [
					"/execute as @initiator run function dialogue/player_close_charger_window",
					"/execute as @s run function dialogue/charger_close_window"
				]
			},
			{
				"scene_tag": "dialogue.ender_charger.prison.2",
				"npc_name": {
					"rawtext": [
						{ "translate": "entity.ldz:ender_charger.name" }
					]
				},
				"on_open_commands": [
					"/execute as @initiator run function dialogue/player_open_charger_window",
					"/execute as @s run function dialogue/charger_open_window"
				],
				"text": {
					"rawtext": [
						{ "translate": "dialogue.ender_charger.prison.2", "with": [ "\n" ] }
					]
				},
				"buttons": [
					{
						"name": {
							"rawtext": [
								{ "translate": "dialogue.button.prison.2" }
							]
						},
						"commands": [
							"/execute as @s run function endermen/prisoners/prison_2_button_pressed",
							"/execute as @initiator run function dialogue/player_press_prison_2_button"

						]
					}								
				],
				"on_close_commands": [
					"/execute as @initiator run function dialogue/player_close_charger_window",
					"/execute as @s run function dialogue/charger_close_window"
				]
			},
			{
				"scene_tag": "dialogue.ender_charger.trade",
				"npc_name": {
					"rawtext": [
						{ "translate": "entity.ldz:ender_charger.name" }
					]
				},
				"on_open_commands": [
					"/execute as @initiator run function dialogue/player_open_charger_window",
					"/execute as @s run function dialogue/charger_open_window"
				],
				"text": {
					"rawtext": [
						{ "translate": "dialogue.ender_charger.trade", "with": [ "\n" ] }
					]
				},
				"buttons": [
					{
						"name": {
							"rawtext": [
								{ "translate": "dialogue.button.trade" }
							]
						}
					}								
				],
				"on_close_commands": [
					"/execute as @initiator run function dialogue/player_close_charger_window",
					"/execute as @s run function dialogue/charger_close_window"
				]
			},
			{
				// CHEF /////////////////////////////////////////////////////////////////////////////////////
				"scene_tag": "dialogue.ender_chef.prison.1",
				"npc_name": {
					"rawtext": [
						{ "translate": "entity.ldz:ender_chef.name" }
					]
				},
				"on_open_commands": [
					"/execute as @initiator run function dialogue/player_open_chef_window",
					"/execute as @s run function dialogue/chef_open_window"
				],
				"text": {
					"rawtext": [
						{ "translate": "dialogue.ender_chef.prison.1", "with": [ "\n" ] }
					]
				},
				"on_close_commands": [
					"/execute as @initiator run function dialogue/player_close_chef_window",
					"/execute as @s run function dialogue/chef_close_window"
				]
			},
			{
				"scene_tag": "dialogue.ender_chef.prison.2",
				"npc_name": {
					"rawtext": [
						{ "translate": "entity.ldz:ender_chef.name" }
					]
				},
				"on_open_commands": [
					"/execute as @initiator run function dialogue/player_open_chef_window",
					"/execute as @s run function dialogue/chef_open_window"
				],
				"text": {
					"rawtext": [
						{ "translate": "dialogue.ender_chef.prison.2", "with": [ "\n" ] }
					]
				},
				"buttons": [
					{
						"name": {
							"rawtext": [
								{ "translate": "dialogue.button.prison.2" }
							]
						},
						"commands": [
							"/execute as @s run function endermen/prisoners/prison_2_button_pressed",
							"/execute as @initiator run function dialogue/player_press_prison_2_button"

						]
					}								
				],
				"on_close_commands": [
					"/execute as @initiator run function dialogue/player_close_chef_window",
					"/execute as @s run function dialogue/chef_close_window"
				]
			},
			{
				"scene_tag": "dialogue.ender_chef.trade",
				"npc_name": {
					"rawtext": [
						{ "translate": "entity.ldz:ender_chef.name" }
					]
				},
				"on_open_commands": [
					"/execute as @initiator run function dialogue/player_open_chef_window",
					"/execute as @s run function dialogue/chef_open_window"
				],
				"text": {
					"rawtext": [
						{ "translate": "dialogue.ender_chef.trade", "with": [ "\n" ] }
					]
				},
				"buttons": [
					{
						"name": {
							"rawtext": [
								{ "translate": "dialogue.button.trade" }
							]
						}
					}								
				],
				"on_close_commands": [
					"/execute as @initiator run function dialogue/player_close_chef_window",
					"/execute as @s run function dialogue/chef_close_window"
				]
			},
			{
				// GARDENER /////////////////////////////////////////////////////////////////////////////////////
				"scene_tag": "dialogue.ender_gardener.prison.1",
				"npc_name": {
					"rawtext": [
						{ "translate": "entity.ldz:ender_gardener.name" }
					]
				},
				"on_open_commands": [
					"/execute as @initiator run function dialogue/player_open_gardener_window",
					"/execute as @s run function dialogue/gardener_open_window"
				],
				"text": {
					"rawtext": [
						{ "translate": "dialogue.ender_gardener.prison.1", "with": [ "\n" ] }
					]
				},
				"on_close_commands": [
					"/execute as @initiator run function dialogue/player_close_gardener_window",
					"/execute as @s run function dialogue/gardener_close_window"
				]
			},
			{
				"scene_tag": "dialogue.ender_gardener.prison.2",
				"npc_name": {
					"rawtext": [
						{ "translate": "entity.ldz:ender_gardener.name" }
					]
				},
				"on_open_commands": [
					"/execute as @initiator run function dialogue/player_open_gardener_window",
					"/execute as @s run function dialogue/gardener_open_window"
				],
				"text": {
					"rawtext": [
						{ "translate": "dialogue.ender_gardener.prison.2", "with": [ "\n" ] }
					]
				},
				"buttons": [
					{
						"name": {
							"rawtext": [
								{ "translate": "dialogue.button.prison.2" }
							]
						},
						"commands": [
							"/execute as @s run function endermen/prisoners/prison_2_button_pressed",
							"/execute as @initiator run function dialogue/player_press_prison_2_button"
						]
					}								
				],
				"on_close_commands": [
					"/execute as @initiator run function dialogue/player_close_gardener_window",
					"/execute as @s run function dialogue/gardener_close_window"
				]
			},
			{
				"scene_tag": "dialogue.ender_gardener.prison.3",
				"npc_name": {
					"rawtext": [
						{ "translate": "entity.ldz:ender_gardener.name" }
					]
				},
				"on_open_commands": [
					"/execute as @initiator run function dialogue/player_open_gardener_window",
					"/execute as @s run function dialogue/gardener_open_window"
				],
				"text": {
					"rawtext": [
						{ "translate": "dialogue.ender_gardener.trade", "with": [ "\n" ] }
					]
				},
				"buttons": [
					{
						"name": {
							"rawtext": [
								{ "translate": "dialogue.button.trade" }
							]
						}
					}								
				],
				"on_close_commands": [
					"/execute as @initiator run function dialogue/player_close_gardener_window",
					"/execute as @s run function dialogue/gardener_close_window"
				]
			},
			{
				// HYDRO /////////////////////////////////////////////////////////////////////////////////////
				"scene_tag": "dialogue.ender_hydro.prison.1",
				"npc_name": {
					"rawtext": [
						{ "translate": "entity.ldz:ender_hydro.name" }
					]
				},
				"on_open_commands": [
					"/execute as @initiator run function dialogue/player_open_hydro_window",
					"/execute as @s run function dialogue/hydro_open_window"
				],
				"text": {
					"rawtext": [
						{ "translate": "dialogue.ender_hydro.prison.1", "with": [ "\n" ] }
					]
				},
				"on_close_commands": [
					"/execute as @initiator run function dialogue/player_close_hydro_window",
					"/execute as @s run function dialogue/hydro_close_window"
				]
			},
			{
				"scene_tag": "dialogue.ender_hydro.prison.2",
				"npc_name": {
					"rawtext": [
						{ "translate": "entity.ldz:ender_hydro.name" }
					]
				},
				"on_open_commands": [
					"/execute as @initiator run function dialogue/player_open_hydro_window",
					"/execute as @s run function dialogue/hydro_open_window"
				],
				"text": {
					"rawtext": [
						{ "translate": "dialogue.ender_hydro.prison.2", "with": [ "\n" ] }
					]
				},
				"buttons": [
					{
						"name": {
							"rawtext": [
								{ "translate": "dialogue.button.prison.2" }
							]
						},
						"commands": [
							"/execute as @s run function endermen/prisoners/prison_2_button_pressed",
							"/execute as @initiator run function dialogue/player_press_prison_2_button"

						]
					}								
				],
				"on_close_commands": [
					"/execute as @initiator run function dialogue/player_close_hydro_window",
					"/execute as @s run function dialogue/hydro_close_window"
				]
			},
			{
				"scene_tag": "dialogue.ender_hydro.trade",
				"npc_name": {
					"rawtext": [
						{ "translate": "entity.ldz:ender_hydro.name" }
					]
				},
				"on_open_commands": [
					"/execute as @initiator run function dialogue/player_open_hydro_window",
					"/execute as @s run function dialogue/hydro_open_window"
				],
				"text": {
					"rawtext": [
						{ "translate": "dialogue.ender_hydro.trade", "with": [ "\n" ] }
					]
				},
				"buttons": [
					{
						"name": {
							"rawtext": [
								{ "translate": "dialogue.button.trade" }
							]
						}
					}								
				],
				"on_close_commands": [
					"/execute as @initiator run function dialogue/player_close_hydro_window",
					"/execute as @s run function dialogue/hydro_close_window"
				]
			}
		]
	}
}