Advertisement
chibudesu

Turtle Farm

Feb 17th, 2014
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. local tArgs = { ... }
  2. local wait_time = 30
  3. local placed = false
  4.  
  5. if #tArgs > 0 then
  6.   wait_time = tonumber(tArgs[1])
  7. end
  8.  
  9. while true do
  10.   sleep(wait_time)
  11.  
  12.   for d=1,4 do
  13.     turtle.select(1)
  14.     turtle.dig()
  15.  
  16.     placed = false
  17.     for i=1,16 do
  18.       turtle.select(i)
  19.       if (not placed) then
  20.         placed = turtle.place()
  21.       end
  22.       turtle.dropDown()
  23.     end
  24.     turtle.turnRight()
  25.   end
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement