minecraft:offspring for you with a switch.Get GodCraftOverview
minecraft:offspring is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Controls the baby that is made when two of these entities breed: which entity it is and what it inherits from its parents. Use it alongside a breeding component.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
blend_attributes | Boolean | "true" | If true, the baby mixes stats such as health from both parents. |
deny_parents_variant | JSON Object | none | Chance that a baby of two same-variant parents picks a random variant from a range instead. |
inherit_tamed | Boolean | "true" | If true, babies of tamed parents start out tamed. |
mutation_factor | JSON Object | none | Chance (0.0 to 1.0) that the baby gets a different look than its parents; higher means more surprises. |
offspring_pairs | List | none | Which partner entities this mob can breed with and what baby each pair makes. |
parent_centric_attribute_blending | List | none | Stats that are blended around the parents' values, like a horse's speed and jump. |
property_inheritance | List | none | Entity properties the baby copies from its parents, with a chance to change. |
random_extra_variant_mutation_interval | Range [a, b] | "0" | Range used to pick a random extra variant when a mutation happens. |
random_variant_mutation_interval | Range [a, b] | "0" | Range used to pick a random variant when a mutation happens. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:offspring": {
"blend_attributes": "true",
"deny_parents_variant": {},
"inherit_tamed": "true",
"mutation_factor": {},
"offspring_pairs": {},
"parent_centric_attribute_blending": {},
"property_inheritance": {},
"random_extra_variant_mutation_interval": "0"
}
}