Prototype/Container: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Migrated prototype doc to separate website)
m (Protected "Prototype/Container": Migrated prototype doc to separate website ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))

Revision as of 17:52, 16 August 2023

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/prototypes/ContainerPrototype.html

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.


Template:Prototype parent A generic container, such as a chest. Can not be rotated.

Template:Prototype TOC

Extensions

Mandatory properties

This prototype inherits all the properties from Prototype/EntityWithOwner.

Template:Prototype property The number of slots in this container.

Template:Prototype property The picture displayed for this entity.

Optional properties

Template:Prototype property One of "with_bar" and "with_filters_and_bar". Whether the inventory of this container can be filtered (like cargo wagons) or not.

Template:Prototype property If the inventory limiter (red X) is visible in the chest's GUI. This does not change the inventory itself (LuaInventory.supports_bar() will not change and the bar can still be modified by script).

Template:Prototype property If the icons of items shown in alt-mode should be scaled to the containers size.

Template:Prototype property Defines how wires visually connect to this container.

Template:Prototype property The maximum circuit wire distance for this container.

Template:Prototype property

Template:Prototype property

Template:Prototype property The pictures displayed for circuit connections to this container.