Advertisement
BipedSnowman

Wheat

Oct 10th, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.68 KB | None | 0 0
  1. while true do
  2.   turtle.select(16)
  3.   turtle.suckDown()
  4.   turtle.transferTo(2)
  5.   turtle.dropDown()
  6.   turtle.select(1)
  7.   while turtle.getItemCount(2)>0 do
  8.     turtle.select(1)
  9.     turtle.place()
  10.     print("Placing seed")
  11.     turtle.select(2)
  12.     if turtle.place()==true then
  13.       turtle.place()
  14.       print("Applying bonemeal")
  15.     else
  16.       turtle.dig()
  17.       print("Harvesting wheat")
  18.       turtle.turnRight()
  19.       turtle.select(3)
  20.       turtle.drop()
  21.       print("Dropping off wheat")
  22.       turtle.select(4)
  23.       turtle.transferTo(1)
  24.       print("Restocking seeds")
  25.       turtle.drop()
  26.       print("Dropping off seeds")
  27.       turtle.turnLeft()
  28.     end
  29.   end
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement