This changes two things about how villagers get food to their house:
1. They will always get the maximum amount of food they can carry (instead of trawling across town with 6 fruits in their bag);
2. They will consider more than just one barn to get food from (within the radius that is defined in config) — so they won’t starve just because the barn next to their house is empty, and they will bring a larger variety of food as well (everything that is available within that radius, instead of just what’s in the closest barn).
2017-04-01: No changes for 0.9.6127.
Originally made prior to 0.9.6042. Food fetching behaviour has changed in 0.9.6042 and then again in 0.9.6112, but since people are still reporting issues and this is still working fine for me, you could give it a try to see if it works better for you than the default behaviour.
How it works exactly:
- scripts > pbox_findAndTransferHouseFood.lua: Custom script that overrides one function in worker.lua (findAndTransferHouseFood), so that 1. maxCount = maxGetCount (no hairy calculation), and 2. instead of finding the nearest barn first and then going down the prioritised shopping list, it goes through the shopping list first and then finds the nearest barn for each food type.