#How do you change the display name of items?

6 messages · Page 1 of 1 (latest)

flat bay
#

Hello, I have been trying to change the name of two items within my pack so far, but the script has not worked yet. I was wondering if somebody could guide me on the right script. Thank you so much in advance.

vast questBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

twilit waspBOT
#

A script to rename items:

ClientEvents.lang("en_us", e => {
e.renameItem('item id', 'new name')
})

Reloadable with F3 + T

peak junco
# flat bay Hello, I have been trying to change the name of two items within my pack so far,...

for simply changing the name of an item without any NBT shenanigans, you can simply use the above example
for changing the name of an item with NBT shenanigans, simply use event.add("translation_key", "Item Name") (seems to only work if the translation key is NOT translated yet)
I see you have the arrow of astral there! I actually had to change that myself. translation keys look something like item.minecraft.tipped_arrow.astral

flat bay
twilit waspBOT
#

Please close your ticket (with </ticket close:1054771505520717835> or the button atop this thread) once you resolved your issue!
This also helps others that would like to help out, as they don't have to look into this thread to check if it has been resolved by now.

Do you have any other questions regarding your issue? Feel free to ask!
Note: You should create a new post for unrelated issues.