What does a lightning rod do in Minecraft?

In Minecraft, a lightning rod is a block that may be put atop a structure or building to attract lightning strikes and prevent fires. As lightning strikes the rod, it is deflected to the ground rather than inflicting harm to neighboring buildings and blocks.