#display name?

37 messages · Page 1 of 1 (latest)

peak matrix
#

i did a script to remove some items tooltips and then add my own, the item name get eventually replace, but when i hold the item, i can see the original item name in hotbar, not the first tooltip that i added that replace the original name when i hover on item, so i was wondering is there a way to change the item display name?

analog mantleBOT
#

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

dull windBOT
#

A script to rename items:

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

Reloadable with F3 + T

dull windBOT
royal schooner
#

not with e.renameItem it seems

#

ClientEvents.lang() is pure plaintext

#

It changes only the text itself

#

after all minecraft doesn't really store stuff like colors and whatnot in its language files

#

You'll need something else

#

Probably ItemEvents.modification()? Someone else would need to confirm cause it's got a lot of uses and it's hard to look through all of them

peak matrix
#

how can u show all elements of this event

#

idk if i chose the write words

peak matrix
copper edge
peak matrix
#

i just use tooltip

#

and there isnt a lot of stuff in the documentation its so confusing

#

most of it doesnt work

#

i figured it out looking at examples

analog mantleBOT
peak matrix
#

i was wondering if i can change the item name color by nbt? like there is a way to give custom items with different rariy in vanilla mc, is it possible to do a similar thing with items names?

#

display names not tooltip first line

#

like i just used anvil to rename this

#

§3 Spectral silt

#

is this possible in kubejs somehow

stuck furnace
#

just give the item with custom nbt the name nbt

#

like when you give the item change the display name nbt

peak matrix
#

okay i will look into it thx

peak matrix
#

lol

#

oh it does but i had remove lore lines before

#

but yeah thats simple an easy thanks a lot

#

Item.of('bountifulbaubles:spectral_silt', "{display:{Name:'{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"color":"dark_aqua","text":" Spectral Silt"}'}}")

#

oh lord lol