What do lightning rods do in minecraft?

Lightning rods in Minecraft attract lightning strikes, diverting them away from adjacent constructions and redirecting them to the rod.