Creating a type?

Place to get help with not working mods / modding interface.
Apuppy120
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sat May 02, 2015 4:08 am
Contact:

Creating a type?

Post by Apuppy120 »

Is there any way to make a new entity type? I'm trying to make a new power system and I would prefer being able to set a entity's power settings in the entity.lua document, rather than a bunch of local variables in control.lua
Rseding91
Factorio Staff
Factorio Staff
Posts: 15875
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Creating a type?

Post by Rseding91 »

No, all entity types are hard coded C++ classes in the game's engine.

You can do what I did for modded energy sources: an accumulator with a 0 input value and a large capacity. Set entity.energy and it "produces" power.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Modding help”