Ramibuk Posted October 28, 2013 Share Posted October 28, 2013 can i make recipe which will return more different items? Link to comment Share on other sites More sharing options...
RoboMat Posted October 29, 2013 Share Posted October 29, 2013 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 More sharing options...
Ramibuk Posted October 29, 2013 Author Share Posted October 29, 2013 Thanks i was thinking this way too, Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now