minecraft:mark_variant for you with a switch.Get GodCraftOverview
minecraft:mark_variant is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Stores an extra variant number to tell versions of an entity apart, on top of minecraft:variant. Read it with query.mark_variant to swap textures or models.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
value | Integer | "0" | The variant number; 0 is usually the base look. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:mark_variant": {
"value": "0"
}
}