TheKojent icon

floorTurtle

TheKojent | PRO | 02/01/13 03:15:22 AM UTC | 0 ⭐ | 187 👁️ | Never ⏰ | []
Lua |

460 B

|

None

|

0 👍

/

0 👎

--Replaces a floor of 16x64 area
function replaceRow()
  for i = 1,63 do
    turtle.forward()
    turtle.digDown()
    turtle.placeDown()
  end
end
 
for j = 1,8 do
  turtle.select((2*j-1))
  turtle.digDown()
  turtle.placeDown()
  replaceRow()
  turtle.turnRight()
  turtle.forward()
  turtle.turnRight()
  turtle.select((2*j))
  turtle.digDown()
  turtle.placeDown()
  replaceRow()
  turtle.turnLeft()
  turtle.forward()
  turtle.turnLeft()
end

Comments