Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dCount = 0
- bedrock = false
- slot = 1
- local function checkInventory()
- if turtle.getItemCount() < 1 then
- slot = slot + 1
- turtle.select(slot)
- end
- end
- turtle.select(slot)
- for x = 1,4 do
- turtle.up()
- dCount = dCount - 1
- end
- repeat
- for x = 1,4 do
- checkInventory()
- turtle.digUp()
- turtle.dig()
- turtle.digDown()
- if turtle.down() then
- dCount = dCount + 1
- success, bedrock = turtle.inspectDown()
- end
- end
- turtle.dig()
- repeat
- turtle.dig()
- until turtle.forward()
- turtle.turnLeft()
- turtle.turnLeft()
- checkInventory()
- turtle.place()
- turtle.turnLeft()
- turtle.turnLeft()
- for x = 1,3 do
- turtle.up()
- dCount = dCount - 1
- end
- until bedrock.name == "minecraft:bedrock"
- for x = 1,dCount do
- turtle.back()
- turtle.up()
- end
Add Comment
Please, Sign In to add comment