Advertisement
albertost85

tala

Oct 6th, 2018
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.70 KB | None | 0 0
  1. -- Script to plant trees in minecraft world
  2.  
  3. tiempoAgua=150
  4. tiempoAgua2=120
  5. shell.run("clear")
  6. os.loadAPI("tortu")
  7. pimpoLleno = false
  8. print("Please put log in slot 1 and sapplings in slot 16")
  9. print("Number of files to plant?")
  10. local numFilas = io.read()
  11.  
  12. -- A la posicion
  13.  
  14. for i=1,5 do
  15.   tortu.avanza()
  16. end
  17. turtle.turnLeft()
  18. for i=1,7 do
  19.   tortu.avanza()
  20. end
  21. turtle.turnRight()
  22. turtle.forward()
  23. for i=1,numFilas-1 do
  24.   turtle.turnRight()
  25.   turtle.select(1)
  26.   if turtle.compare() then
  27.     tortu.tala()
  28. --    turtle.select(16) turtle.place()
  29.   end
  30.   turtle.turnLeft()
  31.   for i=1,6 do
  32.     tortu.avanza()
  33.   end
  34. end
  35. turtle.turnRight()
  36. turtle.select(1)
  37. if turtle.compare(1) then
  38.   tortu.tala()
  39. --  turtle.select(16) turtle.place()
  40. end
  41. turtle.turnLeft()
  42. turtle.forward()
  43. turtle.turnRight()
  44. for i=1,8 do
  45.   tortu.avanza()
  46. end
  47. turtle.turnRight()
  48. turtle.forward()
  49. for i=1,numFilas do
  50.   turtle.turnRight()
  51.   turtle.select(1)
  52.   if turtle.compare() then
  53.     tortu.tala() turtle.select(16)
  54. --    turtle.place()
  55.   end  
  56.   turtle.turnLeft()
  57.   for i=1,6 do
  58.     tortu.avanza()
  59.   end
  60. end
  61. turtle.turnRight()
  62. turtle.forward()
  63. turtle.turnRight()
  64. function chupamelamingadominga()
  65. tortu.avanza(4)
  66. turtle.turnLeft()
  67. tortu.avanza(8)
  68. turtle.turnRight()
  69. tortu.suca(11,numFilas*6-1)
  70. tortu.avanza(4)
  71. turtle.turnRight()
  72. tortu.avanza(2)
  73. turtle.turnRight()
  74. end
  75.  
  76. redstone.setOutput("front",true)
  77. tortu.sube(7)
  78. turtle.turnLeft()
  79. tortu.avanza(3)
  80. turtle.turnRight()
  81. tortu.avanza(2)
  82. os.sleep(tiempoAgua)
  83. turtle.back()
  84. os.sleep(20)
  85. tortu.sube(2)
  86. os.sleep(tiempoAgua2)
  87. turtle.back()
  88. turtle.turnRight()
  89. tortu.avanza(3)
  90. turtle.turnLeft()
  91. tortu.baja(9)
  92. redstone.setOutput("front",false)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement