SHARE
TWEET

Untitled

a guest Jul 19th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. length = read("*n")
  2. width = read("*n")
  3.  
  4. for i = 1, width, 1 do
  5.   for j = 1, length, 1 do
  6.     while turtle.getFuelLevel() < 1 do
  7.       turtle.refuel()
  8.       os.sleep(0.05)
  9.     end
  10.     while turtle.dig() do
  11.     end
  12.     turtle.forward()
  13.     height = 0
  14.     while turtle.detectUp() do
  15.       turtle.digUp()
  16.       if turtle.up() then
  17.         height = height + 1
  18.       end
  19.     end
  20.     for k = height, 0, -1 do
  21.       turtle.down()
  22.     end
  23.   end
  24.   if i % 2 == 1 then   
  25.     turtle.turnLeft()
  26.   else
  27.     turtle.turnRight()
  28.   end
  29.   while turtle.dig() do
  30.   end
  31.   turtle.forward()
  32.   if i % 2 == 1 then
  33.     turtle.turnLeft()
  34.   else
  35.     turtle.turnRight()
  36.   end
  37. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top