TheKojent icon

flatRow

TheKojent | PRO | 02/01/13 03:12:11 AM UTC | 0 ⭐ | 170 👁️ | Never ⏰ | []
Lua |

380 B

|

None

|

0 👍

/

0 👎

--Flattens a row of tArgs length (inputted in console)
local tArgs = {...}
a = tonumber(tArgs[1])
b = 0
turtle.select(1)
while b < a do
  while turtle.forward() == false do
    turtle.dig()
  end
  b = b + 1
  turtle.placeDown()
  while turtle.detectUp() == true do
    turtle.digUp()
    turtle.up()
  end
  while turtle.detectDown() == false do
    turtle.down()
  end
end

Comments