Neopherus

Logger v 0.1

Apr 4th, 2013
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. -- Logger v.0.1 by Neopherus --
  2. -- Logs = 1
  3. -- Saplings = 2
  4. -- Bonemeal = 3
  5.  
  6. function plant()
  7.     turtle.select(2)
  8.     turtle.place()
  9.     turtle.select(3)
  10.     turtle.place()
  11. end
  12.  
  13. function cut()
  14. turtle.dig()
  15. turtle.forward()
  16.     while turtle.detectUp() do
  17.     turtle.digUp()
  18.     turtle.up()
  19.     end
  20. end
  21.  
  22. function back()
  23. while not turtle.detectDown() do
  24. turtle.down()
  25. end
  26. turtle.back()
  27. end
  28.  
  29. tArgs = { ... }
  30. togo = tonumber(tArgs[1])
  31.  
  32. for i=1,togo do
  33. plant()
  34. cut()
  35. back()
  36. end
Advertisement
Add Comment
Please, Sign In to add comment