Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while table.pack(gps.locate(5))[3] ~= -147 do
- if turtle.getFuelLevel() ~= "unlimited" and turtle.getFuelLevel() < 1 then
- turtle.refuel()
- end
- success, data = turtle.inspectUp()
- index = 0
- while success and (data.name ~= "minecraft:air") do
- turtle.digUp()
- turtle.up()
- index = index + 1
- success, data = turtle.inspect()
- end
- if table.pack(turtle.inspect())[2].name ~= "minecraft:air" then
- turtle.dig()
- end
- turtle.forward()
- if index ~= 0 then
- for i = 0, index - 1, 1 do
- turtle.digDown()
- turtle.down()
- end
- end
- print('moved foward')
- end
Add Comment
Please, Sign In to add comment