Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- pastebin get gKUbhNpg 4x3secure
- print("Thank you for using the M^3 Broad Path Building Program! Place Torches in slot 1, and Path Blocks in 2-16")
- write "Enter distance you want to go:"
- distance = read()
- distance = distance/2
- hg = distance
- print("Starting in 3 seconds...")
- sleep(3)
- print("Tunneling...")
- t = 0
- local sslot = 1
- turtle.select(sslot)
- sslot = (sslot%16)+1
- turtle.select(sslot)
- turtle.getItemCount(sslot)
- function digg()
- turtle.dig()
- turtle.forward()
- end
- function wall()
- turtle.place()
- turtle.digUp()
- turtle.up()
- turtle.place()
- turtle.digUp()
- turtle.up()
- turtle.place()
- turtle.placeUp()
- turtle.down()
- turtle.down()
- end
- function turnAround()
- turtle.turnRight()
- turtle.turnRight()
- end
- function place()
- turtle.digUp()
- turtle.up()
- turtle.digUp()
- turtle.up()
- turtle.placeUp()
- turtle.down()
- turtle.down()
- turtle.placeDown()
- turtle.dig()
- turtle.forward()
- end
- function placeEnd()
- turtle.digUp()
- turtle.up()
- turtle.digUp()
- turtle.up()
- turtle.placeUp()
- turtle.down()
- turtle.down()
- turtle.placeDown()
- turtle.dig()
- end
- for x = 1,distance do
- turtle.select(sslot)
- digg()
- turtle.turnLeft()
- wall()
- turnAround()
- place()
- place()
- place()
- placeEnd()
- wall()
- turtle.turnLeft()
- digg()
- turtle.turnRight()
- wall()
- turnAround()
- place()
- place()
- place()
- placeEnd()
- wall()
- turtle.turnRight()
- hg = hg-1
- t = t+1
- if t == 3 then
- turtle.select(1)
- turtle.turnLeft()
- turtle.up()
- turtle.turnLeft()
- turtle.place()
- turtle.turnRight()
- turtle.down()
- turtle.turnRight()
- turtle.select(sslot)
- t = 0
- end
- while turtle.getItemCount(sslot) < 1 do
- sslot = (sslot%16)+1
- end
- turtle.select(sslot)
- print("")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement