//This JSON was modified by AgentMindStorm (@agentms_), Lukas (@LukasPAH), and Rainvay_ZCYF (@ZouChenyunfei). Please do not use this document without permission.
{
//Boss Bar
  "full_boss_bar_base": {
    "type": "image",
    "size": [ 182, 5 ],
    "texture": "textures/ui/experience_bar_full_white",
    "clip_direction": "left",
    "clip_pixelperfect": false,
    "bindings": [
      {
        "binding_name": "#progress_percentage",
        "binding_name_override": "#clip_ratio",
        "binding_type": "collection",
        "binding_collection_name": "$progress_bar_collection"
      }
    ]
  },
  "empty_boss_bar_base": {
    "type": "image",
    "size": [ 182, 5 ],
    "texture": "textures/ui/experiencebarempty"
  },
  "pink_bar_empty@hud.empty_boss_bar_base": {
    "color": [ 1.0, 0.0, 0.7804 ]
  },
  "pink_bar_full@hud.full_boss_bar_base": {
    "color": [ 1.0, 0.0, 0.7804 ]
  },
  "boss_bar": {
    "type": "panel",
    "anchor_from": "top_middle",
    "anchor_to": "top_middle",
    "offset": [ 0, 20 ],
    "size": [ 182, 5 ],
    "controls": [
      {
        "empty_boss_bar@hud.pink_bar_empty": {
          "layer": 1
        }
      },
      {
        "full_boss_bar@hud.pink_bar_full": {
          "layer": 2
        }
      }
    ]
  },
  "boss_health_panel": {
    "controls": [
      {
        "boss_name@boss_name_panel": {}
      },
      {
        "boss_bar@hud.boss_bar": {
          "offset": [ 0, 10 ]
        }
      }
    ]
  },
//Miscellaneous
  "anim_item_name_text_alpha_stay": {
    "duration": 1.5
  },
  "anim_item_name_text_alpha_out": {
    "easing": "linear",
    "duration": 16
  },
  "chat_grid_item/chat_background/chat_text": {
    "enable_profanity_filter": false
  },
  "exp_progress_bar_and_hotbar/resizing_xp_bar_with_hotbar": {
    "controls": [
      {
        "empty_progress_bar@empty_progress_bar": {
          "size": [ "100%c", 5 ],
          "layer": 1,
          "controls": [
            {
              "full_progress_bar@full_progress_bar": {
                "size": [ "100%c + 10px", 5 ],
                "max_size": [ 182, 5 ],
                "layer": 2,
                "controls": [
                  {
                    "progress_bar_nub@progress_bar_nub": {
                      "size": [ "100%c - 10px", 5 ],
                      "max_size": [ 172, 5 ],
                      "layer": 3,
                      "controls": [
                        {
                          "jump_bar_container": {
                            "type": "panel",
                            "size": [ "100%c", 5 ],
                            "layer": 4,
                            "controls": [
//                            Although this background works correctly, it should not be visible while riding boats, minecarts, or llamas, so it is disabled.
//                            {
//                              "horse_jump_background": {
//                                "type": "image",
//                                "texture": "textures/ui/horse_jump_empty",
//                                "size": [ 182, 5 ],
//                                "layer": 4,
//                                "bindings": [
//                                  {
//                                    "binding_name": "#is_riding",
//                                    "binding_name_override": "#visible"
//                                  }
//                                ]
//                              }
//                            },
                              {
                                "horse_jump_rend@horse_jump_renderer": {
                                  "size": [ "100%c", 5 ],
                                  "max_size": [ 182, 5 ],
                                  "layer": 5,
                                  "offset": [ 0, 0.5 ],
                                  "controls": [
                                    {
                                      "dash_rend@dash_renderer": {
                                        "size": [ "100%c", 5 ],
                                        "max_size": [ 182, 5 ],
                                        "layer": 5,
                                        "controls": [
                                          {
                                            "hotbar@hotbar_chooser": {
                                              "offset": [ 4, 16 ]
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  ]
                                }
                              }
                            ]
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "progress_text_panel": {
          "type": "panel",
          "size": [ 0, 0 ],
          "offset": [ 0, -2 ],
          "layer": 11,
          "controls": [
            {
              "progress_text_label@progress_text_label": {
                "offset": [ 0, 0 ],
                "layer": 11
              }
            },
            {
              "progress_text_label_left_border@progress_text_label_border": {
                "offset": [ -0.5, 0 ],
                "layer": 10
              }
            },
            {
              "progress_text_label_right_border@progress_text_label_border": {
                "offset": [ 0.5, 0 ],
                "layer": 10
              }
            },
            {
              "progress_text_label_top_border@progress_text_label_border": {
                "offset": [ 0, -0.5 ],
                "layer": 10
              }
            },
            {
              "progress_text_label_bottom_border@progress_text_label_border": {
                "offset": [ 0, 0.5 ],
                "layer": 10
              }
            },
            {
              "progress_text_label_top_left_border@progress_text_label_border": {
                "offset": [ -0.5, -0.5 ],
                "layer": 10
              }
            },
            {
              "progress_text_label_top_right_border@progress_text_label_border": {
                "offset": [ 0.5, -0.5 ],
                "layer": 10
              }
            },
            {
              "progress_text_label_bottom_left_border@progress_text_label_border": {
                "offset": [ -0.5, 0.5 ],
                "layer": 10
              }
            },
            {
              "progress_text_label_bottom_right_border@progress_text_label_border": {
                "offset": [ 0.5, 0.5 ],
                "layer": 10
              }
            }
          ],
          "bindings": [
//          Although this binding correctly hides the XP level on horseback, it should not still visible while riding boats, minecarts, and llamas, so it is disabled.
//          {
//            "binding_name": "#is_not_riding",
//            "binding_name_override": "#visible"
//          }
          ]
        }
      }
    ]
  },
  "exp_progress_bar_and_hotbar/resizing_hotbar_no_xp_bar": {
    "controls": [
      {
        "jump_bar_container": {
          "type": "panel",
          "size": [ "100%c", 5 ],
          "layer": 4,
          "bindings": [
            {
              "binding_name": "#is_creative_mode",
              "binding_name_override": "#visible"
            }
          ],
          "controls": [
            {
              "horse_jump_rend@horse_jump_renderer": {
                "size": [ "100%c", 5 ],
                "max_size": [ 182, 5 ],
                "layer": 5,
                "offset": [ 0, 0.5 ],
                "controls": [
                  {
                    "dash_rend@dash_renderer": {
                      "size": [ "100%c", 5 ],
                      "max_size": [ 182, 5 ],
                      "layer": 5,
                      "controls": [
                        {
                          "hotbar@hotbar_chooser": {
                            "offset": [ 4, 16 ]
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  },
  "exp_progress_bar_and_hotbar/item_text_factory": {
    "control_ids": {
      "item_text": "@hud.item_name_text_spacer",
      "jukebox_text": "@hud.jukebox_text_spacer"
    }
  },
  "exp_progress_bar_and_hotbar_pocket/dash_rend": {
    "max_size": [ 182, 5 ]
  },
  "exp_progress_bar_and_hotbar_pocket/horse_jump_rend": {
    "max_size": [ 182, 5 ]
  },
  "exp_progress_bar_and_hotbar_pocket/resizing_xp_bar_with_hotbar": {
    "controls": [
      {
        "empty_progress_bar@empty_progress_bar": {
          "size": [ "100%", "100%" ],
          "layer": 1,
          "controls": [
            {
              "full_progress_bar@full_progress_bar": {
                "size": [ "100%", "100%" ],
                "layer": 2,
                "controls": []
              }
            }
          ]
        }
      },
      {
        "progress_text_panel": {
          "type": "panel",
          "size": [ 0, 0 ],
          "offset": [ 0, -2 ],
          "layer": 11,
          "controls": [
            {
              "progress_text_label@progress_text_label": {
                "offset": [ 0, 0 ],
                "layer": 11
              }
            },
            {
              "progress_text_label_left_border@progress_text_label_border": {
                "offset": [ -0.5, 0 ],
                "layer": 10
              }
            },
            {
              "progress_text_label_right_border@progress_text_label_border": {
                "offset": [ 0.5, 0 ],
                "layer": 10
              }
            },
            {
              "progress_text_label_top_border@progress_text_label_border": {
                "offset": [ 0, -0.5 ],
                "layer": 10
              }
            },
            {
              "progress_text_label_bottom_border@progress_text_label_border": {
                "offset": [ 0, 0.5 ],
                "layer": 10
              }
            },
            {
              "progress_text_label_top_left_border@progress_text_label_border": {
                "offset": [ -0.5, -0.5 ],
                "layer": 10
              }
            },
            {
              "progress_text_label_top_right_border@progress_text_label_border": {
                "offset": [ 0.5, -0.5 ],
                "layer": 10
              }
            },
            {
              "progress_text_label_bottom_left_border@progress_text_label_border": {
                "offset": [ -0.5, 0.5 ],
                "layer": 10
              }
            },
            {
              "progress_text_label_bottom_right_border@progress_text_label_border": {
                "offset": [ 0.5, 0.5 ],
                "layer": 10
              }
            }
          ],
          "bindings": [
//          Although this binding correctly hides the XP level on horseback, it should not still visible while riding boats, minecarts, and llamas, so it is disabled.
//          {
//            "binding_name": "#is_not_riding",
//            "binding_name_override": "#visible"
//          }
          ]
        }
      }
    ]
  },
  "exp_progress_bar_and_hotbar_pocket/item_text/item_text_factory": {
    "control_ids": {
      "item_text": "@hud.item_name_text_spacer",
      "jukebox_text": "@hud.jukebox_text"
    }
  },
  "gui_hotbar_grid_item/hotbar_parent/item_count": {
    "layer": 11,
    "bindings": [
      {
        "binding_name": "#inventory_stack_count",
        "binding_type": "collection",
        "binding_collection_name": "$stack_count_collection_name"
      }
    ]
  },
  "gui_hotbar_grid_item/hotbar_parent/item_icon": {
    "layer": 9
  },
  "gui_hotbar_grid_item/hotbar_parent/item_dura": {
    "layer": 10
  },
  "hotbar_left_padding": {
    "type": "panel",
    "size": [ 20, 22 ],
    "ignored": "$pocket_screen", //Centering hotbar breaks ellipses inventory button with Pocket UI, for some reason
    "bindings": [
      {
        "binding_name": "#hotbar_elipses_right_visible", //The padding is here to balance the opposite ellipses panel
        "binding_name_override": "#visible",
        "binding_type": "global"
      }
    ]
  },
  "hotbar_right_padding": {
    "type": "panel",
    "size": [ 20, 22 ],
    "ignored": "$pocket_screen",
    "bindings": [
      {
        "binding_name": "#hotbar_elipses_left_visible",
        "binding_name_override": "#visible",
        "binding_type": "global"
      }
    ]
  },
  "hotbar_panel": { //Replaced controls array instead of using insert modifications to keep both Aspects packs usable at once
    "controls": [
      { "hotbar_left_padding@hud.hotbar_left_padding": {} },
      { "hotbar_start_cap@hud.hotbar_start_cap": {} },
      { "hotbar_elipses_panel_left@hud.hotbar_elipses_panel_left_content": {} },
      { "hotbar_grid@hud.hotbar_grid": {} },
      { "hotbar_elipses_panel_right@hud.hotbar_elipses_panel_right_content": {} },
      { "hotbar_end_cap@hud.hotbar_end_cap": {} },
      { "hotbar_right_padding@hud.hotbar_right_padding": {} }
    ]
  },
  "hotbar_slot_image": {
    "alpha": 1
  },
  "hud_actionbar_text": {
    "texture": "textures/ui/empty"
  },
  "hud_actionbar_text/actionbar_message": {
    "shadow": true
  },
  "hud_tip_text": {
    "texture": "textures/ui/empty"
  },
  "hud_title_text/title_frame/title": {
    "shadow": true
  },
  "hud_title_text/title_frame/title_background": {
    "texture": "textures/ui/empty"
  },
  "hud_title_text/subtitle_frame/subtitle": {
    "shadow": true
  },
  "hud_title_text/subtitle_frame/subtitle_background": {
    "texture": "textures/ui/empty"
  },
  "item_durability": {},
  "item_name_text": {
    "alpha": 0,
    "$is_jukebox_text|default": false,
    "controls": [
      {
        "item_name_grid@hud.item_name_grid": {
          "offset": [ -8, 239 ]
        }
      }
    ]
  },
  "item_name_text_base": {
    "type": "label",
    "text": "#text",
    "shadow": false,
    "color": "$text_color",
    "anims": [
      "@hud.anim_item_name_text_alpha_stay"
    ],
    "layer": 50,
    "anchor_from": "bottom_middle",
    "anchor_to": "bottom_middle",
    "text_alignment": "center",
    "bindings": [
      {
        "binding_name": "$text_binding",
        "binding_name_override": "#text"
      },
      {
        "binding_name": "#slot_selected",
        "binding_type": "collection",
        "binding_collection_name": "$hotbar_collection_name"
      },
      {
        "binding_name": "#item_id_aux",
        "binding_type": "collection",
        "binding_collection_name": "$item_collection_name"
      },
      {
        "binding_type": "view",
        "source_property_name": "((not (#item_id_aux = -1)) and (#slot_selected))",
        "target_property_name": "#visible",
        "ignored": "$is_jukebox_text"
      }
    ]
  },
  "item_name_grid@hud.hotbar_grid": {
    "grid_item_template": "hud.item_name_panel",
    "size": [ 0, 0 ]
  },
  "item_name_panel": {
    "type": "panel",
    "layer": 1,
    "size": [ 20, 22 ],
    "anchor_to": "top_left",
    "anchor_from": "top_left",
    "controls": [
      {
        "hotbar_parent": {
          "type": "panel",
          "size": [ 18, 18 ],
          "controls": [
            {
              "item_icon@hotbar_hud_item_icon": {
                "layer": 3,
                "size": [ 16, 16 ],
                "controls": [
                  {
                    "item_name_container": {
                      "type": "panel",
                      "offset": [ 0, -250 ],
                      "size": [ "100%c + 4px", "100%c" ],
                      "clips_children": true,
                      "anchor_from": "bottom_middle",
                      "anchor_to": "bottom_middle",
                      "controls": [
                        {
                          "item_text_label@hud.item_name_text_base": {}
                        },
                        {
                          "item_text_shadow@hud.item_name_text_base": {
                            "shadow": false,
                            "offset": [ 0.5, 0.5 ],
                            "color": "black",
                            "layer": 49,
                            "bindings": [
                              {
                                "binding_name": "$text_binding"
                              },
                              {
                                "binding_type": "view",
                                "source_property_name": "('§r' + $text_binding - '§a' - '§b' - '§c' - '§d' - '§e' - '§f' - '§1' - '§2' - '§3' - '§4' - '§5' - '§6' - '§7' - '§8' - '§9')",
                                "target_property_name": "#text"
                              },
                              {
                                "binding_name": "#slot_selected",
                                "binding_type": "collection",
                                "binding_collection_name": "$hotbar_collection_name"
                              },
                              {
                                "binding_name": "#item_id_aux",
                                "binding_type": "collection",
                                "binding_collection_name": "$item_collection_name"
                              },
                              {
                                "binding_type": "view",
                                "source_property_name": "((not (#item_id_aux = -1)) and (#slot_selected))",
                                "target_property_name": "#visible",
                                "ignored": "$is_jukebox_text"
                              }
                            ]
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  },
  "item_name_text_spacer": { //This extra layer is necessary due to the updated HUD text height system.
    "type": "stack_panel",
    "size": [ 0, 76 ],
    "offset": [ 0, -5.5 ],
    "controls": [
      {
        "no_interact_padding@common.empty_panel": {
          "size": [ "100%sm", "-5.5% + 10px" ],
          "bindings": [
            {
              "binding_name": "(not #interact_visible)",
              "binding_name_override": "#visible",
              "binding_condition": "always"
            }
          ]
        }
      },
      {
        "creative_padding@common.empty_panel": {
          "size": [ "100%sm", "-5.5% + 22px" ],
          "bindings": [
            {
              "binding_name": "#is_creative_mode",
              "binding_name_override": "#visible"
            }
          ]
        }
      },
//    {
//      "armor_buffer@common.empty_panel": { In Console Edition, this buffer is only activated by absorption hearts and armor combined. Bedrock Edition does not have a way to detect absorption hearts, and since absorption hearts are pretty rare, I won't worry about them for now.
//        "size": [ "100%sm", "-5.5% - 4px" ],
//        "bindings": [
//          {
//            "binding_name": "#is_in_classic_ui_mode_with_visible_armor",
//            "binding_name_override": "#visible"
//          }
//        ]
//      }
//    },
      {
        "item_name_text@hud.item_name_text": {}
      }
    ]
  },
  "jukebox_text_spacer": {
    "type": "stack_panel",
    "size": [ 0, 76 ],
    "offset": [ 0, -19 ],
    "controls": [
      {
        "no_interact_padding@common.empty_panel": {
          "size": [ "100%sm", "-5.5% + 10px" ],
          "bindings": [
            {
              "binding_name": "(not #interact_visible)",
              "binding_name_override": "#visible",
              "binding_condition": "always"
            }
          ]
        }
      },
      {
        "creative_padding@common.empty_panel": {
          "size": [ "100%sm", "-5.5% + 22px" ],
          "bindings": [
            {
              "binding_name": "#is_creative_mode",
              "binding_name_override": "#visible"
            }
          ]
        }
      },
//    {
//      "armor_buffer@common.empty_panel": { //In Console Edition, this buffer is only activated by absorption hearts and armor combined. Bedrock Edition does not have a way to detect absorption hearts, and since absorption hearts are pretty rare, I won't worry about them for now.
//        "size": [ "100%sm", "-5.5% - 4px" ],
//        "bindings": [
//          {
//            "binding_name": "#is_in_classic_ui_mode_with_visible_armor",
//            "binding_name_override": "#visible"
//          }
//        ]
//      }
//    },
      {
        "jukebox_text@hud.item_name_text": {
          "$is_jukebox_text": true,
          "$text_color": "$jukebox_text_color",
          "$text_binding": "#jukebox_text"
        }
      }
    ]
  },
  "player_position": {
    "texture": "textures/ui/empty"
  },
  "progress_text_label": {
    "shadow": false
  },
  "progress_text_label_border@progress_text_label": {
    "color": "$experience_text_border_color"
  },
  "root_panel/centered_gui_elements_at_bottom_middle": {
    "offset": "$hotbar_offset",
    "$hotbar_offset|default": [ 0, "-5.5%" ],
    "variables": [
      {
        "requires": "$touch",
        "$hotbar_offset": [ 0, 0 ]
      }
    ]
  },
  "root_panel/hud_actionbar_text_area": {
    "offset": "$actionbar_offset",
    "$actionbar_offset|default": [ 0, "-5.5%" ],
    "variables": [
      {
        "requires": "$touch",
        "$actionbar_offset": [ 0, 0 ]
      }
    ]
  },
  "tooltip_helper_icon_description": {
    "controls": []
  },
  "vignette_renderer": {
    "ignored": true
  }
}