Page 1 of 1

Making a new type of machine

Posted: Fri Aug 23, 2019 10:14 am
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?

Re: Making a new type of machine

Posted: Fri Aug 23, 2019 10:16 am
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.

Re: Making a new type of machine

Posted: Fri Aug 23, 2019 10:48 am
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.

Re: Making a new type of machine

Posted: Fri Aug 23, 2019 5:37 pm
by Grundox
Alright got it, I'll just do that thanks to all of you