well the way i whas going is a bit different as i see here.
for one, i dont want players to be immortal, everyone dies, its part of the game. i just want a couple of days, (real life days) of raid immunity, onley there buildings, (specidicly building parts, dont want new players put invincible baricades everywhere) so that they can be killed, and lose stuff, but they have a safe haven in there house for a day or 2. it gives ppl the chance to build bigger, atm after about 2 weeks of non wipe, every noob players house is raided every night. new house pops up, next morning its already raided ...
in short:
player still gets dmg
buildings are a few day, unbreakable.
either a command to check if the house is invincible, or it automaticly gives the explosive back.