Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Welcome to BranchMine program!")
- print("place torches on slot 16")
- print("type how far you want to mine!")
- local input = nil
- local start = 0
- function clear()
- term.clear()
- term.setCoursorPos(1,1)
- end
- while input == nil do
- input = tonumber(read())
- if input == 0 then
- start = 1
- else
- start = input
- end
- if input == nil then
- print("Try again!")
- end
- end
- local intorch = nil
- local stop = 0
- while intorch == nil do
- print("type how many blocks bwetwen each torch placed")
- intorch = tonumber(read())
- if intorch == 0 then
- stop = 1
- else
- stop = intorch
- end
- if intorch == nil then
- print("Try again!")
- end
- end
- while input > 0 do
- shell.run("minefor",intorch)
- turtle.select(16)
- turtle.placeUp()
- turtle.select(1)
- input = input - 1
- end
Advertisement
Add Comment
Please, Sign In to add comment