[2.1.7 / 2.0.77] What inventory does a loader interact with
Posted: Sat Jul 04, 2026 7:50 pm
The LuaEntity attribute `loader_container` says: "The container entity this loader is pointing at/pulling from depending on the LuaEntity::loader_type, if any.". However, a loader can interact with entities that have more than one inventory (e.g. a assembly machine or a furnace). How can I find out what inventory the loader interacts with?
Alternative: Can we add a read-only "loader_inventory" attribute on LuaEntity that holds the `defines.inventory.<x>` value for the inventory that the loader interacts with?
Special bonus points for making that attribute writeable to allow inventory selection.
Alternative: Can we add a read-only "loader_inventory" attribute on LuaEntity that holds the `defines.inventory.<x>` value for the inventory that the loader interacts with?
Special bonus points for making that attribute writeable to allow inventory selection.