As Ilu posted above, attackbox is sufficient for landmines.
Though for your scripted method, the detection function is slightly different than mine. The biggest difference is in IDLE. In your IDLE, the function is delcared once so the detection is once every 3x8 centiseconds.
In my IDLE, the...