Villagers spawned via command do not pick up items, such as bread or carrots. Villagers spawned naturally or with spawn egg are fine.
How to reproduce
Ensure mob griefing is enabled
/summon villagerThrow bread at it
Use a village spawn egg
Throw bread at it
Expected results
Both villagers should pick up the bread
Observed results
Only the spawn egg villager does
Workaround
Manually specifying NBT with {CanPickUpLoot:1b} works
Linked issues
is duplicated by 8
Attachments
Comments 9
ignore prior comment, I’m testing with mobGriefing false.
however, this does highlight an issue with mobGriefing where villagers will get stuck trying to pickup items when they are not allowed to.
I’m reopening this because I think it’s a bug that summoning a mob without NBT produces different results from using a spawn egg. You don’t need to specify NBT to give a summoned skeleton a bow, for example.
Thank you for your report!
After consideration, the issue is being closed as Working as Intended.
Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.
Full Version History – Snapshot Version History – The official Minecraft feedback site
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
CanPickUpLoot defaults to 0b/false,set it to 1b/true.