The Bug:
Villagers don't ignore items when the "mobGriefing" gamerule is disabled.
When items that villagers can collect such as wheat, carrots, potatoes, bread, bone meal, etc... are dropped on the ground and the "mobGriefing" gamerule is disabled, villagers will indefinitely stand around them in an attempt to collect them despite being unable to do so.
Steps to Reproduce:
Place down a composter and summon a villager nearby.
Set the "mobGriefing" gamerule to "false" by using the command provided below.
/gamerule mobGriefing false
Throw some items that the villager would normally be able to collect on the ground, for example, some carrots.
Wait for the villager to notice the carrots and begin pathfinding towards them.
Take note as to whether or not villagers ignore items when the "mobGriefing" gamerule is disabled.
Observed Behavior:
Villagers don't ignore items.
Expected Behavior:
Villagers would ignore items.
Linked issues
is duplicated by 1
relates to 3
Attachments
Comments


I can reproduce in 20w16a. Heres a video of it. The villager will try to pick up the potatoes until they despawn (not shown in the video sicne I didn't want to record for 5 min)

Interrestingly enough, if mobGriefing is set to true and the villagers inventory is full, it will completely ignore any extra items laying on the ground.

I dont know if there is a report for this, but a related issue is that villagers who are locked onto something they want to pick up but are unable to, will indefinetly try to do so until the items despawn. This is a problem since it ignores the villagers schedule and will make the villager ignore going to bed at night.
Can confirm in 1.17.
Can confirm in 1.19 and 1.19.1 Pre-release 1.
Cannot reproduce. They'll look at the item for like 3-4 seconds and then leave.