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