Advertisement
HamBrick327

mine.4

Jan 21st, 2022
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. t = turtle
  2.  
  3. i = 0
  4. q = 0
  5. a = true
  6.  
  7.  
  8. while i < 25 do
  9.     t.dig()
  10.     t.digUp()
  11.     t.digDown()
  12.     t.forward()
  13.     if i == 24 and a then
  14.         t.turnLeft()
  15.         t.dig()
  16.         t.forward()
  17.         t.turnLeft()
  18.         i = 0
  19.         a = false
  20.  
  21.     elseif i == 24 and not a then
  22.         t.turnRight()
  23.         t.dig()
  24.         t.forward()
  25.         t.turnRight()
  26.         i = 0
  27.         a = not a
  28.     end
  29.     t.refuel()
  30.     i = i + 1
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement