Minecraft wiki entry for Zombified_Piglin, associated text: A zombified piglin spawns when lightning strikes within 4 blocks of a pig. If the pig is a piglet, it then transforms into a baby zombified piglin.