Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local chest = peripheral.wrap("front")
- local stack, file
- local slot = 1
- while true do
- file = fs.open("repairQueue", "r")
- stack = chest.getStackInSlot(slot)
- if stack.max_dmg and stack.dmg > 0 then
- file = fs.open("repairQueue", "a")
- chest.pushItem("north", slot, stack.qty, slot)
- file.writeLine(stack.dmg..tostring(stack))
- file.close()
- end
- sleep()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement