Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getvar(text)
- term.clear()
- term.setCursorPos(1,1)
- print(text)
- var = read()
- return var
- end
- torch = getvar("use torches? y/n")
- if torch == "y" then
- everyblocks = tonumber(getvar("place torch every how many blocks?"))
- else
- everyblocks = 1
- end
- looksides = getvar("look for ore on sides? y/n")
- for p=1, everyblocks do
- turtle.dig()
- turtle.forward()
- if looksides == "y" then
- turtle.turnRight()
- nope = false
- for i=1,3 do
- turtle.select(i)
- if turtle.compare() then
- nope = true
- end
- if i==3 and nope == false then
- turtle.dig()
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment