#[Solved] Applying colors to Text.translatable()

9 messages · Page 1 of 1 (latest)

frail plank
#

I have text that needs to be colored, applying colors via .formatted() sounds scary, is there a more easier way? 🧐

mortal gyro
#

use text components

#

example

#

.append(Text.literal("Yet Another Config Lib [YACL]").formatted(Formatting.BOLD, Formatting.GOLD))

finite anvil
#

I believe it should work if you replace & with §

frail plank
#

You was right

#

Thanks!

#

I didn't really notice it 🧐