1

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.

1
  • 1
    No way that I know of to exactly do what your asking about, but you can change the language file in a resource pack to change a specific items default display string.
    – sourrabbit
    Jun 2, 2021 at 22:13

1 Answer 1

3

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .