Advertisement
FFS2309

Excarect

Dec 27th, 2015
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. local tArgs = {...}
  2. if #tArgs ~= 2 then
  3. print("Usage: excarect <x> <y>")
  4. return
  5. end
  6.  
  7. while(true) do
  8. for y=1,x<tonumber( tArgs[0] ) do
  9. for x=1,x<tonumber( tArgs[1] ) do
  10. if turtle.detect() then turtle.dig() end
  11. turtle.forward()
  12. end
  13. if y % 2 then
  14. turtle.turnRight()
  15. turtle.forward()
  16. turtle.turnRight()
  17. else
  18. turtle.turnLeft()
  19. turtle.forward()
  20. turtle.turnLeft()
  21. end
  22. end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement