Entity Documentation - minecraft:variant
minecraft:variant
is used to differentiate the component group of a variant of an entity from others, such as ocelot
, villager
and horse
.
Note
This behavior is a requirement for setting up multiple types of variants for an entity.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
value | 0 | Integer | The ID of the variant. By convention, 0 is the ID of the base entity. |
Example
"minecraft:variant":{
"value": 0
}
Vanilla entities examples
fox
"minecraft:fox_red": {
"minecraft:variant": {
"value": 0
}
Vanilla entity sample JSON files using minecraft:variant
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for