Skip to content

Item Appearance

Frinn38 edited this page Aug 23, 2021 · 5 revisions

By default the machine item will have the same appearance that the machine block, you can change it by using the Item Property.

There is 2 way of using the item property :

Using an item

The item property can take an item using the format : namespace:item_id and will mimic its model and textures.

Example :

"appearance": {
    "item": "minecraft:diamond"
}

That way the machine item will show as a vanilla diamond.

Note: for items with animated textures (bow/compass/watch...) that may not work or cause issues. For items with more complex rendering (trident, chest, armor stand...) that will just not works.

Using a custom model

If you don't want to mimic an existing item you can use the item property to point a custom model that the machine will use.

The model must be a Minecraft type json model, if you are not familiar with this type of model see the official MC Wiki.

The model MUST be loaded in-game using either a ResourcePack or a Resource Loader mod like Open Loader.

The model MUST be located in assets/namespace/models/machine any other model location such as assets/namespace/models/item will not work.

Example : A model located in assets/namespace/models/machine/my_machine.json must be defined as namespace:machine/my_machine, the model loader will search for files in the models folder and it's subfolders and will also add the .json so you don't have to.

Example :

"appearance": {
    "item": "custommachinery:machines/my_model"
}

That way the machine will use the file located in assets/custommachinery/models/machines/my_model.json as the machine item model.

Adding a new custom model inside that directory will require a game restart

Clone this wiki locally