mojira.dev
MC-201000

Breeding large amounts of animals in a 1x1 gives more babies than it should

Describing the issue:

Breeding large quantities of animals (all animals as far as I'm aware) at once in a 1x1 hole will give about 30% more babies than it should.

Steps to Reproduce:
1. Put 200 cows in a 1x1 pen with water at their feet
2. Feed them wheat as fast as you can, but count how much you've given
3. Count the cows, there may be more than you should have gotten. It is sometimes difficult to reproduce using this method.

 

I made a video showing this issue here. You can also download the world I used from the attached files.

Attachments

Comments 4

Many animals stacked in a 1x1 cannot be properly bred due to another bug (which I cannot find right now), so how do you reproduce this? Because I am unable to.

Did you read my 'Steps to reproduce'? Water at their feet is needed to make them bob up and down. Then you can breed them.

I can confirm this by testing in the attached world...

This is very tricky, I tried hard to figure out exactly where the extra cows were coming from, but I might have to mod the game to see for sure

It works in 1.20.4, I used /gamerule maxEntityCramming 1000 then summoned 100 cows in 1x1 hole, height for 3, bottom with water.

The scoreboard I used:

execute store result score all show if entity @e[type=cow]

execute as @e[type=cow] store result score @s age run data get entity @s Age

execute store result score adult show if entity @e[scores={age=0..}]

execute store result score baby show if entity @e[scores={age=..-1}]

My attachment cutted the middle, the result shows "baby" is 39 instead of 32.

Josh Bergman

(Unassigned)

Confirmed

Mob behaviour

1.16.3, 1.21

Retrieved