Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- road = 0
- tunnel = 0
- torch_in_tunnel = 0
- for road=1, 15 do
- for j=1, road do
- turtle.forward()
- end
- turtle.turnLeft()
- for tunnel=1, 30 do
- turtle.digUp()
- turtle.dig()
- turtle.digDown()
- while turtle.detectUp() do
- turtle.digUp()
- end
- if ((road == 1) or (road == 5) or (road == 10) or (road == 14)) then
- if ((torch_in_tunnel == 5) or (torch_in_tunnel == 10) or (torch_in_tunnel == 15) or (torch_in_tunnel == 20) or (torch_in_tunnel == 25)) then
- turtle.select(16)
- turtle.placeDown()
- end
- end
- torch_in_tunnel = torch_in_tunnel + 1
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.select(15)
- while turtle.compare() == false do
- while turtle.detect() == true do
- turtle.dig()
- end
- turtle.forward()
- end
- turtle.turnRight()
- while turtle.detect() == false do
- turtle.forward()
- end
- for l=1 ,14 do
- turtle.select(l)
- turtle.drop()
- end
- turtle.turnRight()
- turtle.turnRight()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement