mojira.dev
MC-190735

Baby sheep grow up significantly faster when they can eat grass

If you breed two sheep, the baby will eat very rapidly (as expected per the wiki 1/50 chance for babies vs 1/1000 for adults). It appears that when baby sheep eat grass, it acts the same as feeding them wheat. I did a test where i put sheep into 2 5x5 pens, one with grass and one with sand floors. The baby in the grass pen grew to adult in a little less than 3 minutes instead of the expected 20.  The baby in the sand pen took the full time.

To reproduce

  1. Place two baby sheep at the same time inside two separate pens, one with grass blocks in it, the other without

  2. Observe the sheep
    → ❌ Note that the sheep in the pen with grass grew up significantly quicker than the other sheep

Code analysis

Code analysis by @unknown can be found in this comment.

Linked issues

Attachments

Comments 12

We do not have enough information to find the cause of this issue.

Please force a crash by pressing F3 + C for 10 seconds while in-game and attach the crash report (minecraft/crash-reports/crash-<DATE>-client.txt) here.

Quick Links:
📓 Issue Guidelines – 🛠 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
💬 Mojira Subreddit – 💬 Mojira Discord

Crash report attached as requested.

Can confirm. Also happens in 1.15.2.

Can confirm in 20w49a.

Can confirm in 20w51a.

2 more comments

Can confirm in 1.17.

Can confirm in 1.17.1.

Code Analysis (Yarn - 22w15a)

net.minecraft.entity.passive.SheepEntity.java

public void onEatingGrass() {
	super.onEatingGrass();
	this.setSheared(false);
	if (this.isBaby()) this.growUp(60);
}

Seem intentional

I can confirm this behavior in both 1.18.2 and 22w18a. I'm highly inclined to believe that this is intentional since as shown above, a method is present within the Sheep.java class that specifically increases the "Age" NBT value of baby sheep when they eat grass.

Can confirm in 1.19.2.

Mike Lashbrook

(Unassigned)

Confirmed

Mob behaviour

1.15.2, 1.16 Release Candidate 1, 1.16, 1.16.4, 20w49a, ..., 1.17.1, 1.18.2, 22w15a, 22w18a, 1.19.2

Retrieved