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))
})```