Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- args = {...}
- intDigDistance = args[1]
- local hasBlock, data
- for i = 1,intDigDistance,1
- do
- if(turtle.getFuelLevel()<2)
- then
- turtle.select(1)
- turtle.refuel()
- end
- hasBlock, data = turtle.inspect()
- if(hasBlock and data.name=="minecraft:deepslate_diamond_ore")
- then
- break
- end
- while(turtle.dig())
- do
- end
- turtle.forward()
- hasBlock, data = turtle.inspectUp()
- if(hasBlock and data.name=="minecraft:deepslate_diamond_ore")
- then
- break
- end
- turtle.digUp()
- hasBlock, data = turtle.inspectDown()
- if(hasBlock and data.name=="minecraft:deepslate_diamond_ore")
- then
- break
- end
- turtle.digDown()
- if(i%7==0)
- then
- turtle.select(2)
- turtle.placeDown()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement