Game version

Lightning Bug in Terraria

Terraria item ID 2004. Terraria 1.4.5.7.

The Lightning Bug is a harmless Hardmode critter that gives off a tiny amount of light, similarly to the Firefly. It spawns on Hallowed grass blocks during the night. The Lightning Bug has only 5 health and no defense, and can be damaged by other enemies and players. The Lightning Bug can be caught with any Bug Net to be carried around in the inventory and released later, or crafted into animated decorative furniture (Lightning Bug in a Bottle). Once crafted, the Lightning Bug cannot be released again, unless the furniture item is de-crafted via Shimmer(Desktop, Console and Mobile versions).

What Lightning Bug is used to craft

Description from the Terraria Wiki.

Dungeon Guardian: Terraria crafting trees for every item