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?
#display name?
37 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
A script to rename items:
ClientEvents.lang("en_us", e => {
e.renameItem('item id', 'new name')
})
Reloadable with F3 + T
Ticket re-opened!
can i set color in this?
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
okay thanks
how can u show all elements of this event
idk if i chose the write words
but how can i see this but for tooltip
I don't know how to see exactly this, but you can also see all function inside the source code
https://github.com/KubeJS-Mods/KubeJS/blob/2001/common/src/main/java/dev/latvian/mods/kubejs/item/ItemTooltipEventJS.java
itemtooltips doesnt work at all
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
Ticket re-opened!
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
just give the item with custom nbt the name nbt
like when you give the item change the display name nbt
okay i will look into it thx
it dossnt give it an nbt
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