i copied this script from example radiation effect but it doesn't change the color of the name, i assume that it's what it does
StartupEvents.registry('mob_effect', e => {
// Register fortune effect
e.create('fortune')
.displayName(Component.aqua("Fortune"))
// Set a tick event to apply the action
.effectTick((entity, lvl) => { if(entity.level.clientSide) return })
.color(Color.AQUA)
.beneficial();
e.create('silk_touch')
.displayName(Component.gold("Silk Touch"))
// Set a tick event to apply the action
.effectTick((entity, lvl) => { if(entity.level.clientSide) return })
.color(Color.GOLD)
.beneficial();
})```
Nothing in logs, just doesn't work. It has a white color when you look for effect in player inventory