Page 1 of 1

Help with custom assembling

Posted: Sat Dec 31, 2016 12:58 pm
by DaLoller
Hi, I'd need help with the creation of a custom assembling machine. Uhh, I want it to only be able to make custom items, how am I able to do that? I've found only once place where it's possible (atleast i think so), heres the code:

Code: Select all

crafting_categories = {"(I have removed that on purpose)"},
    crafting_speed = 0.75,
    energy_source =
It is near the end of the code, I got it from the base mod. If anyone can tell me how, please do! ^_^

Re: Help with custom assembling

Posted: Sat Dec 31, 2016 1:30 pm
by daniel34
Moved to Modding help.

You create a new crafting category (see base\prototypes\categories\recipe-category.lua) and then you include that category in the crafting _categories list in your assembling machine entity. If you remove all other crafting categories then that assembling machine can only craft recipes that use your new category.

If you set the category of a recipe to your new category then that item (the recipe) can only be created in your assembling machine.