Jump to content

Recipe with more different result items


Ramibuk

Recommended Posts

Not without the help of lua.

 

What you could try is using the OnMakeItem event and checking if the recipe parameter is "your" recipe. Something like this:

local function addMoreStuff(_result, _resultItem, _recipe)	-- Pseudocode	if _recipe:getName() == "modRecipe" then		getSpecificPlayer(0):getInventory():AddItems("Base.Hammer", 3); -- add three hammers	endendEvents.OnMakeItem.Add(addMoreStuff)
So everytime you use that recipe an additional item is added to the inventory via lua.
Link to comment
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
×
×
  • Create New...