Summarize:

Fireflies are attracted to long grasses and shrubbery. During the day they like to hide in the grass, and in the evening the like to perch on grass stems (especially the females). Allow the edges of your yard to grow long and allow the brush to build up. Only let your yard accumulate brush around the edges. Beware, though, these areas can also attract ticks. As forests, meadows, and fields are developed into shopping malls and other building, fireflies have fewer places to lay their eggs. You can attract fireflies by planting pine trees near your home. The canopies created by pine trees block out light that can interfere with mating, and the soft needles that fall to the ground create a perfect place for firefly larvae to grow. around your home. Fireflies are attracted to pollen and nectar. You can encourage them to hang out in your yard by planting flowers. Select a variety of local flowers to entice fireflies to visit you. Certain species of fireflies like to lay their eggs in rotten logs. The larvae then feast on the slugs, snails, and worms that are found in this habitat. You can attract fireflies by storing firewood in your yard. Stack the wood loosely to allow proper air flow. If fireflies do settle into a portion of your woodpile, try not to disturb that area. Keep the woodpile toward the edges of your yard. It may give off a smell or begin to look unsightly as it starts to rot. Avoid doing this if you live in an area prone to wildfires.
Let your grass grow. Plant pine trees, if they're native. Plant flowers Store wood and allow it to rot.