Making a new type of machine
Making a new type of machine
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
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.
- Deadlock989
- Smart Inserter
- Posts: 2529
- Joined: Fri Nov 06, 2015 7:41 pm
Re: Making a new type of machine
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
Alright got it, I'll just do that thanks to all of you