Advertisement
Guest User

r.lua

a guest
Apr 22nd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. --a, b = turtle.inspectDown()
  2. --print(b.name:find('turtle') )
  3. --print( textutils.serialise(b) )
  4. l = function() turtle.turnLeft(); turtle.dig() end
  5. r = function()  turtle.turnRight(); turtle.dig() end
  6. function f() dig();turtle.forward();dig() end
  7. function d() dig();turtle.down();dig() end
  8. function u() dig();turtle.up();dig() end
  9. function dig() turtle.digUp(); turtle.digDown(); turtle.dig() end
  10. function sweep()
  11.   l()
  12.   r()
  13.   r()
  14.   d()
  15.  
  16.  
  17. end
  18. sweep()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement