Inventory Models
This page is about the format for configuring block entity renderers from 1.16 to 1.19. For the format used since 1.20, see Render Item Lists.
This page covers the format used for configuring the location of items in Mantle inventory block entity renderers between 1.16 and 1.19. This format populated the data using custom model loaders, which was then fetched at runtime by the block entity renderer.
Inventory
The inventory model loader is added by Mantle, and is the default way to add item locations to a block entity renderer for supporting block entity renderers. It has the following format:
mantle:inventory
.
Always - All fields from Colored Block Model.
- An item to render. Index in the list corresponds to the index in the block’s inventory.
List of items to display.
Inventory model JSON.
Table
The table model loader is added by Tinkers’ Construct to combine the inventory model with the retextured model. It is notably supported by the crafting station, tinker station, part builder, modifier worktable, and tinkers anvil. It has the following format:
tconstruct:table
.
Always - All fields from Colored Block Model.
textures
to retexture.
Name of the texture from textures
to retexture.
A name from
List of names to retexture.
- An item to render. Index in the list corresponds to the index in the block’s inventory.
List of items to display.
Inventory model JSON.
Melter
The melter model loader is added by Tinkers’ Construct to combine the inventory model with the tank model. It is notably supported by the melter, hence its name. The melter model does not support rendering fluid in the model by default, only when the config option is enabled. It has the following format:
tconstruct:melter
.
Always - All fields from Simple Block Model.
- Model to render when the block is in the GUI. Typically used to allow backfaces on the original model. If unset, the base model will be used in the GUI.
- Number of different levels of fluid to generate models for. Models are generated dynamically so it will not impact load times, but it may impact performance at runtime.
Location to place the fluid in the model.
- An item to render. Index in the list corresponds to the index in the block’s inventory.
List of items to display.
Inventory model JSON.
Casting
The casting model loader is added by Tinkers’ Construct to combine the inventory model with the fluid model. It is notably supported by the casting table and basin, hence its name. It has the following format:
tconstruct:casting
.
Always - All fields from Colored Block Model.
- Location to place the fluid in the model.
- An item to render. Index in the list corresponds to the index in the block’s inventory.
List of items to display. Only the first 2 values are used.
Inventory model JSON.