Chest Type

Data Object

Length / length / 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 / rows / Integer

Rows refers to the amount of rows there are in a chest GUI and again same as length should respect the users GUI scale.

Inventory Offset / inventoryOffset / Integer

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

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

Width / width / 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 use this to determine if they should display their stuff so if you make it too big JEI will not render.

Height / height / 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 / properties / Property

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 page for more info.

Transparent / transparent / 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 / texture / String

Texture refers to the GUI texture this is just the file name and will always need to be located in the path of assets/ironchests/textures/gui/chests/${texture}.png . By default we do not provide away of loading such textures you will need a mod such as KubeJS to load the textures for you if you do not want to use a resource pack.

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

Predicate / predicate / ItemPredicate

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 for more info.

Note: This is defaulted to accept any item.

Render Items / renderItems / 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 false.

Examples

This example shows an emerald chest which has the same settings as a diamond chest.

emerald.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"
  }
}

Last updated