Advertisement
darklife06

Wood plant 2

Dec 17th, 2012
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while true do
  2. if turtle.getFuelLevel()<96 then
  3.   turtle.refuel()
  4. end
  5.      turtle.select(2)
  6. if turtle.compareDown() then
  7.   sleep(5)
  8.   turtle.turnLeft()
  9.   turtle.select(4)
  10.   turtle.suck()
  11.  if turtle.getItemCount(4) < 25 then
  12.         print("En attente de Sapling")
  13.       while turtle.getItemCount(4) < 25 do
  14.         sleep(1)
  15.         turtle.suck()
  16.       end
  17.     end
  18.   turtle.select(1)
  19.   turtle.suck()
  20.     if turtle.getItemCount(1) < 3 then
  21.         print("En attente de coal")
  22.       while turtle.getItemCount(1) < 3 do
  23.         sleep(1)
  24.         turtle.suck()
  25.       end
  26.     end
  27.   turtle.turnRight()
  28.   -- modifier pour coffre
  29.   turtle.forward()
  30. else
  31.   turtle.select(3)
  32.     if turtle.compareDown() then
  33.         if not turtle.detectRight() then
  34.          if turtle.getItemCount(4) > 2 then
  35.           turtle.turnRight()
  36.           turtle.select(4)
  37.           turtle.place()
  38.            if turtle.getItemCount(5) > 2 then
  39.           turtle.select(5)
  40.           turtle.place()
  41.      end
  42.            end
  43.         turtle.turnLeft()
  44.         turtle.forward()
  45.         end
  46.     else
  47.      turtle.select(6)
  48.        if turtle.compareDown() then
  49.         turtle.turnRight()
  50.         turtle.forward()
  51.        else
  52.         turtle.select(7)
  53.        end
  54.           if turtle.compareDown() then
  55.             turtle.turnLeft()
  56.             turtle.forward()
  57.           else
  58.             turtle.forward()
  59.           end
  60.     end
  61. end
  62. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement