Factorio Prototype Docs Version 1.1.89

PrototypeBase - abstract

The abstract base for prototypes. PrototypeBase defines the common features of prototypes, such as localization and order.

Children

Properties

type :: string

Specifies the kind of prototype this is.

Specifies the kind of prototype this is.

name :: string

Unique textual identification of the prototype.

Unique textual identification of the prototype.

order optional :: Order

Used to order prototypes in inventory, recipes and GUIs.

Used to order prototypes in inventory, recipes and GUIs.

localised_name optional :: LocalisedString

Overwrites the name set in the locale file.

Overwrites the name set in the locale file.

localised_description optional :: LocalisedString

Overwrites the description set in the locale file.

Overwrites the description set in the locale file.

Properties

type :: string

Specifies the kind of prototype this is.

For a list of all types used in vanilla, see data.raw.

name :: string

Unique textual identification of the prototype. May not contain a dot, nor exceed a length of 200 characters.

For a list of all names used in vanilla, see data.raw.

order :: Order optional

Default: ""

Used to order prototypes in inventory, recipes and GUIs. May not exceed a length of 200 characters.

localised_name :: LocalisedString optional

Overwrites the name set in the locale file. Can be used to easily set a procedurally-generated name because the LocalisedString format allows to insert parameters into the name directly from the Lua script.

localised_description :: LocalisedString optional

Overwrites the description set in the locale file. The description is usually shown in the tooltip of the prototype.

Prototypes

Types

>|