TriiNoxYs

[ComputerCraft] Ferme a blé

Jul 6th, 2014
474
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. while true do
  2.     turtle.select(1)
  3.     turtle.place()
  4.     turtle.select(2)
  5.     turtle.place()
  6.     turtle.place()
  7.     turtle.place()
  8.     turtle.place()
  9.     turtle.place()
  10.     if turtle.getItemCount(2) == 0 then
  11.         turtle.turnRight()
  12.         if turtle.suck() == false then
  13.             print("No Bonemeal available!")
  14.             turtle.turnLeft()
  15.             return
  16.         end
  17.         turtle.turnLeft()
  18.     end
  19.     turtle.select(1)
  20.     turtle.dig()
  21.     turtle.select(3)
  22.     turtle.dropDown()
  23.     turtle.select(4)
  24.     turtle.dropDown()
  25. end
Add Comment
Please, Sign In to add comment