Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local m = peripheral.wrap("right")
- local fullToDeliver = 3
- local lastEmptySlot = 14
- local fullBattery = 15
- local emptyBattery = 16
- function clearScreen()
- term.clear()
- term.setCursorPos(1,1)
- end
- turtle.select(1)
- clearScreen()
- while true do
- clearScreen()
- print("=========================")
- while turtle.suckUp() do
- os.sleep(1)
- end
- for i=1,lastEmptySlot do
- turtle.select(i)
- if turtle.compareTo(fullBattery) then
- turtle.dropUp()
- os.sleep(1)
- elseif turtle.compareTo(emptyBattery) then
- m.dropSneaky(1,1)
- else
- m.suckSneaky(1,1)
- end
- os.sleep(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment