MarkusBordihn / BOs-Easy-NPC

Create easily NPC for your world or for your mod.
Other
20 stars 8 forks source link

[Feature Request] Color codes for dialogue #80

Closed Typhewn closed 9 months ago

Typhewn commented 10 months ago

Allow color codes?

Additional context Allow us to use Minecraft color codes for dialogue all around (ex. in game chat or chat bubble)

MarkusBordihn commented 9 months ago

Reference: https://minecraft.fandom.com/wiki/Formatting_codes

MarkusBordihn commented 9 months ago

I implemented a support for the color and styles formatting, but with additional placeholders like <red>text</red> to make it easier for the users instead of typing in invisible § characters (with different keyboard combination based on the layout and used computer).

image

This will be live with the next update, together with an overview table of all possible codes.

For the game chat it's not that easy, but technical you can use the /tellraw command. Maybe I will add an dedicated command which supports the <...> format macros.