#Editing color of displayName for custom item.

6 messages · Page 1 of 1 (latest)

feral coral
#

Works on tooltip not on display name. Isn't throwing any errors in startup scripts log. Is there a different format or location?

onEvent('item.registry', event => {
    event.create('refined_glass_shard').displayName(Text.of('Refined Glass Shard').color('dark_purple').bold(true).italic(true)).maxStackSize(64).glow(true).attackDamage(2).tooltip(Text.of(`A more refined loking shard, it's sharp to the touch`).color('dark_purple').bold(true).italic(true).underlined(true))
})```
hexed bridgeBOT
#

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

sand igloo
#

it looks like displayName is just a plain string in 1.16, but you could use the vanilla formatting character and color codes in that, or in a language file

feral coral
#

Do you have an example? I've been trying to figure this out for days and feel like I'm running in circles

#

@sand igloo

feral coral
#

I was able to get it working thanks a bunch