Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function tap()
- turtle.dig()
- for i = 1,7 do
- turtle.up()
- turtle.dig()
- end
- for i = 1,7 do
- turtle.down()
- end
- end
- function edge()
- for i = 1,3 do
- turtle.forward()
- turtle.turnRight()
- tap()
- turtle.turnLeft()
- turtle.forward()
- end
- end
- function forward(x)
- for l = 1,x do
- turtle.forward()
- end
- end
- function corridor()
- for j = 1,3 do
- turtle.forward()
- turtle.turnRight()
- tap()
- turtle.turnLeft()
- turtle.turnLeft()
- tap()
- turtle.turnRight()
- turtle.forward()
- end
- end
- local tArgs = { ... }
- loop = tonumber(tArgs[1])
- for count = 1,loop do
- turtle.select(1)
- for k = 1,4 do
- edge()
- turtle.turnRight()
- end
- forward(2)
- turtle.turnRight()
- corridor()
- turtle.turnLeft()
- forward(2)
- turtle.turnLeft()
- corridor()
- turtle.turnRight()
- forward(2)
- turtle.turnRight()
- forward(2)
- turtle.turnRight()
- corridor()
- turtle.turnLeft()
- forward(2)
- turtle.turnLeft()
- corridor()
- turtle.turnLeft()
- forward(4)
- turtle.turnLeft()
- forward(6)
- for i = 1,16 do --Clears inventory
- turtle.select(i)
- turtle.drop()
- end
- turtle.turnRight()
- turtle.turnRight()
- end
Advertisement
Add Comment
Please, Sign In to add comment