Prototype/LinkedContainer: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (formatting) |
||
Line 1: | Line 1: | ||
{{Prototype parent|Prototype/EntityWithHealth}} | {{Prototype parent|Prototype/EntityWithHealth}} | ||
A container that shares its inventory with containers with the same [https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.link_id link_id], which can be set via the GUI. The link IDs are per prototype and force,so only containers with the '''same ID''' , '''same prototype name''' and '''same force''' will share inventories. | A container that shares its inventory with containers with the same [https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.link_id link_id], which can be set via the GUI. The link IDs are per prototype and force, so only containers with the '''same ID''', '''same prototype name''' and '''same force''' will share inventories. | ||
{{Prototype TOC|linked-container}} | {{Prototype TOC|linked-container}} |
Revision as of 15:57, 18 June 2021
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/LinkedContainer
A container that shares its inventory with containers with the same link_id, which can be set via the GUI. The link IDs are per prototype and force, so only containers with the same ID, same prototype name and same force will share inventories.
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithHealth.
inventory_size
Type: ItemStackIndex
Must be > 0.
Optional properties
picture
Type: Sprite
gui_mode
Type: string
Default: all
Players that can access the GUI to change the link ID. Possible options: "all", "none", "admins".
scale_info_icons
Type: bool
Default: false