... | ... | @@ -52,12 +52,22 @@ Legacy color codes: |
|
|
| &9 | Blue | &O | Italic |
|
|
|
| &A | Green | &R | Reset |
|
|
|
|
|
|
Note: As of MM 5.0.1+, it's recommended that you use [MiniMessage standard tags](https://docs.adventure.kyori.net/minimessage/format.html#standard-tags) for text decorations for readability and configurability, since MythicMobs will try to convert legacy color codes to MiniMessage tags.
|
|
|
Here's an example of using MiniMessage tags:
|
|
|
```yml
|
|
|
MessageSkill:
|
|
|
Skills:
|
|
|
- message{m=<rainbow>This text is a rainbow</rainbow> but <red>this is red</red>!} @target
|
|
|
- message{m=<#bae5f4>This is a cool color that I picked from</#bae5f4> <red><click:open_url:https://www.color-hex.com/color/bae5f4>color-hex site</click></red>} @target
|
|
|
```
|
|
|
MiniMessage also has a [web viewer](https://webui.adventure.kyori.net/) to see what your text will look like in game.
|
|
|
|
|
|
Caster Placeholders
|
|
|
------------------
|
|
|
These placeholders will return whatever attribute of the caster that is called. For instance `<caster.l.y.#>` will return the caster's Y location.
|
|
|
|
|
|
| Caster Placeholder | Function |
|
|
|
|:-------------------:|-------------------------------------------------------------------|
|
|
|
|:---------------------------:|-------------------------------------------------------------------|
|
|
|
| <caster.damage> | Returns the caster's Attack_Damage attribute value |
|
|
|
| <caster.display> | Returns the caster's displayed name |
|
|
|
| <caster.uuid> | Returns the UUID of the caster |
|
... | ... | |