{
  "namespace": "debug_custom",
	"text_template": {
		"type": "label",
		"shadow": true,
		"text": "$text"
	},
	"position": {
		"type": "stack_panel",
		"layer": 200,
		"size": [
			"100%cm",
			"100%c"
		],
		"anchor_to": "top_left",
		"anchor_from": "top_left",
		"offset": [
			1,
			80
		],
		"controls": [
			{
				"padding": {
					"type": "panel",
					"size": [
						1,
						0
					],
					"bindings": [
						{
							"binding_name": "#paper_doll_visible",
							"binding_name_override": "#visible"
						}
					]
				}
			},
			{
				"label": {
					"type": "label",
					"anchor_to": "top_left",
					"anchor_from": "top_left",
					"enable_profanity_filter": false,
					"shadow": true,
					"size": [
						"default",
						10
					],
					"text": "#player_position_text",
					"bindings": [
						{
							"binding_name": "#player_position_text",
							"binding_condition": "always"
						}
					]
				}
			}
		]
	},
	"gamemode": {
		"type": "panel",
		"anchor_to": "top_left",
		"anchor_from": "top_left",
		"offset": [
			1,
			10
		],
		"size": [
			"100%cm",
			"100%cm"
		],
		"controls": [
			{
				"creative_mode@text_template": {
					"$text": "Gamemode: Creative",
					"bindings": [
						{
							"binding_name": "#is_creative_mode",
							"binding_name_override": "#visible"
						}
					]
				}
			},
			{
				"survival_mode@text_template": {
					"$text": "Gamemode: Survival",
					"bindings": [
						{
							"binding_name": "#is_not_creative_mode",
							"binding_name_override": "#visible"
						}
					]
				}
			}
		]
	},
	"minecraft_version": {
		"type": "panel",
		"anchor_to": "top_left",
		"anchor_from": "top_left",
		"offset": [
			1,
			0
		],
		"size": [
			"100%cm",
			"100%cm"
		],
		"controls": [
			{
				"minecraft_version_release_default@text_template": {
					"ignored": "($pre_release or (not $minecraft_game_version = ''))",
					"$text": "('Minecraft ' + '(' + $release + ')')",
					"$release|default": "minecraft/vanilla/release"
				}
			},
			{
				"minecraft_version_release_custom@text_template": {
					"ignored": "($pre_release or ($minecraft_game_version = ''))",
					"$text": "('Minecraft ' + $minecraft_game_version + ' (' + $minecraft_game_version + '/vanilla/release' + ')')"
				}
			},
			{
				"minecraft_version_beta_default@text_template": {
					"ignored": "(not $pre_release or (not $minecraft_game_version = ''))",
					"$text": "('Minecraft ' + '(' + $release + ')')",
					"$release|default": "minecraft/vanilla/beta"
				}
			},
			{
				"minecraft_version_beta_custom@text_template": {
					"ignored": "(not $pre_release or ($minecraft_game_version = ''))",
					"$text": "('Minecraft ' + $minecraft_game_version + ' (' + $minecraft_game_version + '/vanilla/beta' + ')')"
				}
			}
		]
	},
  "input": {
    "type": "panel",
		"size": [
			"100%cm",
			"100%cm"
		],
		"offset": [
			1,
			30
		],
    "controls": [
      {
        "gamepad_label@hud.text_template": {
          "$text": "Input: Controller",
          "bindings": [
            {
              "binding_name": "#is_using_gamepad",
              "binding_name_override": "#visible"
            }
          ]
        }
      },
      {
        "touch_label@hud.text_template": {
          "$text": "Input: Touch",
          "bindings": [
            {
              "binding_name": "#inventory_touch_button",
              "binding_name_override": "#visible"
            }
          ]
        }
      },
      {
        "keyboard_label@hud.text_template": {
          "$text": "Input: Keyboard and Mouse",
          "bindings": [
            {
              "binding_name": "#inventory_touch_button"
            },
            {
              "binding_name": "#is_using_gamepad"
            },
            {
              "binding_type": "view",
              "source_property_name": "(not ((#inventory_touch_button) or (#is_using_gamepad)))",
              "target_property_name": "#visible"
            }
          ]
        }
      }
    ]
  },
	"custom_content_debug": {
		"type": "panel",
		"controls": [
			{
				"position@position": {
				}
			},
			{
				"debug_panel@debug_panel": {
				}
			},
			{
				"touch_button@touch_button": {
				}
			},
			{
				"console_button@console_button": {
				}
			}
		]
	},
	"debug_panel": {
		"type": "panel",
		"layer": 200,
		"controls": [
			{
				"minecraft_version@minecraft_version": {
				}
			},
			{
				"gamemode@gamemode": {
				}
			},
			{
				"input@input": {
				}
			}
		],
		"bindings": [
			{
				"binding_name": "#paper_doll_visible",
				"binding_name_override": "#visible"
			}
		]
	}
}