Advertisement
Guest User

tree

a guest
Jan 23rd, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.76 KB | None | 0 0
  1. repeat
  2.     if redstone.getAnalogInput("left") == 0 then
  3.         os.shutdown()
  4.     end
  5.     turtle.select(1)
  6.     if turtle.compare() == true then
  7.         sleep(5)
  8.     else
  9.         turtle.select(16)
  10.         turtle.refuel(5)
  11.         turtle.select(1)
  12.         while turtle.detect() == true do
  13.              turtle.dig()
  14.              turtle.digUp()
  15.              turtle.up
  16.         end
  17.         while turtle.detectDown() == false do
  18.             turtle.down()
  19.         end
  20.         turtle.suck()
  21.         turtle.turnRight()
  22.         turtle.turnRight()
  23.         i = 15
  24.         while i > 1 do
  25.            turtle.select(i)
  26.            turtle.drop()
  27.            i = i - 1
  28.         end
  29.         turtle.turnRight()
  30.         turtle.turnRight()
  31.         turtle.select(1)
  32.         turtle.place()
  33.     end
  34. until 1 > 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement