Channeling

Channeling is a trident enchantment that produces lightning.

Obtaining
Channeling is available from enchantment tables, raid drops, books obtained by fishing, minecart chests, dungeon chests, librarian villagers, and from chests found in Overworld non-village structures.

Usage
Channeling summons a lightning bolt when a mob is hit by a thrown trident if there is currently a thunderstorm occurring.

The mob must be exposed to the open sky for the enchantment to work. This enchantment allows the player to change creepers into charged creepers, villagers into witches, pigs into zombified piglins, and mooshrooms into their opposite color (red into brown and vice versa).

$$, Channeling doesn't affect mobs in some circumstances. A mob cannot be: in, in , in , in a , on , on a , on (if snow layer is 8), in a  or in a  while being hit with this enchantment. Mobs in minecarts and boats can be struck only if passive.

However, it should be noted that in the circumstances stated above, even though lightning cannot be summoned if the mob itself is hit by a Channeling trident, they are still affected by the lightning if it strikes nearby. For instance, if a Channeling trident hits an armor stand next to a creeper in water, the lightning is summoned as normal, and the creeper becomes charged from being in the affected radius of the lightning.

Channeling tridents thrown at lightning rods always create lightning without the need for a mob. Lightning created with a Channeling trident cannot be redirected into a lightning rod.

Lightning from a Channeling trident never spawns a skeleton trap horse.

Incompatibilities
Channeling and Riptide are mutually exclusive. If combined using commands, Riptide supersedes Channeling.

ID