Page 1 of 1
Is it possible to output more than one item in a craft?

Posted:
Mon Feb 18, 2013 23:26
by scifiboi
I am developing an industrialcraft-like mod that adds functionality similar to industrialcraft to minetest. I am currently working on the rubber and rubber trees and I want one rubber to be given when you smelt a rubber tree log, leaves, or sapling, but 3 when you smelt sticky resin. Is there any way to do this? I may have overlooked it on the minetest dev wiki, but I didn't find anything with it on there. Thanks.

Posted:
Tue Feb 19, 2013 00:11
by Topywo
As I read what you want, it could be that it can be solved by changing the outputs for each cooking recipe. Example from Unified dyes:
minetest.register_craft({
type = "cooking",
output = "unifieddyes:carbon_black 2",
recipe = "default:coal_lump",
})
So for a log you could choose an output of 4 rubber (recipe tree log), for leaves of 1 (recipe leaves) and for (recipe) saplings 2.
Edit: Typo

Posted:
Tue Feb 19, 2013 00:52
by RealBadAngel
scifiboi wrote:I am developing an industrialcraft-like mod that adds functionality similar to industrialcraft to minetest. I am currently working on the rubber and rubber trees and I want one rubber to be given when you smelt a rubber tree log, leaves, or sapling, but 3 when you smelt sticky resin. Is there any way to do this? I may have overlooked it on the minetest dev wiki, but I didn't find anything with it on there. Thanks.
Check out Technic mod. It already have such things you mentioned.

Posted:
Tue Feb 19, 2013 02:09
by scifiboi
Thanks to both of you. The code did the trick. Your technic mod looks like it will be awesome! I'll try it out sometime.

Posted:
Wed Feb 20, 2013 03:14
by Sokomine
farming_plus from PilzAdam also comes with a rubber tree and a way to get a bucket with rubber from that tree. Usages for rubber would be great!

Posted:
Wed Feb 20, 2013 03:19
by scifiboi
Sokomine wrote:farming_plus from PilzAdam also comes with a rubber tree and a way to get a bucket with rubber from that tree. Usages for rubber would be great!
That sounds great! If I do that, I will add more parts to my industry mod that allows for you to use other parts of the farming mod. I will more than likely do that. Thanks!