Help writing checks for mining script

That file contains the following text:

mining modules (inactive): 1(0)

This means that one mining module was detected. So this brings us closer to why “it will only activate 1 laser” as you wrote.