jeremyshannon / Exile

This repo is parked, moved to codeberg.org
https://codeberg.org/Mantar/Exile
GNU General Public License v3.0
16 stars 12 forks source link

Tool based crafting - Hand, knife,digging stick, and cobblestone done - running on ex8 #233

Open Izzyb1234 opened 1 year ago

Izzyb1234 commented 1 year ago

Initial work to make knife a crafting station

Izzyb1234 commented 1 year ago

Currently have the following working: Empty hand - crafting spot (less things in knife) Knife - Crafting spot (some of them) Digging Stick - Threshing spot cobblestone - grinding spot

Adding to this is the hammer from Lord of the Dumpster (already merged) Hammer - hammering spot

weaving frame should come back for the weaving spot

The mixing square will become a tab on other crafting stations for the blocks they create. Open hand will be used for blocks without a crafting station (stairs mostly)

This pr is running on the ex8 server

Izzyb1234 commented 1 year ago

The following tool crafts are now active and confirmed working. Next step will be adding tabs to crafting stations so the mixing options for each tool can be a tab for that tool.

I've decided keeping the inventory squares in main inventory for this release would be best to give players time to adapt to being able to do everything in them using tool based crafting. Everything you can do with the squares can be done with tools now with the exception of the mixing square. Once tabs are added, this PR should be ready for merge.

Lord_of_the_dumpster is working on models for placed tool versions of the on right click tools to give players the option to choose which they prefer. The hammer is currently done as a placed tool by default. Adze and Axe will be tools you place by default - currently using right click action as a place holder. Knife and farming tools will be right click without placing tools by default. All will support either mode via settings and player chat commands.

May want to move wicker to the knife or hand at some point. Wicker should maybe require soaking sticks. Maybe make a bundle of sticks that you soak to make them flexible enough to craft wicker with. Could even make it possible to use salt water for that process. Don't see why salt water would harm the wood; may actually be better then fresh water for the purpose as it'd preserve the wood also. Probably good enough just to allow fresh or salt water for the process.

Izzyb1234 commented 1 year ago

A future addition to tool based crafting could be a set of wood carving tools for smaller crafts like cups for drinking and bowls for soup. I'm sure we can come up with other things to add to such a tool. Maybe item frames? Signs? Shoes?

Izzyb1234 commented 1 year ago

Merged in latest changes from Lord_of_the_Dumpster. Some fine tuning needed but overall this is working well enough its ready for review

Izzyb1234 commented 1 year ago

Oxygene on ex8 reported a bug effecting crafting of crushed Iron. I've confirmed it exists and need to rework how crafting recipes are stored to resolve. have a hack in place to allow crafting of crushed iron via the crafting spot in the short term.

The specifics of the bug relate recipes that can be crafted in multiple stations. The list currently sets multipe ids for each item in multiple stations, but only finds one when generating the crafting lists. So you need to use the correct crafting station to make it work.