Berany

Help)How to make two kinds of items with one recipe?

Recommended Posts

Berany    0

Hi.

I've been visiting a lot lately.

Do you know how to make two kinds of items with one recipe?

I'm making a recipe for my mod.

For example, there is a recipe that requires :twigs, spear, bluegem, redgem.

When collect all the ingredients in this recipe, can get both ice staff and fire staff.

I'm not sure if it's possible, but let me know if it's possible.

If this is impossible, tell me it's impossible.

I'm sorry to asking too much help.

But thanks to the help I received here, I think I'll be able to complete my mod soon.

Thank you, everyone. :D

Edited by Berany

Share this post


Link to post
Share on other sites
Yakuzashi    77

Hi. I am not sure if it's even possible to assign one recipe to two prefabs. Anyway, there's stuff that you need to paste into modmain. It should be functional, but in game there will pop 2 icons in crafting tab for each variant.

local Ingredient = GLOBAL.Ingredient
local RECIPETABS = GLOBAL.RECIPETABS
local TECH = GLOBAL.TECH 
AddRecipe("firestaff", {Ingredient("twigs", 1), Ingredient("spear", 1),Ingredient("bluegem", 1), Ingredient("redgem", 1)}, RECIPETABS.MAGIC, TECH.MAGIC_TWO, nil, nil, nil, nil)
AddRecipe("icestaff", {Ingredient("twigs", 1), Ingredient("spear", 1),Ingredient("bluegem", 1), Ingredient("redgem", 1)}, RECIPETABS.MAGIC, TECH.MAGIC_TWO, nil, nil, nil, nil)

 

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now