UsefulVillagers

19 - Farmers Baking Bread

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.

User When Change
softvelvet Oct 01, 2012 at 23:32 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 3 comments
  • Avatar of SomeRandomGameDev SomeRandomGameDev Oct 10, 2012 at 11:37 UTC - 0 likes

    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:

    • Check nearby chest -> Gather resources from chest.
    • Check nearby blocks -> Use stored resources to modify block state -> Collect new resources.
    • Check nearby furnaces -> Get result as resources -> Smelt stored resources.
    • Check nearby entites -> Alter entites parameters (stored resources as payload).

    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 !

    Currently working on : UsefulVillagers Twitter: @SomeRandomGD

  • Avatar of softvelvet softvelvet Oct 03, 2012 at 16:26 UTC - 0 likes

    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!

  • Avatar of SomeRandomGameDev SomeRandomGameDev Oct 02, 2012 at 14:10 UTC - 0 likes

    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.

  • 3 comments

Facts

Reported
Oct 01, 2012
Status
New - Issue has not had initial review yet.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees