Rainbow Gun

From Terraria Wiki
Jump to navigation Jump to search
Desktop versionConsole versionMobile version
This is the main page whose information applies to the Desktop, Console, and Mobile versions of Terraria.
For the differences of this information on Old-gen console and 3DS, see Legacy:Rainbow Gun.
Rainbow Gun
  • Rainbow Gun item sprite
1
Statistics
Type
Damage45 (Magic)
Knockback2.5 (Very weak)
Mana20
Critical chance4%
Use time40 (Very slow)
Velocity16
TooltipShoots a rainbow that does continuous damage
RarityYellow (Rarity level: 8)
Sell20 GC
Research1 required
Projectiles created
  • Rainbow Front
    Rainbow Front
  • Rainbow Back
    Rainbow Back
Sounds
Use
The Rainbow Gun being used to pierce Target Dummies.
Not to be confused with Rainbow Rod.

The Rainbow Gun is a Hardmode, post-Plantera magic gun that fires a curving rainbow that persists for 40 seconds or until another rainbow is fired. Enemies touching the rainbow take damage repeatedly, approximately five times per second. The Rainbow Gun is always found in the Dungeon's Hallowed Chest, which can only be unlocked with a Hallowed Key after Plantera has been defeated.

Its best modifier is Ruthless. The Mythical modifier provides the widest array of stat bonuses, but the only stats that improve damage output are damage and critical chance. Switching to a different weapon causes existing projectiles to use that weapon's base critical chance instead, meaning that the Rainbow Gun's DPS is optimized with the Ruthless modifier when used in the intended way.

Physics

  • Fired horizontally, the rainbow will travel straight for approximately 35 tiles before curving.
  • Fired 45° diagonally, the rainbow will travel approximately 4 tiles before curving.
  • After a bit, the beam goes faster horizontally when it goes up (+5% per tick[1]) and slows down horizontally when it goes down (−5% per tick).[2]
  • The beam travels at about 74.765625 tiles/second and lasts 20 seconds as long as it does not touch a block or shimmer.[2]
  • The rainbow usually tries to rotate to go down, but if shot perfectly upwards, it does not have a sense of rotation and goes straight up.[2]
  • A rainbow shot straight up or down will travel a total of 1491 tiles.

Notes

  • The Rainbow Gun deals very minor knockback for each of its rapid hits, which tends to freeze enemies within its field. This is similar to the Vilethorn's effect.
  • When fading, the rainbow will not fade all at once; but instead along its length similarly to the way it was formed. However, firing another rainbow will cause the first to instantly disappear.
  • It can be fired through solid one-block-thick walls at certain angles, even without standing against said blocks.

Achievements

Achievement Rainbows and Unicorns.png
Rainbows and Unicorns • “Fire a rainbow gun while riding on a unicorn.”
Fire a Rainbow Gun while riding a Unicorn Mount. (Desktop, Console and Mobile versions)
Category: Challenger Challenger

Tips

  • The Rainbow Gun's infinite pierce and lingering attack make it a very convenient weapon. Large groups of enemies can be defeated from a single firing (even those from the Hardmode Dungeon), and it can deal great damage against segmented enemies such as The Destroyer.
  • Because of its high sell price, the Rainbow Gun is very expensive to reforge. It may be wise to settle for a lesser modifier such as Mythical, Godly, Demonic, or Masterful, all of which are equally damaging as long as the Rainbow Gun is not the currently-selected weapon.
  • Since the critical strike chance of a projectile is based on the weapon currently held by the player, this weapon pairs well with Stellar Tune and Staff of Earth since it will benefit from their high base critical strike chance.
  • The Rainbow Gun can be used to bounce a Beach Ball, allowing for a high bounce score.

Trivia

  • The rainbow makes a faint light that is synchronized with other rainbow items such as the Disco Ball and Rainbow Bricks.
  • The Rainbow Gun is the only Biome Chest weapon that has a specific associated achievement.

History

  • Desktop 1.4.4:
    • Rainbow duration increased from 20 to 40 seconds.
    • Now uses static immune frames, so its immune frames will no longer conflict with other attacks.
    • Fixed an issue where the Rainbow Gun could arc down and draw across the entire world for some players in multiplayer.
  • Desktop 1.3.4.1: Fixed a glitch that allowed players to obtain the Rainbow Gun Pre-Hardmode on a world with the seed 1423781313 (small, Crimson, Expert Mode). On the right side of the Dungeon, the game tried to place a Hallowed Chest and a wooden Chest in the same place, and the loot from the Hallowed Chest appeared in the Wooden Chest.
  • Desktop 1.3.0.1:
    • Rainbow duration increased from 10 to 20 seconds.
    • Knockback increased from 2 to 2.5.

References

  1. A tick is a time unit countable by the software. Most of Terraria's updating logic happens every tick. A tick has the length of 1/60th of a second, hence there are 60 ticks in a second and 3600 ticks in a minute.
  2. 2.0 2.1 2.2 Information taken from the Desktop version Desktop 1.4.4.5 source code, method AI() in Terraria.Projectile.cs. There may be inaccuracies, as the current Desktop version Desktop version is 1.4.4.9.