minetest / minetest_game

Minetest Game - A lightweight and well-maintained base for modding [https://github.com/minetest/minetest/]
http://minetest.net/
Other
1.43k stars 577 forks source link

An idea for crafting multiple items at the same time. #1802

Closed ThomasMonroe314 closed 6 years ago

ThomasMonroe314 commented 7 years ago

I had an idea for crafting that came from the more-blocks mod.

When you cut nodes from the saw you sometimes get leftovers. Maybe add a leftover box below the output for crafting. You could use the "leftovers" (actually could be another item) for other things.

This may get rejected, but i think it is an intriguing idea and may be worth looking into.

Desour commented 7 years ago

In register_craft there's a replacements field (lua_api.txt:4316).

ThomasMonroe314 commented 7 years ago

hmm ok thats interesting

paramat commented 7 years ago

A 'leftovers' box seems a messy idea, but how about generalising this to the ability to have multiple outputs from a recipe? However this is probably an engine request.

ThomasMonroe314 commented 7 years ago

@paramat leftovers wasn't a good word for me to use, but you hit the nail on the head.

paramat commented 7 years ago

Ok i see, there would be 2 output boxes.

C1ffisme commented 7 years ago

@paramat What if the player by default has only 1 output slot by default, and can only craft recipes with 1 output, but a certain crafting bench or machine can extend this to more than 1 output slot? That sounds like a more original idea than a workbench that increases the size of the recipe grid.

ThomasMonroe314 commented 7 years ago

@C1ffisme thats a very good idea, sort of like a crafting bench

@paramat one of the reasons i thought this might be good is idk how many times ive made the wrong tool, something like this would help recover those lost materials.

paramat commented 7 years ago

No i think normal crafting should allow multiple outputs, otherwise this will be unnecessary complexity.

farooqkz commented 7 years ago

Ok i see, there would be 2 output boxes.

why 2?why not as many output as a recipe has?of course there can be limits.

sorcerykid commented 7 years ago

A 'leftovers' box seems a messy idea, but how about generalising this to the ability to have multiple outputs from a recipe? However this is probably an engine request.

Isn't this already (sort of) possible using "replacements"?

http://dev.minetest.net/minetest.register_craft

C1ffisme commented 7 years ago

@sorcerykid Kinda, but in that case you can only craft 1 thing at a time, or your stack of water buckets might get replaced with a single empty bucket.

paramat commented 6 years ago

Engine issue.