Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Using: CC: Tweaked, Plethora
- pastebin run xHQv4Jf4
- pastebin get xHQv4Jf4 startup
- ]]--
- inputChest = peripheral.wrap("minecraft:ender chest_0")
- fabricatorsMap = {}
- fabricatorsMap ["forestry:fabricator_0"] = { material = "Tin Ingot" }
- fabricatorPerip = {}
- for key, perip in pairs(fabricatorsMap) do
- perip.perip = peripheral.wrap(key)
- end
- function sendAll(items, fabricator)
- for i, _ in pairs(items) do
- inputChest.pushItems(fabricator, i)
- end
- end
- while (true) do
- local items = inputChest.list()
- for i, item in pairs(items) do
- local meta = inputChest.getItem(i).getMetadata()
- for key, fabMap in pairs(fabricatorsMap) do
- if(string.find(meta.displayName, fabMap.material)) then
- sendAll(items, key)
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment