Advertisement
Susceptance

mv

Apr 26th, 2022 (edited)
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. tutelName = 'computercraft:turtle_normal'
  2.  
  3. function move(count)
  4.     for i=1, count do
  5.         for i=1, 2 do
  6.             success, bData = turtle.inspect()
  7.             if bData.name != tutelName then
  8.                 break
  9.             end
  10.         end
  11.  
  12.         while turtle.detect() do
  13.             if turtle.dig() then
  14.                 sleep(0.5)
  15.             end
  16.         end
  17.         turtle.forward()
  18.     end
  19. end
  20. move(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement