Terraria item ID 495. Terraria 1.4.5.7.
The Rainbow Rod is a Hardmode, post-The Twins wand. When used, it fires a rainbow missile that follows the cursor when โ Use / Attack key is held. If the โ Use / Attack key is released mid-drag, the missile will be fired in that direction. If the cursor is stationary on release, it is fired directly away from the player. Once it is released, the missile homes in on nearby enemies and can pierce twice, creating a small explosion upon contact with a block or third enemy.
Crafted at Mythril Anvil / Orichalcum Anvil. Ingredients:
Description from the Terraria Wiki.