Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turtle.up()
- function light()
- turtle.select(2)
- turtle.placeDown()
- end
- function frame()
- x = 1
- while x <= 50 do
- turtle.dig()
- if x == 5 or x == 10 or x == 15 or x == 20 or x == 25 or x == 30 or x == 35 or x == 40 or x == 45 or x == 50 then
- light()
- turtle.forward()
- turtle.digUp()
- turtle.digDown()
- x = x +1
- else
- turtle.forward()
- turtle.digUp()
- turtle.digDown()
- x = x+1
- end
- end
- end
- function frameUp()
- frame()
- turtle.turnRight()
- os.sleep(2)
- frame()
- turtle.turnRight()
- frame()
- turtle.turnRight()
- frame()
- turtle.turnRight()
- turtle.down()
- end
- function tunnelRight()
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- frame()
- end
- function tunnelLeft()
- turtle.turnLeft()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.turnLeft()
- frame()
- end
- frameUp()
- print("framing done")
- print("tunnelling begining")
- turtle.up()
- turtle.turnLeft()
- tunnelRight()
- tunnelLeft()
- tunnelRight()
- tunnelLeft()
- tunnelRight()
- tunnelLeft()
- tunnelRight()
- tunnelLeft()
- tunnelRight()
- tunnelLeft()
- tunnelRight()
- tunnelLeft()
- tunnelRight()
- tunnelLeft()
- tunnelRight()
- tunnelLeft()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement