This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
If you right click on a farmer with a piece of bread, it would toggle him to create bread if he has wheat in a nearby chest and a crafting table to make it with. Much like how librarians make books. This would make it possible for a farmer to farm the crops, store the wheat and make the bread.
Could also look at other foods for him to cook, requiring an "oven". Such as fish and meats, also potatoes soon, or you could leave that to the butcher to cook after collecting meats.
Nice idea. I wish I could have an official API to control those villagers (to be able to fish, for example).
I'll brainstorm on how to make this and keep you informed in the next days. There's some possible issues about resource conflicts.
Thank you for the suggestion.
Thanks! I know you are busy in a good way, but looking for suggestions and such so I will keep them coming as I think of them!
Also, you could call the farmer a "baker" I suppose, for the bread or a "cook", much like how you have the farmer as a lumberjack if he is given an axe and saplings!
I've checked my plugin. There's an uniformisation to make in order to ease the development of such "behavior". Blacksmiths have a similar beahvior, taking ores from chests to melt them in furnaces and put them back into nearby chests.
By now, there's the following processes:
But those processes are somewhat replicated/specialized for each profession. If I code an "engine", it would be possible to fully customize the behavior of each profession/sub-profession using a simple XML file (for example). This would implies less code, and thus, less potential bugs/maintenance effort/testing effort.
I wish i've had time to do this !
To post a comment, please login or register a new account.