Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local robot = require("robot")
- local component = require("component")
- local inv = component.inventory_controller
- function mineDown()
- local result, type = robot.swingDown()
- if result == false and type == "block" then
- print("Bedrock reached")
- return false
- else
- robot.select(1)
- robot.placeDown()
- robot.select(5)
- inv.equip()
- robot.swingDown()
- inv.equip()
- robot.down()
- end
- end
- repeat
- mineDown()
- until false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement