You want it to spawn 4 zombies whenever the mob have 80% hp? check SIlvani (the champion) she spawn pixies on meleehit, this is a modified version (untested) it should spawn 2 to 4 zombies at 80% hp ,10% chance
//add this
double remainingHPPercentage = (double)Hits / HitsMax;
//add this...