Minecraft:Mob variant definitions
More actions
Mob variants are variants of Minecraft:mobs. They define the assets and models used and define the conditions in which this variant spawns.
Definition
Mob variants can be defined in Minecraft:data packs, as part of the directory structure below.
JSON Format
Cat
Minecraft:Cat variants are defined using the following format:
- Template:Nbt The root object.
- Template:Nbt: The Minecraft:resource location of the texture to use.
- Template:Nbt: The Minecraft:resource location of the baby texture to use.
- Template:Nbt: The spawn conditions of this variant, see Template:Slink
Chicken
Minecraft:Chicken variants are defined using the following format:
- Template:Nbt The root object.
- Template:Nbt: The Minecraft:resource location of the texture to use.
- Template:Nbt: The Minecraft:resource location of the baby texture to use.
- Template:Nbt: The chicken model to use. Has to be Template:Cd or Template:Cd.
- Template:Nbt: The spawn conditions of this variant, see Template:Slink
Cow
Minecraft:Cow variants are defined using the following format:
- Template:Nbt The root object.
- Template:Nbt: The Minecraft:resource location of the texture to use.
- Template:Nbt: The Minecraft:resource location of the baby texture to use.
- Template:Nbt: The cow model to use. Has to be Template:Cd, Template:Cd or Template:Cd
- Template:Nbt: The spawn conditions of this variant, see Template:Slink
Frog
Minecraft:Frog variants are defined using the following format:
- Template:Nbt The root object.
- Template:Nbt: The Minecraft:resource location of the texture to use.
- Template:Nbt: The spawn conditions of this variant, see Template:Slink
Pig
Minecraft:Pig variants are defined using the following format:
- Template:Nbt The root object.
- Template:Nbt: The Minecraft:resource location of the texture to use.
- Template:Nbt: The Minecraft:resource location of the baby texture to use.
- Template:Nbt: The pig model to use, has to be Template:Cd or Template:Cd. Defaults to Template:Cd
- Template:Nbt: The spawn conditions of this variant, see Template:Slink
Wolf
Minecraft:Wolf variants are defined using the following format:
- Template:Nbt The root object.
- Template:Nbt: The assets to use for this variant:
- Template:Nbt: The Minecraft:resource location of the texture to use when the wolf is angry.
- Template:Nbt: The Minecraft:resource location of the texture to use when the wolf is wild.
- Template:Nbt: The Minecraft:resource location of the texture to use when the wolf is tamed.
- Template:Nbt: The assets to use for the baby of this variant:
- Template:Nbt: The Minecraft:resource location of the texture to use when the wolf is angry.
- Template:Nbt: The Minecraft:resource location of the texture to use when the wolf is wild.
- Template:Nbt: The Minecraft:resource location of the texture to use when the wolf is tamed.
- Template:Nbt: The spawn conditions of this variant, see Template:Slink
- Template:Nbt: The assets to use for this variant:
Wolf sounds
Minecraft:Wolf sound variants are defined using the following format:
- Template:Nbt The root object.
- Template:Nbt: Sounds to use for adult wolfs
- Template:Nbt: Sounds to use for adult wolfs
- Same fields as Template:Nbt
Zombie Nautilus
Minecraft:Zombie nautilus variants are defined using the following format:
- Template:Nbt The root object.
- Template:Nbt: The Minecraft:resource location of the texture to use.
- Template:Nbt: The nautilus model to use, has to be Template:Cd or Template:Cd. Defaults to Template:Cd
- Template:Nbt: The spawn conditions of this variant, see Template:Slink
Spawn condition
Spawn conditions are used to determine which variant to spawn. Each variant contains a list of conditions with attached priorities. The selection of a variant happens in 3 steps:
- Each condition is evaluated. The matching condition with the highest priority determines the priority of the variant. If no condition matches the variant is discarded.
- Of all remaining variants, all except those with the highest priority are discarded.
- Of the remaining variants, a random variant is chosen.
Spawn conditions are specified using the following format:
- Template:Nbt: List of spawn conditions with priority
- Template:Nbt: A single spawn condition
- Template:Nbt: The priority of the variant if this spawn condition matches
- Template:Nbt: Condition to match. Always matches if omitted
- Template:Nbt: The type of the condition, see below for valid options
- Additional fields based on Template:Nbt, see below
- Template:Nbt: A single spawn condition
biome
Tests if the spawn position is inside one of the specified Minecraft:biomes.
- Template:Nbt
- Template:Nbt: Template:Cd
- Template:NbtTemplate:Nbt: Template:Json ref/biome — The biomes to match
structure
Tests if the spawn position is inside at least one of the specified Minecraft:structures.
- Template:Nbt
- Template:Nbt: Template:Cd
- Template:NbtTemplate:Nbt: Template:Json ref/structure — The structures to match
moon_brightness
Matches the Minecraft:moon brightness at the time of the spawn.
- Template:Nbt
- Template:Nbt: Template:Cd
- Template:NbtTemplate:Nbt: The moon brightness values to match — If specified as Template:Nbt: matches a single moon brightness value
- Template:Nbt: The minimum moon brightness to match
- Template:Nbt: The maximum moon brightness to match
History
Template:Navbox Java Edition technical
Minecraft:de:Kreaturvariantendefinition Minecraft:fr:Définition de variante de créature Minecraft:ja:エンティティの亜種のカスタマイズ Minecraft:pt:Definição de variantes de criatura