Advertisement
sinkir

lua turtle M2NPV

May 23rd, 2013
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1.  
  2.  
  3. stop=false
  4. if(turtle.detect()==true)then
  5.     flag = true
  6. else
  7.     flag = false
  8. end
  9. while(stop==false)do
  10.     if(redstone.getInput("back")==true)then
  11.         if(flag==false)then
  12.             turtle.place()
  13.             flag=true
  14.         else
  15.             turtle.dig()
  16.             flag=false
  17.         end
  18.         while(redstone.getInput("back")==true)do
  19.             sleep(0.2)
  20.         end
  21.     end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement