Does not work on Pocket edition!
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 only farm
When trapdoors are placed on a 2 block high ceiling, it lowers the height to 1 13⁄16 blocks high. This is tall enough to allow creepers to spawn, but short enough to prevent other mobs such as zombies and skeletons. In Bedrock Edition, this mechanic is somewhat buggy and may not work. Some Creeper farms also can spawn Spiders, so be aware of that.
You can make a creeper farm by placing a spawning platform in an ocean to maximize spawning rates. Make a 2 block wall and the roof has to be trapdoors. Place cats in boats in the end of the farm to scare the creepers away and it will direct the creepers to the other end in which you will have a water stream guiding the creepers to a kill mechanism which can be manual, with campfires, magma blocks....
Another way to get the creepers to move into a killing zone it to place a snow golem at one end. These snow golems must be at least 3 blocks away from all creepers otherwise the creepers explode, killing the golems. Snow golems are the only creature that players can create that naturally attack creepers.
|Creeper Only Farm (Working in 1.15.2+) (view on YouTube)|
|Creeper only farm (view on YouTube)|
|Minecraft bedrock creeper only farm (view on YouTube)|
Charged creeper farm
This farm works with a general mob farm attached to a filter to obtain only the creepers. It then gives each creeper its own 'cell.' The system detects when lightning strikes a cell and then moves the charged creeper into a separate area.
This type of farm is very expensive to build and is not recommended unless you have a lot of time and resources. It is probably better to create a creeper only farm and use a channeling trident to charge the creepers. The mob filter however may be interesting for platforms which do not have reliable creeper only farms.
|Charged creeper farm (view on YouTube)|
Charged creepers are necessary to obtain mob heads (except for Wither Skeletons'). Charged creeper farming is one way to create charged creepers. Since the introduction of Channeling tridents, these methods have mostly become obsolete. However, they may still be useful in some editions.
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.
You can use a trident with the Channeling enchantment to summon lightning during a thunderstorm. Simply create a collection area for a Creeper farm that is small enough that the creepers will be within 4 blocks of the lightning strike. Then, wait for a thunderstorm and throw a channeling trident at one of the creepers. Note that the creepers must be exposed to the sky for the Channeling enchantment to work. It is recommended to have the Loyalty enchantment on the trident to allow for easy retrieval.
Creeper fields are one of the simplest charged creeper farm designs. They consist of a flat field with 'cells' dug into ground containing creepers. This kind of farm is easiest to create on flat surroundings. Once built, the farm can be set up to supply mob heads with minimal effort. This can be achieved by placing trapdoors underneath the cells leading to a 'detonation chamber,' a room for blowing up other mobs with the charged creepers to obtain heads.
It is possible to make this type of farm more efficient by surrounding the creeper with other mobs. If there is an entity within a 3x3 area of the lightning strike, the lighting will strike at that entity instead. Manipulating lightning like this is known as "lightning farming." For more information, see lightning mechanics.
|Lightning farming (view on YouTube)|