Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lenHoriz = 5
- lenVert = 10
- tunnelHeig = 5
- function placeHorizontalBackwards()
- for x=1,lenHoriz do
- turtle.placeDown()
- turtle.forward()
- end
- end
- function placeHorizontal()
- turtle.turnRight()
- for x = 1,lenHoriz do
- turtle.placeDown()
- turtle.forward()
- end
- end
- function returnLeft()
- turtle.turnLeft()
- turtle.turnLeft()
- for x = 1,lenHoriz do
- turtle.forward()
- end
- turtle.turnRight()
- end
- function placeVert()
- turtle.turnLeft()
- for x = 1,tunnelHeig do
- turtle.place()
- turtle.up()
- end
- turtle.up()
- turtle.turnRight()
- placeHorizontal()
- turtle.down()
- for x=1,tunnelHeig do
- turtle.down()
- turtle.placeUp()
- end
- turtle.turnLeft()
- turtle.turnLeft()
- placeHorizontalBackwards()
- end
- function sort()
- if turtle.getItemCount(turtle.getSelectedSlot()) < 1 then
- k = turtle.getSelectedSlot()
- k = k + 1
- turtle.select(k)
- end
- end
- for i = 1,lenVert do
- placeVert()
- turtle.turnRight()
- turtle.forward()
- sort()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement