Advertisement
hyndgrinder

mow

Nov 16th, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. while true do
  2. turtle.select(1)
  3.  
  4. mow=turtle.digDown()
  5.   if mow==true then
  6.     print("I cut something")
  7.     drop=turtle.drop()
  8.     if drop==true then
  9.       print("I moved it ahead")
  10.     else
  11.       print("I couldn't drop it")    
  12.     end
  13.   else
  14.     flower=turtle.detectDown()
  15.     print(flower)
  16.     if flower == true then
  17.         os.loadAPI("sendbreak")
  18.     else
  19.         print("nothing to mow")
  20.     end
  21.   end
  22. sleep(0.2)
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement