Tutorials/Charged creeper farming
Charged creeper farming is an easy method of creating charged creepers for later detonation to obtain a mob head. As charged creepers are only created when a creeper is struck by lightning, charged creeper farms can be difficult to build. The simplest design is the 'creeper field' design, where creepers are kept in cells below the ground in a flat area.
Creeper fields are the simplest charged creeper farm design, only consisting of a flat field with 'cells' below the ground with creepers inside. This farm works best with flat surroundings. Once built, this farm can be set up to supply the player with mob heads with minimal effort. This is usually achieved by placing trapdoors underneath the cells leading to a 'detonation chamber', a room where charged creepers blow up other mobs to obtain heads.
You can also increase the area that the lightning will need to strike in order for the creeper to get charged from 7x7 to13x13 by surrounding it with other mobs like this:
This method is called a lightning farm, and it’s very effective.
Automatic charged creeper farms provide a fast way to create charged creepers, however the downside is they are very expensive to build and are not recommended unless the player has a lot of time and resources.
Tridents can use the Channeling enchantment to direct lightning during a thunderstorm. To use this feature for a charged creeper farm, simply create an area for large collections of creepers to stay within the lightning's radius of 6×6×12. Then, simply throw your trident at the collection of creepers (make sure to hit at least one), and voilà - a bunch of charged creepers. It may be wise to fill the striking zone with water, so that there is no chance for fire to kill the creepers. Also, it is highly recommended to add the Loyalty enchantment onto the trident as well, to allow for easy retrieval of the trident.