
{
  "namespace": "chest",
  "chest_label": {
    "type": "label",
    "offset": [ 7, -1 ],
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "text": "$container_title",
    "size": [ "90%", "default" ],
    "color": "$title_text_color",
    "layer": 2
  },
  "small_chest_grid": {
    "type": "grid",
    "size": "$size",
    "anchor_from": "$anchor",
    "anchor_to": "$anchor",
    "grid_dimensions": "$dsize",
    "grid_item_template": "chest.chest_grid_item",
    "collection_name": "container_items"
  },

  "small_chest_panel_top_half": {
      "$fonts | default": "default",
      "type": "collection_panel",
       "size": [ "100%", "50%" ],
       "offset": [ 0, 12 ],
       "anchor_to": "top_left",
       "anchor_from": "top_left",
       "controls": [
           { "chest_label": {
    "type": "label",
    "offset": [ 7, -1 ],
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "font_type": "$fonts",
    "text": "$container_title",
    "size": [ "90%", "default" ],
    "color": "$title_text_color",
    "layer": 2
} },
           {
              "small_chest_grid@chest.small_chest_grid": {
              "offset": "$offs"
            }
          }
        ]
  },

  "small_chest_panel": {
    "type": "panel",
    "$fonts | default": "default",
    "controls": [
      { "container_gamepad_helpers@common.container_gamepad_helpers": {} },
      { "selected_item_details_factory@common.selected_item_details_factory": {} },
      { "item_lock_notification_factory@common.item_lock_notification_factory": {} },
      {
        "root_panel@common.root_panel": {
          "layer": 1,
          "controls": [
            { "common_panel@common.common_panel": {} },
            {
              "chest_panel": {
                "type": "panel",
                "layer": 5,
                "controls": [
                  { "small_chest_panel_top_half@chest.small_chest_panel_top_half": {
                    }
                  },
                  { "inventory_panel_bottom_half_with_label@common.inventory_panel_bottom_half_with_label": {} },
                  { "hotbar_grid@common.hotbar_grid_template": {} },
                  { "inventory_take_progress_icon_button@common.inventory_take_progress_icon_button": {} },
                  { "flying_item_renderer@common.flying_item_renderer": { "layer": 15 } }
                ]
              }
            },
            { "inventory_selected_icon_button@common.inventory_selected_icon_button": {} },
            { "gamepad_cursor@common.gamepad_cursor_button": {} }
          ]
        }
      }
    ],
    "variables": [
      {
        "requires": "(not (($nama = 'Fridge') or ($nama = 'Freezer') or ($nama = 'Cabinet') or ($nama = 'Sink')))",
        "$fonts": "default"
      },
      {
        "requires": "($nama = 'Fridge')",
        "$dialog_background": "container.fridge_background",
        "$fonts": "MinecraftTen"
      },
      {
        "requires": "($nama = 'Freezer')",
        "$dialog_background": "container.freezer_background",
        "$title_text_color": [ 1, 1, 1 ],
        "$dsize": [ 5, 3 ],
        "$size": [ 90, 54 ],
        "$offs": [ 0, -3 ],
        "$fonts": "MinecraftTen",
        "$anchor": "center",
        "$background_images": "container.freezer_image_panel"
      },
      {
        "requires": "($nama = 'Cabinet')",
        "$dialog_background": "container.coklat_background",
        "$title_text_color": [ 0, 0, 0 ],
        "$dsize": [ 4, 3 ],
        "$size": [ 75, 54 ],
        "$offs": [ 0, -3 ],
        "$fonts": "MinecraftTen",
        "$anchor": "center",
        "$background_images": "container.coklat_image_panel"
      },
      {
        "requires": "($nama = 'Sink')",
        "$dialog_background": "container.coklat_background",
        "$title_text_color": [ 0, 0, 0 ],
        "$dsize": [ 3, 3 ],
        "$size": [ 54, 54 ],
        "$offs": [ 0, -3 ],
        "$fonts": "MinecraftTen",
        "$anchor": "center",
        "$background_images": "container.coklat_image_panel"
      }
    ]
  },
    "small_chest_screen@common.inventory_screen_common": {
    "$nama": "$container_title",
    "$dsize|default": [ 9, 3 ],
    "$offs|default": [ 7, 9 ],
    "$size|default": [ 162, 54 ],
    "$anchor|default": "top_left",
    "$fonts | default": "default",
    "$close_on_player_hurt|default": true,
    "$use_custom_pocket_toast|default": false,
    "$background_images|default": "common.cell_image_panel",
    "close_on_player_hurt": "$close_on_player_hurt",
    "use_custom_pocket_toast": "$use_custom_pocket_toast",
    "variables": [
      {
        "requires": "$desktop_screen",
        "$screen_content": "chest.small_chest_panel",
        "$screen_bg_content": "common.screen_background",
        "$screen_background_alpha": 0.4
      },
      {
        "requires": "$pocket_screen",
        "$use_custom_pocket_toast": true,
        "$screen_content": "pocket_containers.small_chest_panel"
      }
    ]
  }
}