> For the complete documentation index, see [llms.txt](https://thatgravyboat.gitbook.io/iron-chests-restocked-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://thatgravyboat.gitbook.io/iron-chests-restocked-wiki/chests/chest-type.md).

# Chest Type

## Data Object

### Length / <mark style="color:red;">`length`</mark> / Integer

Length refers to the length of a row in a chest GUI and as such should be set respectfully to allow for all screen GUI scales to work so when setting this makes sure that your value will work on all GUI scales including the horrible scale of auto.

### Rows / <mark style="color:red;">`rows`</mark> / Integer

Rows refers to the amount of rows there are in a chest GUI and again same as [length](#length-length) should respect the users GUI scale.

### Inventory Offset / <mark style="color:red;">`inventoryOffset`</mark> / Integer

Inventory Offset refers to the X offset from the edge of the GUI where the players inventory slots should start to generate.&#x20;

### Menu Offset / <mark style="color:red;">`menuOffset`</mark> / Integer

Menu Offset refers to the X offset from the edge of the GUI where the chests inventory slots should start to generate.

### Width / <mark style="color:red;">`width`</mark> / Integer

Width refers to the width of your GUI texture and like length and rows should respect the users GUI scale and not be too big. Also remember that mods such as [JEI](https://www.curseforge.com/minecraft/mc-mods/jei) use this to determine if they should display their stuff so if you make it too big [JEI](https://www.curseforge.com/minecraft/mc-mods/jei) will not render.

### Height / <mark style="color:red;">`height`</mark> / Integer

Height refers to the height of your GUI texture and is less important as not many mods use this to determine stuff but should also be set to a good amount as some mods may use this to display stuff on the edge of the GUI.

### Properties / <mark style="color:red;">`properties`</mark> / [Property](/iron-chests-restocked-wiki/chests/property.md)

Properties refers to the block properties the chest will have which can be things such as the sounds it has the texture it will have on a map, and other things such as if it requires the correct tool to drop its loot table and others. See [Property](/iron-chests-restocked-wiki/chests/property.md) page for more info.

### Transparent / <mark style="color:red;">`transparent`</mark> / Boolean

Transparent refers to if the block should be given the transparent render type and should take into account transparency in its chest texture, this is used in the default Crystal Chest.

***Note:** This is defaulted to false.*

### Texture / <mark style="color:red;">`texture`</mark> / String

Texture refers to the GUI texture this is just the file name and will always need to be located in the path of <mark style="color:blue;">`assets/ironchests/textures/gui/chests/${texture}.png`</mark> . By default we do not provide away of loading such textures you will need a mod such as [KubeJS](https://www.curseforge.com/minecraft/mc-mods/kubejs) to load the textures for you if you do not want to use a resource pack.&#x20;

***Note:** This is defaulted to the chest name(name of file)*

### Predicate / <mark style="color:red;">`predicate`</mark> / [ItemPredicate](/iron-chests-restocked-wiki/chests/item-predicate.md)

Predicate refers to the predicate or condition that it will check to see if an item can go in said chest. This is used by the dirt chest in the default collection. See [ItemPredicate](/iron-chests-restocked-wiki/chests/item-predicate.md) for more info.

***Note:** This is defaulted to accept any item.*

### Render Items / <mark style="color:red;">`renderItems`</mark> / Boolean

Render Items refers to if the chest should render items this will need to be paired with transparent and also has the condition that there needs to be at least 18 item slots in the chest for this to be on a chest.

***Note:** This is defaulted to fals&#x65;**.***

## Examples

{% tabs %}
{% tab title="Example" %}
This example shows an emerald chest which has the same settings as a diamond chest.

{% code title="emerald.json" %}

```json
{
  "length": 12,
  "rows": 6,
  "inventoryOffset": 35,
  "menuOffset": 8,
  "width": 232,
  "height": 222,
  "texture": "diamond",
  "properties": {
    "type": "builder",
    "material": "metal",
    "requiresCorrectToolForDrops": true,
    "explosionResistance": 6.0,
    "destroyTime": 5.0,
    "sound": "metal"
  }
}
```

{% endcode %}
{% endtab %}
{% endtabs %}
