View difference between Paste ID: hwBLLjru and BsKBDgW3
SHOW: | | - or go back to the newest paste.
1-
local tArgs = { ... }
1+
2-
if #tArgs ~= 1 then
2+
3-
    print( "Usage: pulse <length>" )
3+
4-
    return
4+
5-
end
5+
6
for i = 1, 9 do
7
  rs.setOutput("front", true)
8
  sleep(.8)
9-
local current = 1
9+
10
  sleep(waitOne)
11-
local length = tonumber( tArgs[1] )
11+
12-
if length < 1 then
12+
  sleep(.8)
13-
    print( "Mining distance must be positive" )
13+
14-
    return
14+
15-
end
15+