Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require('func')
- local blockDown = turtle.detectDown()
- local blockFront = turtle.detect()
- local count = 16
- for count = 1, 1 do
- print('Entering the while')
- blockDown = turtle.detectDown()
- blockFront = turtle.detect()
- if (blockDown == true) then
- if (blockFront == false) then
- turtle.forward()
- else
- turtle.up()
- turtle.forward()
- end
- elseif (blockDown == false) then
- local inspectBlock, data = turtle.inspectDown()
- if (data.name == 'minecraft:water' or data.name == 'minecraft:lava') then
- escape(10, true)
- end
- turtle.down()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement