#change item name
1 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
Check the lang Key and overwrite with the client.generate_assets Event or use a json File.
dumb it down for me please
A script to rename items:
ClientEvents.highPriorityAssets(e => {
const rename = (item, newName) => e.addLang(Item.of(item).item.getDescriptionId(), newName)
// rename mutton to BAAAAAAA
rename('minecraft:mutton', "BAAAAAAA")
// rename all items with e in their path to EEEEEEEEEEEE
Ingredient.of(/:.*e/).stacks.forEach(item => rename(item, "EEEEEEEEEEEE"))
})
Reloadable with F3 + T
and this goes in client scripts?
ye
how about if I just want to change the color of an item's name?
ah thats what you meant
You need to convert this to 1.18 syntax
thanks
Ticket re-opened!
I tried but failed and I did not find anything on the wiki
onEvent('highPriorityAssets', e => {
const rename = (item, newName) =>
e.addLang(Item.of(item).getDescriptionId(), newName)
//rename diamond sword to "Test"
rename('minecraft:diamond_sword', 'Test')
})
WIP
nvm i did it
onEvent('client.generate_assets', e => {
const rename = (item, newName) => e.addLang(Item.of(item).item.getDescriptionId(), newName)
//rename diamond sword to "Test"
rename('minecraft:diamond_sword', 'Test')
})