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
Place two baby sheep at the same time inside two separate pens, one with grass blocks in it, the other without
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
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.
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