Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Variant is typically used as a per-type way to express a different visual form of the same mob. For example, for cats, variant is a number that defines the breed of cat.
Note
This behavior is a requirement for setting up multiple types of variants for an entity.
Variant Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| value | 0 | Integer number | The Id of the variant. By convention, 0 is the Id of the base entity/default appearance. | Frog: 1, 2, Llama: 3 |
Samples
Frog
At /minecraft:entity/component_groups/cold_frog/minecraft:variant/:
"minecraft:variant": {
"value": 1
}
At /minecraft:entity/component_groups/temperate_frog/minecraft:variant/:
"minecraft:variant": {
"value": 0
}
At /minecraft:entity/component_groups/warm_frog/minecraft:variant/:
"minecraft:variant": {
"value": 2
}
Llama
At /minecraft:entity/component_groups/minecraft:llama_gray/minecraft:variant/:
"minecraft:variant": {
"value": 3
}
Magma Cube
At /minecraft:entity/component_groups/minecraft:slime_large/minecraft:variant/:
"minecraft:variant": {
"value": 4
}