Vircomore

TurtleNexus

Mar 17th, 2014
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. while true do
  2.     if os.time()==0600 or os.time()==1800 then
  3.     turtle.dig()
  4.     end
  5.     if os.time() >= 0600 and os.time() < 1800 then
  6.     turtle.select(1)
  7.     if turtle.getItemCount(1)>=1 then
  8.         turtle.place()
  9.     end
  10.     else
  11.     turtle.select(2)
  12.     if turtle.getItemCount(2)>=1 then
  13.         turtle.place()
  14.     end
  15.     end
  16.     sleep(0.5)
  17. end
Advertisement
Add Comment
Please, Sign In to add comment