Use this with the 2nd quickest clock lined to a command_block
Write on the command block:
If you want no need for 'r' in that box,the 'ExplosionPower' is any number wanted recomended at least 1-5 for a small destruction,if you wanted just write the (/gamerule MobGreifing:false) for no destructions