Making a new type of machine

Place to get help with not working mods / modding interface.
Grundox
Inserter
Inserter
Posts: 43
Joined: Wed Nov 23, 2016 8:18 pm
Contact:

Making a new type of machine

Post by Grundox »

So I want to basically create a new type of machine that can use recipes. When searching in the entities.lua of the base game I found that there are types for that e.g. furnace or assembling machine. Where are those types defined in the basegame data and how do I go about making a new type?

User avatar
mat1k
Long Handed Inserter
Long Handed Inserter
Posts: 55
Joined: Sat Dec 22, 2018 8:48 am
Contact:

Re: Making a new type of machine

Post by mat1k »

From memory i'm fairly sure they are defined in the C++ side and you can't create a new type from within the lua api.

User avatar
Deadlock989
Smart Inserter
Smart Inserter
Posts: 2529
Joined: Fri Nov 06, 2015 7:41 pm

Re: Making a new type of machine

Post by Deadlock989 »

You can't make a "new type" of machine but you don't need to anyway. Instead, make new crafting categories which only specified machines can use. Use a furnace if you want it to auto-select the recipe and if the recipes only have one solid ingredient. Use an assembling machine for every other case. Their complete properties are described on the wiki.

Grundox
Inserter
Inserter
Posts: 43
Joined: Wed Nov 23, 2016 8:18 pm
Contact:

Re: Making a new type of machine

Post by Grundox »

Alright got it, I'll just do that thanks to all of you

Post Reply

Return to “Modding help”