[MC-1443] Custom colour item names lose format when repaired in anvil Created: 31/Oct/12  Updated: 25/Jun/20  Resolved: 31/Oct/12

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.2
Fix Version/s: None

Type: Bug
Reporter: Aurin Hitchens Assignee: Unassigned
Resolution: Works As Intended Votes: 0
Labels: None
Environment:

OS:Windows 7


Issue Links:
Duplicate
is duplicated by MC-85006 Items with custom colors don't keep t... Resolved
is duplicated by MC-168894 Item name color disappear in anvil (r... Resolved
is duplicated by MC-174211 formatting codes don't work with rena... Resolved
is duplicated by MC-191900 Enchanting items with color codes in ... Resolved
is duplicated by MC-3238 When using anvil for repair some cust... Resolved
Confirmation Status: Unconfirmed
Game Mode: Creative

 Description   

I created an enchanted diamond axe with a custom name using NBTedit. The custom name tag had '§6Waraxe' which creates an orange item name 'Waraxe'. I then damaged the axe and repaired it in the anvil, however the item's in-game displayed name changed to cyan colour '§6Waraxe.'

I'm not sure, but I also think the unintentional renaming of the item raised the xp cost of repairing the item.



 Comments   
Comment by [Bot] Arisa [ 20/Jun/20 ]

Your report contained an attachment with an invalid extension, so the attachment was removed.

Please remember to only include crashlogs as text files and images as jpg or png instead of using a Word document
– I am a bot. This action was performed automagically! Please report any issues in Discord or Reddit

Comment by Fred B [ 19/Feb/20 ]

At least strip the color codes from the name properly.

Comment by Jonathan Lundgren [ 07/Feb/13 ]

I understand that you wouldn't be able to add item colour ingame, but it is really annoying that items lose their colours when you use an anvil. It would be good if the colour would just stay the same if you don't rename it, but change back to normal if you do. I am making a PVP map with these features, and it's not very nice to have "Master Sword" turned into "8Master Sword" with no colour.

Comment by [Mojang] Nathan Adams [ 31/Oct/12 ]

It is intentional that you cannot use format codes while naming things ingame.

Generated at Sun Jan 12 11:54:28 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.