Question: how to enchant a trident with lightning?
Answer: You can add the Channeling enchantment to any trident using an enchanting table, anvil, or game command. Then throw the enchanted trident at a mob in the rain, and watch a lightning bolt strike the mob just after the trident hits it. The maximum level for the Channeling enchantment is Level 1.