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

User avatar
scifiboi
Member
 
Posts: 96
Joined: Wed Jul 18, 2012 21:28

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

by scifiboi » Mon Feb 18, 2013 23:26

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.
This is a signature virus. Add me to your signature so that I can multiply.
My mod: Thaumtest
 

User avatar
Topywo
Member
 
Posts: 1718
Joined: Fri May 18, 2012 20:27

by Topywo » Tue Feb 19, 2013 00:11

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
Last edited by Topywo on Tue Feb 19, 2013 00:12, edited 1 time in total.
 

User avatar
RealBadAngel
Member
 
Posts: 556
Joined: Wed Jul 18, 2012 16:30

by RealBadAngel » Tue Feb 19, 2013 00:52

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.
 

User avatar
scifiboi
Member
 
Posts: 96
Joined: Wed Jul 18, 2012 21:28

by scifiboi » Tue Feb 19, 2013 02:09

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.
This is a signature virus. Add me to your signature so that I can multiply.
My mod: Thaumtest
 

Sokomine
Member
 
Posts: 2980
Joined: Sun Sep 09, 2012 17:31

by Sokomine » Wed Feb 20, 2013 03:14

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!
A list of my mods can be found here.
 

User avatar
scifiboi
Member
 
Posts: 96
Joined: Wed Jul 18, 2012 21:28

by scifiboi » Wed Feb 20, 2013 03:19

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!
This is a signature virus. Add me to your signature so that I can multiply.
My mod: Thaumtest
 


Return to WIP Mods

Who is online

Users browsing this forum: Google [Bot] and 9 guests

cron