Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function discharge() --throws all stuff under turtle
- for slot = 1, 9 do
- turtle.select(slot)
- turtle.drop()
- end
- end
- function isempty()
- local empty = true
- for slot = 1, 9 do
- empty = empty and (turtle.select(turtle.getItemCount(slot)))
- end
- end
- function deposit()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.forward()
- discharge()
- redblink()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.forward()
- end
- shell.run("excavate", "3")
- repeat
- deposit()
- shell.run("excavate", "3")
- until isempty()
Add Comment
Please, Sign In to add comment