Help with custom assembling

Place to get help with not working mods / modding interface.
Post Reply
DaLoller
Manual Inserter
Manual Inserter
Posts: 1
Joined: Thu Apr 28, 2016 5:36 pm
Contact:

Help with custom assembling

Post 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! ^_^

daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Help with custom assembling

Post 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.
quick links: log file | graphical issues | wiki

Post Reply

Return to “Modding help”