minecraft:genetics
Dynamic value
Properties
This component has no properties in the official schema: add it as an empty object {} to switch the behaviour on.
Example from the game files
This is how vanilla Goat uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:genetics": {
"mutation_rate": 0.02,
"genes": [
{
"name": "goat_variant",
"use_simplified_breeding": true,
"allele_range": {
"range_min": 1,
"range_max": 100
},
"genetic_variants": [
{
"main_allele": {
"range_min": 1,
"range_max": 2
},
"birth_event": {
"event": "minecraft:born_screamer",
"target": "self"
}
},
{
"main_allele": {
"range_min": 3,
"range_max": 100
},
"birth_event": {
"event": "minecraft:born_default",
"target": "self"
}
}
]
}
]
}
}Used by 2
Vanilla entities with minecraft:genetics in their definition: