Minecraft wiki entry for Creeper_farming, associated text: In order for a creeper to become charged, lightning must strike within a 4x4 area of it. Charged creepers despawn just like regular creepers, so it may be prudent to nametag any creepers that you wish to keep for an extended period of time.