Lightning Bug
Jump to navigation
Jump to search

Lightning Bug

Statistics
Type | |
---|---|
Environment | |
AI Type | Firefly AI |
Damage | 0 |
Max Life | 5 |
Defense | 0 |
KB Resist | 0% |
Sounds
Hurt | |
---|---|
Killed |
- Internal NPC ID: 358
Not to be confused with Etherian Lightning Bug.
Lightning Bugs are harmless critters that spawn during the night on Hallowed grass blocks. Lightning Bug has only 5 health and no defense, and can be damaged by other enemies and players.
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.
Lightning Bug can be used as bait for fishing, with 35% bait power.
Lightning Bug 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 regular counterpart is the Firefly.
Crafting
Used in
Result | Ingredients | Crafting station |
---|---|---|
![]() | By Hand | |
![]() | ![]() |
Notes
- Lightning Bugs as well as Fireflies spawn at a higher rate on nights during a New Moon.Verify
- 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:
, the spawn rate of these when no town NPCs are around;fireFlyChance
, the spawn rate of these when town NPCs are around; andfireFlyFriendly
, the chance for multiple of these spawning at the same time.fireFlyMultiple
- For Fireflies/Lightning Bugs, there are three related parameters:
- These parameters are set in the following way:
- First,
11.11*1/9 (11.11%) chance:
= 5–9,fireFlyChance
= 1–3,fireFlyFriendly
= 3–7.fireFlyMultiple
- If this failed, then
33.33*1/3 (33.33%) chance:
,fireFlyChance
,fireFlyFriendly
all set to 999999 (effectively preventing them to spawn).fireFlyMultiple
- If both failed, then:
= 10–59,fireFlyChance
= 2–14,fireFlyFriendly
= 6–29.fireFlyMultiple
- If this failed, then
- Then, if the world is a Celebrationmk10 world,
is divided by 2. If the value is lower than 1 after dividing, then set it to 1.fireFlyChance
- First,
- 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, 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
or1/fireFlyChance
chance for these to spawn, depending on whether the player is in a town. Then, there are four individual1/fireFlyFriendly
chances for an extra Firefly/Lightning Bug to spawn. As a result, they can appear in groups of 1–5.1/fireFlyMultiple
- They only spawn at night in Underworld. One Lavafly will always be spawned, and there are four individual
chances for an extra Lavafly to spawn. As a result, they can appear in groups of 1–5.1/fireFlyMultiple
- They only spawn at night in Underworld. One Lavafly will always be spawned, and there are four individual
Tips
- Similar to Fireflies, they are very useful as bait due to the large quantities that can be obtained per night. Note that they only spawn in The Hallow, which makes them Hardmode-exclusive.
- However, they will still spawn if The Hallow is created in a pre-Hardmode world, making them the only NPC to do so.
Trivia
- Although it may seem as if the Lightning Bug is the Firefly version of the Enchanted Nightcrawler (both 35% bait power with similar color changes), it is not crafted, contrary to the Enchanted Nightcrawler.
- In real life, lightning bug is just another name for a firefly, not a distinct insect.
- The
Bestiary entry for the Lightning Bug: "Appears at night in blessed locations, filling the sky with flashing cyan light. Fish are especially attracted to these."
History
- Desktop 1.3.1: Can now be used to craft Firefly Statues.
- Desktop 1.2.4: Can now be used as bait.
- Desktop 1.2.3: Introduced.
- Console 1.07: Can now be used as bait.
- Console 1.06: Introduced.
- Mobile 1.2.11212: Introduced with the ability to be used as bait.
- 3DS-Release: Introduced with the ability to be used as bait.
- ↑ Information taken from the
Desktop 1.4.4.6 source code, methods
setFireFlyChance()
inTerraria.NPC.cs
,UpdateTime_StartNight()
inTerraria.Main.cs
, andLoadWorld()
inTerraria.IO.WorldFile.cs
. There may be inaccuracies, as the currentDesktop version is 1.4.4.9.
- ↑ Information taken from the
Desktop 1.4.4.6 source code, method
SpawnNPC()
inTerraria.NPC.cs
. There may be inaccuracies, as the currentDesktop version is 1.4.4.9.
- ↑ Information taken from the
Desktop 1.4.4.6 source code, method
SpawnNPC_SpawnLavaBaitCritters
. There may be inaccuracies, as the currentDesktop version is 1.4.4.9.
Categories:
- Bait items
- Crafting material items
- Consumable items
- Desktop content
- Console content
- Old-gen console content
- Mobile content
- 3DS content
- Items of rarity 2
- The Hallow NPCs
- Night NPCs
- Critter NPCs
- Firefly AI NPCs
- Recipes table with unexpected total number of rows
- Verify
- Pages with information based on outdated versions of Terraria's source code