Skip to content

Commit b487c68

Browse files
authored
Merge pull request #195 from KyoriPowered/feat/shadow
2 parents 2b468de + 4812a36 commit b487c68

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

source/minimessage/format.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,31 @@ Examples
8282
.. image:: /minimessage/images/color_verbose_2.png
8383
:alt: The result of parsing ``<color:#FF5555>This is a <color:#55FF55>test!``, shown in-game in the Minecraft client's chat window
8484

85+
Shadow Color
86+
************
87+
88+
Color the shadow of the next parts
89+
90+
Tag
91+
* :mm:`<shadow:_colorNameOrHex_:[alpha_as_float]>`
92+
* :mm:`<!shadow>` as an alias to disable the shadow (equalivent to :mm:`<shadow:#00000000>`)
93+
Arguments
94+
* ``_colorNameOrHex_``, a named color or hex color string with the format ``#RRGGBB`` or ``#RRGGBBAA``
95+
* ``[alpha_as_float]``, a float value between 0 and 1, representing the alpha value of the shadow. Optional, defaults to 0.25. Has no effect if an alpha value is already provided in the hex color string.
96+
Examples
97+
* :mm:`<shadow:yellow>Hello <shadow:aqua:0.5>World</shadow>!`
98+
* :mm:`<shadow:#FF5555>This is a <shadow:#55FF55>test!`
99+
* :mm:`<shadow:#000000FF><b>Thicc`
100+
101+
.. image:: /minimessage/images/shadow_1.png
102+
:alt: The result of parsing ``<shadow:yellow>Hello <shadow:aqua:0.5>World</shadow>!``, shown in-game in the Minecraft client's chat window
103+
104+
.. image:: /minimessage/images/shadow_2.png
105+
:alt: The result of parsing ``<shadow:#FF5555>This is a <shadow:#55FF55>test!``, shown in-game in the Minecraft client's chat window
106+
107+
.. image:: /minimessage/images/shadow_3.png
108+
:alt: The result of parsing ``<shadow:#000000FF><b>Thicc``, shown in-game in the Minecraft client's chat window
109+
85110
Decoration
86111
***********
87112

3.5 KB
Loading
3.02 KB
Loading
1.27 KB
Loading

0 commit comments

Comments
 (0)