Game version

Rainbow Brick in Terraria

Terraria item ID 662. Terraria 1.4.5.7.

Rainbow Brick is a Hardmode brick that can be obtained as a drop from the Rainbow Slime. It glows in the dark when placed, and cycles through the colors of the rainbow. The cycling colors of Rainbow Bricks, Rainbow Brick Walls, Helium Moss, Helium Moss Brick, Helium Moss Brick Walls, Rainbow Torches, the Disco Ball, and Rainbow Hair Dye are synchronized with each other. If a waterfall passes through a Rainbow Brick, it will also cycle through the colors. Rainbow Bricks will not change the color of lavafalls, honeyfalls, or Shimmerfalls(Desktop, Console and Mobile versions).

How to craft Rainbow Brick

Crafted at Work Bench. Ingredients:

What Rainbow Brick is used to craft

Description from the Terraria Wiki.

Dungeon Guardian: Terraria crafting trees for every item