Advertisement
Guest User

CreatePath

a guest
Mar 3rd, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.64 KB | None | 0 0
  1. --Create Path
  2. --  Author:Adan
  3. --  1- Create Path will dig,
  4. --  2- turn Right, dig, Place#1
  5. --  3- turn Left *2, dig,Place#1
  6. --  4- turn Right, Foward
  7. --  5- turn Right *2, Place#1
  8. --  6- turn Right *2
  9. --  repeat
  10.  
  11. print ("Starting Create Path")
  12. -- Lenght of the path
  13. for i = 1, 15 do
  14.   -- 1
  15.   turtle.dig()
  16.   --2
  17.   turtle.turnRight()
  18.   turtle.dig()
  19.   turtle.place()
  20.   --3
  21.   turtle.turnLeft()
  22.   turtle.turnLeft()
  23.   turtle.dig()
  24.   turtle.place()
  25.   --4
  26.   turtle.turnRight()
  27.   turtle.forward()
  28.   --5
  29.   turtle.turnRight()
  30.   turtle.turnRight()
  31.   turtle.place()
  32.   --6
  33.   turtle.turnRight()
  34.   turtle.turnRight()
  35.   turtle.digUp()
  36. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement