mojira.dev
MC-198474

Villager is not able to craft bread in certain situations

The bug

If villagers pick up wheat in different mounts in separate stacks, even though they have enough wheat to craft bread, they don't realize that.

This causes villagers to fill up their inventory, making them unable to keep collect anymore crops, and since its inventory can fill up of non food items (wheat), at some point villagers wont be able to reproduce.

How to reproduce

  1. Summon villager

  2. Throw him 2 wheat in a single stack. Wait until it picks up the bread.

  3. Throw him 1 wheat in another stack

  4. Do /data and take a look at the inventory tag

Notice that two different slots have wheat inside them, one with 2, and the other with 1.

This happens since 1.14.

Update: As pointed out by Pelle Reinke, it no longer happens with farmer villagers but any but them. Reproduction steps might have been changed since this steps where provided.

Linked issues

Attachments

Comments 3

I did some testing in 1.16.2 and it appears that only the farmer type villager will craft the wheat into bread. It made no diffrence if the wheat were given in first a stack of 2 and then 1 or all 3 pieces at once. The farmer would craft it into bread.

Non-farmer villagers will happily pick up wheat but not use it to craft bread themselves, instead they will share the wheat with any farmer they meet.
But the non-farmer villager will keep a minimum of 24 wheat in its own inventory which is weird when it does not craft it into bread.

This doesn't seem to be an issue in 20w48a. I've attached a video which shows this.

I'm unable to reproduce this issue (even on 1.16.3), all Villagers will put the wheat in the same slot. The only difference is that non-farmers won't craft any bread, which is likely intentional.

Carretero Martínez

(Unassigned)

Community Consensus

Normal

Mob behaviour

1.16.2, 1.16.3 Release Candidate 1, 1.16.3

Retrieved