Rainbow Gun
Projectiles created
Rainbow Front
Rainbow Back
The Rainbow Gun is a Hardmode, post-Plantera magic weapon that launches a rainbow that travels in a straight line for a short distance before curving downwards. The rainbow persists for (Desktop, Console and Mobile versions) 40 / (Old-gen console and 3DS versions) 10 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 magic weapon causes existing projectiles to use that weapon's 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 produces minuscule knockback for each of its rapid hits, which tends to freeze enemies within its field. This is similar to the Vilethorn's effect, though the Rainbow Gun does not travel through blocks.
- When fading, the rainbow will not fade all at once; but instead along its length similarly to the way it was formed. Firing another rainbow will cause the first to instantly disappear without the "fading" effect.
- It can be fired through one tile-wide gaps in walls, floors and ceilings, and will fire through solid one-block-thick walls at certain angles, even without standing against the blocks to be penetrated.
Achievement
Tips
- The Rainbow Gun is a convenient weapon that pierces infinitely and delivers its 45 damage repeatedly and rapidly without having to re-fire for (Desktop, Console and Mobile versions) 40 / (Old-gen console and 3DS versions) 10 seconds. Clusters of unlimited enemies, even post-Plantera Dungeon enemies (with the exception of Paladin and bosses), can be defeated all at once with a single firing.
- This weapon will pierce infinitely until it fades. Therefore, it is a great weapon against enemies with multiple segments, especially worm-like enemies such as The Destroyer. It will hit each section simultaneously, inflicting tremendous damage. Because of this, it is potentially possible to defeat the Eater of Worlds or even The Destroyer with a single shot, if the player has appropriate gear and has made other preparations.
- The Rainbow Gun is also exceptionally powerful against walking creatures or teleporting creatures. In the Hardmode post-Plantera Dungeon, while aiming towards the only passage leading into the room, the player can lay down a rainbow that eliminates every enemy that enters beside the occasional Cursed Skull or Paladin.
- For the same reasons, the weapon is exceptionally potent against invasions.
- 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.
Trivia
- The Rainbow Gun can be used to bounce a Beach Ball, allowing a high bounce score.
- 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.
Gallery
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.
- 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
- ↑ 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.0 2.1 2.2 Information taken from the Desktop 1.4.4.5 source code, method
AI()
in Terraria.Projectile.cs
. There may be inaccuracies, as the current Desktop version is 1.4.4.9.
Pre-Hardmode
- Wooden Sword
- Cactus Sword
- Zombie Arm
- Gladius(Desktop, Console and Mobile versions)
- Breathing Reed ((Desktop, Console and Mobile versions))
- Ruler ((Desktop, Console and Mobile versions))
- Umbrella ((Desktop, Console and Mobile versions))
- Tragic Umbrella(Desktop, Console and Mobile versions)
- Tentacle Spike(Desktop, Console and Mobile versions)
- Mandible Blade(Desktop, Console and Mobile versions)
- Bladed Glove
- Stylish Scissors(Desktop, Console and Mobile versions)
- Candy Cane Sword(Desktop, Console, Old-gen console and Mobile versions)
- Bat Bat(Desktop, Console and Mobile versions)
- Bone Sword
- Flymeal(Desktop, Console and Mobile versions)
- Katana(Desktop, Console, Old-gen console and Mobile versions)
- Ice Blade
- Muramasa
- Exotic Scimitar(Desktop, Console and Mobile versions)
- Phaseblade
- Starfury
- Purple Clubberfish
- Enchanted Sword
- Bee Keeper
- Blade of Grass
- Falcon Blade
- Night's Edge
- Pearlwood Sword
- Classy Cane(Desktop, Console and Mobile versions)
- Waffle's Iron(Desktop, Console and Mobile versions)
- Ham Bat(Desktop, Console and Mobile versions)
- Slap Hand(Desktop, Console and Mobile versions)
- Breaker Blade
- Phasesaber
- Ice Sickle
- Cutlass
- Frostbrand
- Excalibur
- Seedler(Desktop, Console and Mobile versions)
- Beam Sword
- Bladetongue(Desktop, Console and Mobile versions)
- Brand of the Inferno(Desktop, Console and Mobile versions)
- Death Sickle
- Fetid Baghnakhs(Desktop, Console and Mobile versions)
- Keybrand
- Psycho Knife(Desktop, Console and Mobile versions)
- Flying Dragon(Desktop, Console and Mobile versions)
- The Horseman's Blade
- Christmas Tree Sword
- True Excalibur
- True Night's Edge
- Terra Blade
- Influx Waver(Desktop, Console and Mobile versions)
- Starlight(Desktop, Console and Mobile versions)
- Star Wrath(Desktop, Console and Mobile versions)
- Meowmere(Desktop, Console and Mobile versions)
- Tizona(Old-gen console and 3DS versions)
Yoyos(Desktop, Console and Mobile versions) Other
- Terragrim(Desktop, Console and Mobile versions)
- Arkhalis(Desktop, Console and Mobile versions)
- Shadowflame Knife(Desktop, Console and Mobile versions)
- Jousting Lance(Desktop, Console and Mobile versions)
(
- Hallowed(Desktop, Console and Mobile versions)
- Shadow(Desktop, Console and Mobile versions)
)
- Sleepy Octopod(Desktop, Console and Mobile versions)
- Scourge of the Corruptor
- Vampire Knives
- Sky Dragon's Fury(Desktop, Console and Mobile versions)
- Daybreak(Desktop, Console and Mobile versions)
- Solar Eruption(Desktop, Console and Mobile versions)
- Zenith(Desktop, Console and Mobile versions)
Bows- Wooden
- Copper
- Tin
- Iron
- Lead
- Silver
- Tungsten
- Gold
- Platinum
- Blood Rain(Desktop, Console and Mobile versions)
- Demon
- Tendon
- Hellwing(Desktop, Console and Mobile versions)
- The Bee's Knees(Desktop, Console and Mobile versions)
- Molten Fury
- Marrow
- Phantom Phoenix(Desktop, Console and Mobile versions)
- Daedalus Stormbow(Desktop, Console and Mobile versions)
- Ice
- Shadowflame(Desktop, Console and Mobile versions)
- Aerial Bane(Desktop, Console and Mobile versions)
- Tsunami
- Pulse(Desktop, Console, Old-gen console and Mobile versions)
- Eventide(Desktop, Console and Mobile versions)
- Phantasm(Desktop, Console and Mobile versions)
- Sharanga(Old-gen console and 3DS versions)
Consumable
- Paper Airplanes(Desktop, Console and Mobile versions)
- Snowball
- Rotten Egg
- Shuriken
- Throwing Knife
- Star Anise(Desktop, Console, Old-gen console and Mobile versions)
- Spiky Ball
- Frost Daggerfish(Desktop, Console and Mobile versions)
- Javelin(Desktop, Console and Mobile versions)
(
- Bone(Desktop, Console and Mobile versions)
)
- Holy Water
- Bone
- Molotov Cocktail(Desktop, Console, Old-gen console and Mobile versions)
- Beenade
- Grenade
(
- Sticky(Desktop, Console, Old-gen console and Mobile versions)
- Bouncy(Desktop, Console and Mobile versions)
- Happy(Desktop, Console and Mobile versions)
)
Direct
Other- Wand of Sparking(Desktop, Console and Mobile versions)
- Wand of Frosting(Desktop, Console and Mobile versions)
- Gray Zapinator(Desktop, Console and Mobile versions)
- Aqua Scepter
- Thunder Zapper(Desktop, Console and Mobile versions)
- Space Gun
- Ice Rod
- Golden Shower
- Demon Scythe
- Laser Rifle
- Magic Dagger
- Orange Zapinator(Desktop, Console and Mobile versions)
- Sky Fracture(Desktop, Console and Mobile versions)
- Shadowflame Hex Doll(Desktop, Console and Mobile versions)
- Crystal Serpent(Desktop, Console and Mobile versions)
- Leaf Blower
- Frost Staff
- Poison Staff
- Razorpine
- Heat Ray
- Venom Staff(Desktop, Console, Old-gen console and Mobile versions)
- Unholy Trident
- Bubble Gun
- Laser Machinegun(Desktop, Console and Mobile versions)
- Charged Blaster Cannon(Desktop, Console and Mobile versions)
- Last Prism(Desktop, Console and Mobile versions)
- Betsy's Wrath(Desktop, Console and Mobile versions)
- Zapinator(3DS version)
Minions
- Finch Staff(Desktop, Console and Mobile versions)
- Slime Staff
- Flinx Staff(Desktop, Console and Mobile versions)
- Abigail's Flower(Desktop, Console and Mobile versions)
- Vampire Frog Staff(Desktop, Console and Mobile versions)
- Hornet Staff(Desktop, Console, Old-gen console and Mobile versions)
- Imp Staff(Desktop, Console, Old-gen console and Mobile versions)
- Blade Staff(Desktop, Console and Mobile versions)
- Spider Staff(Desktop, Console, Old-gen console and Mobile versions)
- Sanguine Staff(Desktop, Console and Mobile versions)
- Optic Staff(Desktop, Console, Old-gen console and Mobile versions)
- Pirate Staff(Desktop, Console, Old-gen console and Mobile versions)
- Pygmy Staff
- Desert Tiger Staff(Desktop, Console and Mobile versions)
- Raven Staff
- Deadly Sphere Staff(Desktop, Console and Mobile versions)
- Tempest Staff
- Terraprisma(Desktop, Console and Mobile versions)
- Xeno Staff(Desktop, Console and Mobile versions)
- Stardust Cell Staff(Desktop, Console and Mobile versions)
- Stardust Dragon Staff(Desktop, Console and Mobile versions)
Whips(Desktop, Console and Mobile versions)