Advertisement
iMontouch

Turtle Builder: Cactus Farm 0.5

May 22nd, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Slot 1: Cobble
  2. -- Slot 2: Sand
  3. -- Slot 3: Cactus
  4. -- Slot 4: Fence
  5. local cactusPerTower = 3
  6. local towerHeight = cactusPerTower*4
  7. local i = 0
  8. local e = 0
  9.  
  10. while(e<2) do
  11.  
  12. while(i<cactusPerTower) do
  13. turtle.select(1)
  14. turtle.placeDown()
  15. turtle.up()
  16. turtle.select(2)
  17. turtle.placeDown()
  18. turtle.up()
  19. turtle.select(3)
  20. turtle.placeDown()
  21. turtle.up()
  22. turtle.place(4)
  23. turtle.up()
  24. i = i + 1
  25. end
  26.  
  27. turtle.forward()
  28. turtle.forward()
  29.  
  30. i = 0
  31. while(i<towerHeight) do
  32. turtle.down()
  33. i = i + 1
  34. end
  35.  
  36. e = e +1
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement