Chest Type
Last updated
Was this helpful?
Last updated
Was this helpful?
length
/ IntegerLength 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
/ IntegerRows refers to the amount of rows there are in a chest GUI and again same as should respect the users GUI scale.
inventoryOffset
/ IntegerInventory Offset refers to the X offset from the edge of the GUI where the players inventory slots should start to generate.
menuOffset
/ IntegerMenu Offset refers to the X offset from the edge of the GUI where the chests inventory slots should start to generate.
width
/ IntegerWidth 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 use this to determine if they should display their stuff so if you make it too big will not render.
height
/ IntegerHeight 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.
transparent
/ BooleanTransparent 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
/ StringNote: This is defaulted to the chest name(name of file)
Note: This is defaulted to accept any item.
renderItems
/ BooleanRender 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.
This example shows an emerald chest which has the same settings as a diamond chest.
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 page for more info.
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 to load the textures for you if you do not want to use a resource pack.
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 for more info.