Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Torch distance placement test
- ---attempting to write code for interval torch placement so as to not need to follow turtle and break or place torches.
- term.clear()
- term.setCursorPos(1,1)
- local distance = read()
- term.write("How long should the corridor be? ")
- for i = 1, distance do
- turtle.digDown()
- turtle.dig()
- while turtle.detectUp() do
- turtle.digUp()
- end
- for distance%3 = 0 do
- turtle.select(3)
- turtle.turnRight()
- turtle.turnRight()
- turtle.place()
- turtle.turnRight()
- turtle.turnRight()
- end
- turtle.forward()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement