Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turtle.refuel()
- success, data = turtle.inspect()
- while true do
- if success then
- print("found block: ", data.name)
- else
- print("found air")
- end
- counter = 0
- while not success or data.name == "minecraft:cobblestone" do
- turtle.turnLeft()
- success, data = turtle.inspect()
- counter += 1
- if counter == 4 then
- break
- end
- end
- -- should be a block we'd want to mine
- turtle.dig()
- turtle.forward()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement