Firefly

From Terraria Wiki
Jump to navigation Jump to search
Firefly
  • Firefly item sprite
Auto-use
Stack digit 9.pngStack digit 9.pngStack digit 9.pngStack digit 9.png
Statistics
Type
Bait Power20%
Consumable✔️
Use time15 (Very fast)
RarityRarity level: 1 (Desktop, Console and Mobile versions)
Rarity level: 0 (Old-gen console and 3DS versions)
Sell3 SC (Desktop, Console and Mobile versions)
No value (Old-gen console and 3DS versions)
Research5 required

The Firefly is a harmless critter that gives off a tiny amount of light. Fireflies will spawn near grass on the surface at night, except inside houses. Their spawn rate will be randomly set everyday, making their spawn amount varying greatly each night.

The Firefly has only 5 health and no defense, and can be damaged by other enemies and players.

The Firefly can be caught with any Bug Net to be carried around in the inventory and released later, or crafted into animated decorative furniture (Firefly in a Bottle). Once crafted, the Firefly cannot be released again, unless the furniture item is de-crafted via Shimmer(Desktop, Console and Mobile versions).

The Firefly can be used as bait for fishing, with 20% bait power.

The Firefly can be spawned by the Firefly Statue, however statue-spawned critters cannot be caught with any Bug Net, and will disappear in a puff of smoke when the player attempts to do so.

Its Hallow counterpart is the Lightning Bug.

Crafting

Used in

ResultIngredientsCrafting station
Firefly in a BottleFirefly in a BottleBy Hand
Firefly StatueFirefly Statue(Desktop, Console and Mobile versions)Heavy Work BenchHeavy Work Bench(Desktop, Console, Old-gen console and Mobile versions) and Ecto Mist(Desktop, Console and Mobile versions)
Wandering GetaWandering Geta(Desktop, Console and Mobile versions)LoomLoom
Wandering JingasaWandering Jingasa(Desktop, Console and Mobile versions)
Wandering YukataWandering Yukata(Desktop, Console and Mobile versions)

Notes

  • The spawn rate of Fireflies/Lightning Bugs are set to a random value at every dusk (7:30 PM), or each time the world is loaded, making them spawn at different amounts every night. They will be more common in Celebrationmk10(Desktop, Console and Mobile versions) worlds. See below for the detailed spawn condition.
    • At every dusk (7:30 PM), or each time the world is loaded, the spawn rate of Fireflies/Lightning Bugs are set to a random value. Below is the detailed info:[1]
      • For Fireflies/Lightning Bugs, there are three related parameters: fireFlyChance, the spawn rate of these when no town NPCs are around; fireFlyFriendly, the spawn rate of these when town NPCs are around; and fireFlyMultiple, the chance for multiple of these spawning at the same time.
    These parameters are set in the following way:
    • First, 1/9 (11.11%) chance: fireFlyChance = 5–9, fireFlyFriendly = 1–3, fireFlyMultiple = 3–7.
    • If this failed, then 1/3 (33.33%) chance: fireFlyChance, fireFlyFriendly, fireFlyMultiple all set to 999999 (effectively preventing them to spawn).
    • If both failed, then: fireFlyChance = 10–59, fireFlyFriendly = 2–14, fireFlyMultiple = 6–29.
    • Then, if the world is a Celebrationmk10 world, fireFlyChance is divided by 2. If the value is lower than 1 after dividing, then set it to 1.
    After these parameters are set, they will be used in spawning. Note that the following chances are only related to the respective critter and for reference only, they do not account for other spawns:[2]
    • Fireflies/Lightning Bugs can only spawn at night, when the player is on surface, is not in a Graveyard(Desktop, Console and Mobile versions), and the wind speed is lower than 20 mph.
    • Fireflies spawn on regular grass and both kinds of mowed grasses, while Lightning Bugs spawn on Hallowed grass.
    • There is a 1/fireFlyChance or 1/fireFlyFriendly chance for these to spawn, depending on whether the player is in a town. Then, there are four individual 1/fireFlyMultiple chances for an extra Firefly/Lightning Bug to spawn. As a result, they can appear in groups of 1–5.
    • Lavaflies(Desktop, Console and Mobile versions), which may seem similar to Fireflies, uses a slightly different spawning mechanic:[3]
    • They only spawn at night in Underworld. One Lavafly will always be spawned, and there are four individual 1/fireFlyMultiple chances for an extra Lavafly to spawn. As a result, they can appear in groups of 1–5.
  • Trivia

    • Like Lavaflies, Fireflies are difficult to see at night at high resolutions, appearing as a blinking speck on the screen.
    • The BestiaryBestiary entry for the Firefly: "Appears at night in calm locations, illuminating the sky with strobing green light. Fish are fairly attracted to these."

    History

    • 3DS-Release: Introduced with the ability to use it as bait.

    References

    1. Information taken from the Desktop version Desktop 1.4.4.6 source code, methods setFireFlyChance() in Terraria.NPC.cs, UpdateTime_StartNight() in Terraria.Main.cs, and LoadWorld() in Terraria.IO.WorldFile.cs. There may be inaccuracies, as the current Desktop version Desktop version is 1.4.4.9.
    2. Information taken from the Desktop version Desktop 1.4.4.6 source code, method SpawnNPC() in Terraria.NPC.cs. There may be inaccuracies, as the current Desktop version Desktop version is 1.4.4.9.
    3. Information taken from the Desktop version Desktop 1.4.4.6 source code, method SpawnNPC_SpawnLavaBaitCritters. There may be inaccuracies, as the current Desktop version Desktop version is 1.4.4.9.