Implementation for 1.21.4 Shadow Colors
1.21.4 Snapshot 24w44a added the functionality to change the shadow colors of text components,
Text Components Added optional
shadow_colorstyle field to Text Components, which overrides the shadow properties of text.
Format:
- A packed integer ARGB value (e.g. -1)
- An array of RGBA values (e.g. [1, 1, 1, 1])
If specified as 0, the shadow will never be displayed for this text
If specified as a non-zero value, the shadow will always be displayed with this color
This could be utilized on https://www.birdflop.com/resources/rgb/, for shadow styling & gradient options
There should be a second gradient editor for the text shadow, it should also include quick coloring options such as to clone, invert or reverse the normal text's gradient
Since a in-chat functionality does not exist for most for most servers yet, there should be an export as json option for users to use it with NBT
as for the export as json option, we already have a minecaft formatting color format option which lets you do just that otherwise, this is a good idea and i'll start working on it once everything else is done :)
added :) will add an invert and reverse colors button as well soon
added ;) will add an invert and reverse colors button as well soon
thank you!
i will suggest adding opacity and brightness options, since those can be changed too, the default values according to the Minecraft Wiki are 75% brightness and 25% opacity
concept design:
turns out the shadow_color property takes rgb and not hex for some reason so i'll fix that. i'll also add the opacity and brightness options, but from some testing it turns out that the shadow colors are 100% opacity by default and i'm not sure where that default value came from in the wiki
alright, thanks!
apparently minimessage has an implementation for text shadows, and you have them as a color format on the website, would be cool to have it working with it :3