zedwick / VillagerItemCollector

A Minecraft datapack which allows villagers to pick up items when the gamerule mobGriefing is set to false.
GNU General Public License v3.0
2 stars 2 forks source link

Villagers planting/harvesting? #3

Open jkrall opened 4 years ago

jkrall commented 4 years ago

This is a very cool hack for the mobGriefing issue. Have you explored whether there’s a way to enable villagers to plant crops via datapack functions?

This solves only half the problem for automated farming, as while the villagers can pick up food items for breeder farms, the crops cannot be replanted automatically.

I was considering exploring whether it was possible modify this datapack to do this as well — but thought I’d ask if you went down this path at all already... thanks!

zedwick commented 4 years ago

I've not explored that at all. In theory it should be perfectly possible to harvest or plant crops at their feet if space is available and they have seeds, but I'm not sure what the vanilla behaviour is with their pathfinding and if mobGriefing affects if they will travel to crops/farmland.

You're welcome to fork this and have a go. It might be better to try to create a complimentary datapack which is designed to work alongside this one, though. Would let people choose which elements of mobGriefing to re-enable.