Prototype/Container: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(1.1.62: inventory_type added)
(Removed old prototype docs)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Prototype parent|Prototype/EntityWithOwner}}
<div class="stub"><p>'''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 https://lua-api.factorio.com/latest/prototypes/ContainerPrototype.html]
A generic container, such as a chest. Can not be rotated.


{{Prototype TOC|container}}
</p><p>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 [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div>
 
== Extensions ==
* [[Prototype/LogisticContainer]] '''logistic-container'''
** [[Prototype/InfinityContainer]] '''infinity-container'''
 
== Mandatory properties ==
This prototype inherits all the properties from [[Prototype/EntityWithOwner]].
 
{{Prototype property|inventory_size|[[Types/uint16|uint16]]}}
The number of slots in this container.
 
{{Prototype property|picture|[[Types/Sprite|Sprite]]}}
The picture displayed for this entity.
 
== Optional properties ==
 
{{Prototype property|inventory_type|[[Types/string|string]]|"with_bar"|optional=true}}
One of "with_bar" and "with_filters_and_bar". Whether the inventory of this container can be filtered (like cargo wagons) or not.
 
{{Prototype property|enable_inventory_bar|[[Types/bool|bool]]|true|optional=true}}
If the red inventory limiter bar is enabled.
 
{{Prototype property|scale_info_icons|[[Types/bool|bool]]|false|optional=true}}
If the icons of items shown in alt-mode should be scaled to the containers size.
 
{{Prototype property|circuit_wire_connection_point|[[Types/WireConnectionPoint|WireConnectionPoint]]|optional=true}}
Defines how wires visually connect to this container.
 
{{Prototype property|circuit_wire_max_distance|[[Types/double|double]]|0|optional=true}}
The maximum circuit wire distance for this container.
 
{{Prototype property|draw_copper_wires|[[Types/bool|bool]]|true|optional=true}}
 
{{Prototype property|draw_circuit_wires|[[Types/bool|bool]]|true|optional=true}}
 
{{Prototype property|circuit_connector_sprites|[[Types/CircuitConnectorSprites|CircuitConnectorSprites]]|optional=true}}
The pictures displayed for circuit connections to this container.

Latest revision as of 14:32, 25 October 2024

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.