Terraria item ID 2181. Terraria 1.4.5.7.
Butterfly jars are pieces of decorative furniture created by combining a butterfly, captured with a Bug Net, with a Bottle. By throwing a butterfly jar into Shimmer, it can be converted back into its ingredients, gaining back the butterfly as an item. Butterfly jars function the same way as cages for other critters. They have an animated sprite when placed down, and the butterflies will fly around inside the jars.
Crafted at By Hand. Ingredients:
Description from the Terraria Wiki.