Niseg

simple farmer

Jan 28th, 2015
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.22 KB | None | 0 0
  1. local a
  2. local b
  3.  
  4. while true do
  5.  
  6.     a,b=turtle.inspect()
  7.   if not a then
  8.      turtle.place()
  9.   else
  10.     if b.metadata==7 then
  11.       turtle.dig()
  12.       turtle.place()
  13.     end
  14.   end
  15. sleep(5)
  16. turtle.turnRight()
  17. end
Advertisement
Add Comment
Please, Sign In to add comment