Advertisement
DCSquid

branchmine

Aug 5th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. shell.run("pastebin","get","hqrhGa85","turtleAPI")
  2. os.loadAPI("turtleAPI")
  3.  
  4. n=tonumber(io.read())
  5. turtle.refuel(1)
  6.  
  7. for i=0,n,1 do
  8.   turtleAPI.channel(3)
  9.   turtle.turnRight()
  10.   turtleAPI.channel(20)
  11.   turtle.turnRight()
  12.   turtle.turnRight()
  13.   turtleAPI.goForwardAndTorch(20)
  14.   turtleAPI.channel(20)
  15.   turtle.turnRight()
  16.   turtle.turnRight()
  17.   turtleAPI.goForwardAndTorch(20)
  18.   turtle.turnLeft()  
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement