Easy_API


An API to help modders make things easier. Exists in all my .15 and forward mods as the functions folder.

Utilities
7 years ago
0.15
5

g Modded intermediate products

7 years ago

Thank you very much for this API. I'm surprised to see it only has so few downloads, when it's very helpful.

I'm not sure if you know the answer to this, but is there a way to use your intermediate products in a recipe? Whenever I try to do so, the game tells me the item is not in the ROOT, which means I can't use it.

7 years ago
(updated 7 years ago)

Let's assume you're using a function (in this case, easy_api.basic_item)

easy_api.basic_item({ --initiate the new "info" input
-- random variables
icon = ...
stack_size = ...
ingredients = ...
-- your question
name = [name]
}) -- and close the function

Now, how do you use this in something else?

easy_api.basic_item({ --initiate the new "info" input
-- random variables
icon = ...
stack_size = ...
name = ...
-- your question
ingredients = { -- since ingredients is an array...
 {[other names],[other amounts]}
 {[other names],[other amounts]}
 {[name],[amount]} -- and this is where your question is answered
} -- closing the ingredients array
}) -- and close the function

New response