Rainbow Gun

The Rainbow Gun is a Hardmode, post-Plantera magic weapon. It launches a rainbow beam that travels in a straight line for a short distance before curving downwards. The rainbow persists for 20 seconds, or until another rainbow is fired, and any enemy in or moving into its path takes 45 damage repeatedly, approximately 5 times per second. It is found in the Dungeon's Hallowed Chest, which must be unlocked with a Hallowed Key.

Its best Modifier is Mythical.

Physics

 * Fired vertically up, the beam will travel straight for approximately 65 blocks before curving.
 * Fired 45 degrees, diagonally, the beam will travel approximately 4 blocks before curving.
 * Fired horizontally, the beam will travel straight for approximately 35 blocks before curving.
 * Fired vertically down, the beam travels straight for a maximum of 750 blocks, then fades.
 * If fired at a perfect 90 degree angle up or down, the beam travels until it either hits a wall or reaches the end of the map (tested as of v 1.3.0.7).

Achievement
Rainbows and Unicorns is the achievement you earn for firing a Rainbow Gun while riding a Unicorn Mount ( only).

Tips

 * This weapon will pierce infinitely until it fades. It is a great weapon against enemies with multiple segments, 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 besides the occasional Cursed Skull or Paladin.
 * For the same reasons, the weapon is exceptionally potent against invasions.
 * The Rainbow Gun is great against the Celestial Towers, and for the same reason with the Nimbus Rod, it allows for long distanced healing (if the tower is targetable) when you have the Spectre armor with the hood.

History
무지개 총