TheKojent

floorTurtle

Jan 31st, 2013
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. --Replaces a floor of 16x64 area
  2. function replaceRow()
  3.   for i = 1,63 do
  4.     turtle.forward()
  5.     turtle.digDown()
  6.     turtle.placeDown()
  7.   end
  8. end
  9.  
  10. for j = 1,8 do
  11.   turtle.select((2*j-1))
  12.   turtle.digDown()
  13.   turtle.placeDown()
  14.   replaceRow()
  15.   turtle.turnRight()
  16.   turtle.forward()
  17.   turtle.turnRight()
  18.   turtle.select((2*j))
  19.   turtle.digDown()
  20.   turtle.placeDown()
  21.   replaceRow()
  22.   turtle.turnLeft()
  23.   turtle.forward()
  24.   turtle.turnLeft()
  25. end
Advertisement
Add Comment
Please, Sign In to add comment