Open Sylfare opened 3 years ago
ok, I am just using the Spigot API to set the localized name... Looks like Spigot still sets the deprecated value to the item. I will have a look at how I can fix that.
I think I found a solution... but it requires Paper.
Well, I got it working a bit in Spigot. Only issue is that spigot converts the tag '{"translate":"item.minecraft.cookie"}'
to the actual text it outputs...
I'll see what I can do.
Describe the bug You can't set a localized name to a custom item: the name doesn't change.
To Reproduce Steps to reproduce the behavior:
/cc
, then go to the Item Creatorminecraft.item.cookie
.Expected behavior The edited object should have the localized name.
Screenshots Setting the localized name
The name is not correct
The saved item in the inventory
Server (please complete the following information):
Additional context The generated item has this display tag:
display: {LocName: '{"extra":[{"clickEvent":"action":"open_url","value":"http://item.minecraft.cookie"},"text":"item.minecraft.cookie"}],"text":""}'}
. However, theLocName
tag seems to be deprecated. Thetranslate
tag should used instead. You can give yourself an item with the correct name with this command:/give @s diamond{display:{Name:'{"translate":"item.minecraft.cookie"}'}} 1