minecraft:genetics is random instead of passing from parents to child
Partner Rank:
2
Partner Team Reporting:
Aurafall Studios
Verification builds and Platforms:
ver. 1.16.221
Summary:
When using the minecraft:genetics component on mobs, when breeding, two sets of NBT alleles are present on the child entity. The top set seams random like the entity was spawned or summoned, and the second set seam to be the set passed down from the parents. The only set that the game is recognizing is the first random set.
Impact:
This makes content planned for a future release not function in the way we need it to. The mechanics rely on passing down alleles through genetics to get the desired variants.
Repro Steps:
- Install the included add-on and world
- The Blue Cow has both Hidden and Main alleles of 2, The Red cow has both hidden and main alleles of 1. The only cows that should be able to be bred from these two adults is Blue(2,2), Red(1,1) or Purple(1,2)(2,1)
- Breed the cows, and see that you can breed any of the 9 different colors of cows.
- Check the NBT of the bred cows genetics, and you will see 2 sets
- One set will have random numbers, and be the set that gets used by the game
- The other set will be the set that was received from the parents and only have 1 or 2
Observed Results:
Bred genetics pass down randomly instead of from parents when using the minecraft:genetics component.
Expected Results:
Only alleles that are present in the parents get passed down to the children.
**
Screenshots/Videos attached: Yes/No
yes
Regression Builds:
Notes:
I have the mutation factor set to .00001, so there is a almost 0 chance the alleles are mutated.