Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2015
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. local component = require("component")
  2. local inv = component.inventory_controller
  3.  
  4. function mineDown()
  5. repeat
  6. local result, type = robot.swingDown()
  7. if result == false and type == "block" then
  8. print("Bedrock reached")
  9. return false
  10. else
  11. robot.select(1)
  12. robot.placeDown()
  13. robot.select(5)
  14. inv.equip()
  15. robot.swingDown()
  16. inv.equip()
  17. robot.down()
  18. end
  19. until false
  20. end
  21.  
  22. mineDown()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement