Advertisement
Post_maphone

Untitled

Nov 27th, 2020 (edited)
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. local distance = ...
  2. if distance ~= nil and turtle.getFuelLevel() > (distance*2 + 150) then
  3.     distance = tonumber(distance)
  4.     for i = 1, distance do
  5.         turtle.forward()
  6.         while not turtle.forward() do
  7.         turtle.dig()
  8.         turtle.digUp()
  9.         end
  10.     end
  11.     turtle.turnLeft()
  12.     turtle.turnLeft()
  13.     for i = 1, distance do
  14.         turtle.forward()
  15.     end
  16. else
  17.     print("add a valid distance or input more coal.")
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement