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. Enemies touching it take damage repeatedly, approximately five times per second. The Rainbow Gun is found in the Dungeon's Hallowed Chest, which must be unlocked with a Hallowed Key.

Physics

 * Fired horizontally, the beam will travel straight for approximately 35 tiles before curving.
 * Fired 45 degrees, diagonally, the beam will travel approximately 4 tiles before curving.
 * Fired at a perfect 90-degree angle up or down, the beam will travel straight for 1491 tiles and end abruptly after that.

Tips

 * The Rainbow Gun can be considered a powerful endgame weapon. It pierces infinitely and delivers its damage repeatedly and rapidly without having to re-fire for 20 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 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 and for the same reason as with the Nimbus Rod, it allows for long-distanced healing (if the pillar is targetable) when equipping the Spectre armor with the hood.

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 allows the player to receive an achievement.