mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-14 07:24:52 +09:00
Add Inventory Combinator which reports the last inventory reported by the external code.
This commit is contained in:
1 parent
09feb085ef
commit
5e65fa5208
3 files changed
+69
-3
No files matched your search
@@ -238,4 +238,35 @@ data:extend{
|
||||
result = RX_COMBINATOR_NAME,
|
||||
requester_paste_multiplier = 1
|
||||
},
|
||||
|
||||
-- Inventory Combinator
|
||||
local inv = table.deepcopy(data.raw["constant-combinator"]["constant-combinator"])
|
||||
inv.name = INV_COMBINATOR_NAME
|
||||
inv.minable.result = INV_COMBINATOR_NAME
|
||||
inv.item_slot_count = 100
|
||||
data:extend{
|
||||
inv,
|
||||
{
|
||||
type = "item",
|
||||
name = INV_COMBINATOR_NAME,
|
||||
icon = inv.icon,
|
||||
flags = {"goes-to-quickbar"},
|
||||
subgroup = "storage",
|
||||
place_result=INV_COMBINATOR_NAME,
|
||||
order = "a[items]-b["..INV_COMBINATOR_NAME.."]",
|
||||
stack_size = 50,
|
||||
},
|
||||
{
|
||||
type = "recipe",
|
||||
name = INV_COMBINATOR_NAME,
|
||||
enabled = true, -- TODO do this on a tech somewhere
|
||||
ingredients =
|
||||
{
|
||||
{"constant-combinator", 1},
|
||||
{"electronic-circuit", 3},
|
||||
{"advanced-circuit", 1}
|
||||
},
|
||||
result = INV_COMBINATOR_NAME,
|
||||
requester_paste_multiplier = 1
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user