Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local inputChest = peripheral.wrap("right")
- local badItemsChest = peripheral.wrap("left")
- local goodItemsChest = peripheral.wrap("back")
- while true do
- for slot, item in pairs(inputChest.list()) do
- local itemDetails = inputChest.getItemDetail(slot)
- if itemDetails.nbt then
- inputChest.pushItems(peripheral.getName(badItemsChest), slot)
- else
- inputChest.pushItems(peripheral.getName(goodItemsChest), slot)
- end
- end
- end
Advertisement
Comments
-
- It doesen't work for me, any solution? it says string "JqXL51Es" is not working, attempt to index local 'inputChest' a nil value
Add Comment
Please, Sign In to add comment