Item prototype flags

Place to get help with not working mods / modding interface.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Item prototype flags

Post by DaveMcW »

The wiki https://wiki.factorio.com/Prototype/Item#flags says that the flags property is mandatory on item prototypes. But most of the items in the base game do not have the flags property set.

So is it not really mandatory, or is the base mod an exception?
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Item prototype flags

Post by darkfrei »

Note that the flags = nil and flags = {} is not the same. You are need at least empty table.
Bilka
Factorio Staff
Factorio Staff
Posts: 3464
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Item prototype flags

Post by Bilka »

They are optional.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Modding help”