🟰 Item Models
This page mainly explains how to configure models for an item.
Last updated
This page mainly explains how to configure models for an item.
Last updated
Since version 1.21.4, Minecraft has started supporting more complex item models. This allows you to create more dynamic variants for items. This tutorial is specifically for version 1.21.4 and above. For older versions, the plugin will downgrade the corresponding model files (note: this is not 100% compatible with older versions, as many conditions and model types do not exist in older versions).
Let's take the simplest minecraft:model
📐 Model type as an example.
If you do not specify a type
, it will default to using minecraft:model
. Therefore, the configuration above is the same as the configuration below.
If you are unsure how to handle model generation
and model path
specification, please read 🏭️ Model Generation.
From the above configuration, we can see that under the model section, you are required to fill in the type of the model and its corresponding parameters. Below is a list of all available model types. Some models (such as range dispatch, select, composite, and condition) support nested model usage. You can click on the link below to jump to the corresponding model type. Once you have read through all of them, we will proceed to discuss more complex examples.
In the following example, a template for automatically generating a 2D crossbow is created by combining condition
, model
, and range_dispatch
.