mojira.dev
MC-77364

Villagers try to give bread to other villagers who won't collect it

In villages that have a Farmer, I often see bread at another villager's feet in a wheat field. I can pick it up, but the villager apparently cannot. (If the gift were intended for me, I'd expect it to be placed in a nearby chest or, failing that, thrown directly to me.) NBTExplorer data shows that many villagers are carrying both bread and raw wheat; probably the bug is that the receiving villager counts wheat as bread when deciding whether he needs food, but the donor does not. A workaround may be to have villagers craft bread whenever they have 3 wheat, rather than waiting until someone is hungry.

Comments 6

Actually, Villagers craft bread once the wheat is thrown to them. For example,
First throw:
Throw a stack of wheat to a villager. The villager will pick up the wheat, crafting at least 21 bread leaving 1 wheat left.
Second throw:
Throw 2 wheat to a villager, the villager will pick the wheat up but will not craft bread with the 1 wheat in the villager's inventory. And thus having in total of 3 wheat, 21 bread.

Right, but when they harvest wheat, they pick up 1 at a time, so they accumulate lots of wheat that doesn't become bread. What they need to do is check the total amount of wheat they have every time they pick any up.

Also, I believe this may also occur when the villager's inventory is full of seeds with nowhere to plant them. Discarding seeds to receive food would be a slightly more complex decision than what mob AI is designed to handle.

Is this still an issue in the current Minecraft Snapshot 15w49b or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Ticket resolved as incomplete, because no answer in a reasonable amount of time (1+ year), if it still happens, please update the ticket.

Cannot reproduce please provide a video?

Chris

(Unassigned)

Unconfirmed

Minecraft 1.8.2-pre6

Retrieved