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.
Minecraft – Changing Minecraft’s item rarity color
minecraft-java-edition
Related Topic
- Minecraft Color Codes Problem (1.9)
- Minecraft – How to make the crosshair attack indicator have a solid color
- Minecraft – How to change the name and color of a potion
- Minecraft – How to edit the Inventory GUI
- Minecraft – How to i change the color of the name
- Minecraft: Change item name color without affecting locale
- Minecraft Random Item Name
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.