Reference ItemModel
A Reference, or Model, ItemModel is the simplest form of ItemModel. All it does is reference the path to a Model file to use.
If we want to use this in an example here;
myitem:
ItemModel:
type: model
model: namespace:mymodel #References assest/namespace/models/mymodel.jsonmyitem:
Pack:
texture: namespace:mytexture #References assest/namespace/textures/mytexture.png
ItemModel:
type: model
model: myitem # When only a texture is provided, Nexo generates the Model for <itemid>Should be noted that this example is not needed if you just want a basic Item like shown above.
When using prefer_item_models ( ItemModels vs. CustomModelData ), this is done automatically.
If normally relying on CustomModelData, you can also just set the ItemModel-Component
myitem:
Pack:
texture: namespace:mytexture
Components:
item_model: namespace:myitemLast updated