Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.write("how many blocks between torches?")
- local binput = tonumber( read() )
- term.clear()
- --i wanted a multiplier for how many torches to put down time how many spaces between torches.
- --term.write("How many cycles?")
- --local tinput = tonumber( read() )
- --term.clear()
- term.write("Thank You!")
- --dig enough space for steve to step through
- function mine()
- turtle.dig()
- turtle.digUp()
- end
- --Check if required space for steve is available.
- function moveCheck()
- turtle.forward()
- turtle.up()
- turtle.down()
- end
- --Place torch.
- function torch() --Place torch.
- turtle.select(16)
- turtle.place()
- end
- --Turn around.
- function turnAround()
- turtle.turnLeft()
- turtle.turnLeft()
- end
- function placeTorch()
- turnAround()
- torch()
- turnAround()
- end
- --Move until hit block then mine.
- for n = 1, binput + 1 do
- while not moveCheck() do
- mine()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement