Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local robot = require("robot");
- function mineForward() do
- robot.swing()
- robot.forward()
- robot.swingUp()
- if not robot.detectDown() then
- robot.placeDown()
- end
- if not robot.detectDown() then
- io.write("ERROR: place failed!")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement