plethora crafter rename to milo - wip

This commit is contained in:
kepler155c
2018-10-23 22:32:25 -04:00
parent a19960959b
commit 9664077f2e
27 changed files with 795 additions and 1520 deletions

View File

@@ -0,0 +1,24 @@
local Milo = require('milo')
local device = _G.device
local InputChest = {
priority = 1,
}
function InputChest:cycle(context)
for name,v in pairs(context.config.remoteDefaults) do
if v.mtype == 'input' then
local inventory = device[name]
local list = inventory and inventory.list and inventory.list()
if list then
for slotNo, slot in pairs(list) do
context.inventoryAdapter:insert(slotNo, slot.count, nil, slot, name)
end
end
end
end
end
Milo:registerTask(InputChest)