local robot = require("robot") local arg = ... local function mine(count) for i = 1, count do robot.swing() robot.up() robot.swing() robot.down() robot.forward() end end mine(arg)