what am i doing wrong i just want custom hex colors
ItemEvents.tooltip(tooltip => {
tooltip.addAdvancedToAll((item, advanced, text) => {
if(item.hasTag("erosia:martial")){
text.add(0, text.get(0).copy().append(Text.darkGray(' ⚔ Martial')))
text.remove(1)
}
if(item.hasTag("erosia:simple")){
text.add(0, text.get(0).copy().append(Text.darkGray(' ⚔ Simple')))
text.remove(1)
}
if(item.hasTag("erosia:light")){
text.add(0, text.get(0).copy().append(Text.gray(' 🛡')).append(Text.darkGray(' Light')))
text.remove(1)
}
if(item.hasTag("erosia:medium")){
text.add(0, text.get(0).copy().append(Text.white(' 🛡')).withStyle(style => style.withColor(0x9778ff)).append(Text.darkGray(' Medium')))
text.remove(1)
}
if(item.hasTag("erosia:heavy")){
text.add(0, text.get(0).copy().append(Text.white(' 🛡')).withStyle(style => style.withColor(0x5c40b8)).append(Text.darkGray(' Heavy')))
text.remove(1)
}
})
})

