In MN anyone injured during commission of a crime can NOT sue the homeowner.Not even close to the same thing!
There is a world of difference between a legal and approved device designed to stain stolen money and only in a controlled situation, controlled in that it is manually passed to a robber and done so in full view and control of just who is receiving it vs a rigged booby trap that is designed to HIT THE PERSON (ANY PERSON) and in an uncontrolled autonomous way that could easily involve an innocent person as an unintended target. Believe what you will and I fully expected someone to point at that but it is an entirely different thing than a rigged booby trap!
Rig up a dye gadget like what was suggested and it is AN ILLEGAL booby trap that could easily get you in serious trouble, call that county persecutor and see what they tell you! It's easy to argue such a point here on an internet forum but that comparison would get shot down in a heatbeat in a court of law!
For a true comparison a bank would have to, for example, rig up a dye bomb in ATM machines set to go off and hit the robber if the machine were to be tampered with or broken open! ATM machines are often a target but have any been set up to do such a thing or in any other way harm a thief? Obviously not and it would not be legal for them to do so just as the suggested dye trap is not legal and could easily lead to the person who set it being in deep trouble!