Advertisement
justync7

MINETURTLE.LUA

Sep 21st, 2012
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. -- Start l33t code
  2. -- MINE TURTLE
  3. function turtle.explode(slot)
  4. turtle.select(slot)
  5. turtle.placeUp()
  6. rs.setOutput("top",true)
  7. sleep(0.1)
  8. rs.setOutput("top",false)
  9. end
  10. while true do
  11. if not turtle.forward() and not turtle.detect() then
  12. turtle.explode(1)
  13. turtle.turnLeft()
  14. turtle.turnLeft()
  15. elseif turtle.detect() then
  16. turtle.turnLeft()
  17. turtle.turnLeft()
  18. end
  19. end
  20. -- Hello!
  21. -- End l33t Code
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement