Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local x, y = ...
- xPos, yPos = 0, 0
- turtle.select(1)
- while xPos < tonumber(x) do
- if turtle.getItemCount(turtle.getSelectedSlot()) == 0 then
- for i = 2, 16 do
- turtle.select(i)
- turtle.transferTo(i - 1)
- end
- turtle.select(1)
- end
- turtle.digDown()
- turtle.placeDown(1)
- if yPos < tonumber(y) - 1 then
- turtle.forward()
- yPos = yPos + 1
- elseif xPos < tonumber(x) then
- if math.fmod(xPos, 2) == 0 then
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- else
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
- xPos = xPos + 1
- yPos = 0
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement