Prototype/LinkedContainer: Difference between revisions
Jump to navigation
Jump to search
m (formatting) |
(1.1.51: Prototype/EntityWithOwner added) |
||
Line 1: | Line 1: | ||
{{Prototype parent|Prototype/ | {{Prototype parent|Prototype/EntityWithOwner}} | ||
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. | ||
Line 5: | Line 5: | ||
== Mandatory properties == | == Mandatory properties == | ||
This prototype inherits all the properties from [[Prototype/ | This prototype inherits all the properties from [[Prototype/EntityWithOwner]]. | ||
{{Prototype property|inventory_size|[[Types/ItemStackIndex|ItemStackIndex]]}} | {{Prototype property|inventory_size|[[Types/ItemStackIndex|ItemStackIndex]]}} |
Revision as of 19:27, 21 January 2022
Template:Prototype parent 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/EntityWithOwner.
Template:Prototype property Must be > 0.
Optional properties
Template:Prototype property Players that can access the GUI to change the link ID. Possible options: "all", "none", "admins".