Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function forward(nb)
- i = 0
- while i<nb do
- local success, data = turtle.inspect()
- if success then
- turtle.dig()
- turtle.forward()
- else
- turtle.forward()
- end
- i = i+1
- end
- end
- function up(nb)
- i = 0
- while i<nb do
- local success, data = turtle.inspect()
- if success then
- turtle.digUp()
- turtle.up()
- else
- turtle.up()
- end
- i = i+1
- end
- end
- function down(nb)
- i = 0
- while i<nb do
- local success, data = turtle.inspect()
- if success then
- turtle.digDown()
- turtle.down()
- else
- turtle.down()
- end
- i = i+1
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement