Minecraft – Changing Minecraft’s item rarity color

minecraft-java-edition

I know how to change item's name color, but i want to override minecraft's default rarity colors. Like rare items have cyan color and i want it to be dark-red.

Best Answer

In theory, you could use a datapack to detect the item in the player's mainhand (since that is the only time you will see the name's color) and modify the item data to change the name color.

This would require a list of all the items and depending on the version of Minecraft you are playing, you may have to use a difficult method to modify the player's mainhand item data; fortunately, in 1.17 this becomes very simple with the new /item command.