Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- torchDist = 10
- --Start of Torch stuff
- function placeTorch()
- print("Placing torch...")
- if turtle.getItemCount(3) == 1 then
- turtle.select(4) --Considering adding a method of returning home if no torches present in second slot
- turtle.place()
- else
- turtle.select(3)
- turtle.place()
- turtle.select(1)
- end
- torchDist = 1
- end
- function needTorch()
- if torchDist == 10 then
- placeTorch()
- end
- end
- end
- print("torchs in slot 15")
- local x = 0
- term.write("How long?:")
- x = read()
- for i = 1, x do
- for i = 1, 5 do
- turtle.dig()
- turtle.digDown()
- turtle.digUp()
- turtle.forward()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment