Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- pastebin get jZp85wb7 drill
- -- pastebin run jZp85wb7
- function dig()
- return turtle.dig()
- end
- local firsthit = false
- local fill = 0
- local drill=true
- local depth=0
- while drill do
- temp, data = turtle.inspectDown()
- if data.name == "minecraft:bedrock" then
- for i=0,depth-1 do
- turtle.up()
- if i >= (depth - (fill+2)) then
- turtle.select(2)
- turtle.placeDown()
- end
- end
- drill = false
- for k=2,16 do
- turtle.select(k)
- turtle.drop()
- end
- else
- if not turtle.detectDown() then
- if not firsthit then
- firsthit=true
- fill = depth + 1
- end
- end
- turtle.digDown()
- if turtle.down() then depth = depth + 1 end
- for j=1,4 do
- temp, block = turtle.inspect()
- if block.name == "minecraft:obsidian" then dig()
- elseif block.name == "minecraft:diamond_ore" then dig()
- elseif block.name == "minecraft:diamond_block" then dig()
- elseif block.name == "minecraft:redstone_ore" then dig()
- elseif block.name == "minecraft:lit_redstone_ore" then dig()
- elseif block.name == "minecraft:emerald_ore" then dig()
- elseif block.name == "minecraft:emerald_block" then dig()
- elseif block.name == "minecraft:gold_ore" then dig()
- elseif block.name == "minecraft:iron_ore" then dig()
- elseif block.name == "minecraft:coal_ore" then dig()
- elseif block.name == "minecraft:redstone_block" then dig()
- elseif block.name == "minecraft:quartz_ore" then dig()
- elseif block.name == "minecraft:quartz_block" then dig()
- elseif block.name == "minecraft:diamond_block" then dig()
- elseif block.name == "BiomesOPlenty:gemOre" then dig()
- elseif block.name == "IC2:blockOreCopper" then dig()
- elseif block.name == "IC2:blockOreTin" then dig()
- elseif block.name == "IC2:blockOreUran" then dig()
- elseif block.name == "IC2:blockOreLead" then dig()
- elseif block.name == "TConstruct:SeardBrick" then dig()
- elseif block.name == "TConstruct:GravelOre" then dig()
- elseif block.name == "UndergroundBiomes:igneous_oreRedstone" then dig()
- elseif block.name == "UndergroundBiomes:metamorphic_oreRedstone" then dig()
- elseif block.name == "UndergroundBiomes:sedimentary_oreRedstone" then dig()
- elseif block.name == "UndergroundBiomes:igneous_oreCoal" then dig()
- elseif block.name == "UndergroundBiomes:metamorphic_oreCoal" then dig()
- elseif block.name == "UndergroundBiomes:sedimentary_oreCoal" then dig()
- elseif block.name == "UndergroundBiomes:igneous_oreDiamond" then dig()
- elseif block.name == "UndergroundBiomes:metamorphic_oreDiamond" then dig()
- elseif block.name == "UndergroundBiomes:sedimentary_oreDiamond" then dig()
- elseif block.name == "UndergroundBiomes:igneous_oreLapis" then dig()
- elseif block.name == "UndergroundBiomes:metamorphic_oreLapis" then dig()
- elseif block.name == "UndergroundBiomes:sedimentary_oreLapis" then dig()
- elseif block.name == "UndergroundBiomes:igneous_oreEmerald" then dig()
- elseif block.name == "UndergroundBiomes:metamorphic_oreEmerald" then dig()
- elseif block.name == "UndergroundBiomes:sedimentary_oreEmerald" then dig()
- elseif block.name == "UndergroundBiomes:igneous_oreGold" then dig()
- elseif block.name == "UndergroundBiomes:metamorphic_oreGold" then dig()
- elseif block.name == "UndergroundBiomes:sedimentary_oreGold" then dig()
- elseif block.name == "UndergroundBiomes:igneous_oreIron" then dig()
- elseif block.name == "UndergroundBiomes:metamorphic_oreIron" then dig()
- elseif block.name == "UndergroundBiomes:sedimentary_oreIron" then dig()
- elseif block.name == "harvestcraft:salt" then dig()
- elseif block.name == "appliedenergistics2:tile.OreQuartz" then dig()
- elseif block.name == "appliedenergistics2:tile.OreQuartzCharged" then dig()
- end
- turtle.turnLeft()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement