Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dir = "up" -- direction of interface relative to ender chest
- c = peripheral.find("ender_chest")
- blacklist = {
- ["LogisticsPipes:item.remoteOrdererItem"]={-1},
- ["ChromatiCraft:chromaticraft_item_aurapouch"]={-1},
- ["ThaumicTinkerer:ichorPouch"]={-1},
- ["EnderStorage:enderPouch"]={-1},
- ["Backpack:backpack"]={-1},
- }
- function isBlacklisted(name,ID)
- if blacklist[name] ~= nil then
- if blacklist[name][1] == -1 then
- return true
- end
- for k,v in ipairs(blacklist[name]) do
- if v == ID then
- return true
- end
- end
- end
- return false
- end
- while true do
- local success, item = pcall(c.getStackInSlot, 26)
- if success == false or item ~= nil then
- if not isBlacklisted(item.id, item.dmb) then
- c.pushItem(dir, 26, 64, 0)
- end
- end
- success, item = pcall(c.getStackInSlot, 27)
- if success == false or item ~= nil then
- for i = 1, 27, 1 do
- local success, item = pcall(c.getStackInSlot, i)
- if success == false or item ~= nil and not isBlacklisted(item.id, item.dmg) then
- c.pushItem(dir, i, 64, i%8)
- end
- end
- -- print("[" .. textutils.formatTime(os.time(), true) .. "] Inventory dumped")
- end
- sleep(0.1)
- end
Add Comment
Please, Sign In to add comment