Colors and text format
Every message and item text accepts:
| Example | |
|---|---|
| Colors | &a &c &f &7 ... · &l bold · &o italic · &n underline |
| Hex (1.16+) | "&#f7c948Text" |
| Gradient | "<gradient:#f7b733:#fce38a>Text</gradient>" |
| Rainbow | "<rainbow>Text</rainbow>" |
| Click | "<click:run_command:'/mobcoins'>Text</click>" |
| Hover | "<hover:show_text:'Text'>Text</hover>" |
On 1.8–1.15 hex colors become the nearest normal color. Always write texts between "quotes". The 3.x syntax <GRADIENT:#a-#b> still works.
Where a message goes (4.2.0+)
Every message of lang/en.yml goes to the chat (the drop, combo and anti-farm messages to the action bar). Start a line with a tag to send it somewhere else, and use a list to send it in more places at the same time:
| Tag | |
|---|---|
[chat] text | chat (the same as no tag) |
[actionbar] text | action bar |
[title] title;subtitle | title, also title;subtitle;0.5;2;0.5 = fade in, stay, fade out in seconds |
[bossbar] text;seconds;COLOR;STYLE | boss bar, e.g. [bossbar] &aDone!;5;GREEN. On 1.8 it goes to the action bar |
[sound] NAME;volume;pitch | a sound, e.g. [sound] ENTITY_PLAYER_LEVELUP |
pay:
received:
- "{prefix}&f{player} &7sent you &#f7c948{amount_commas} &7mobcoins."
- "[title] &#f7c948+{amount_commas};&7from &f{player}"
- "[sound] ENTITY_PLAYER_LEVELUP"
drops:
received:
- "&#f7c948+{amount} mobcoins" # action bar, like before
- "[sound] ENTITY_EXPERIENCE_ORB_PICKUP"
The files you already have keep working: a line without a tag goes where it went before. The console only gets the text. Menu texts (item names and lore) don't use these tags.
Last updated