web icon indicating copy to clipboard operation
web copied to clipboard

Implementation for 1.21.4 Shadow Colors

Open Ramezsushi opened this issue 9 months ago • 5 comments

1.21.4 Snapshot 24w44a added the functionality to change the shadow colors of text components,

Text Components Added optional shadow_color style 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

Ramezsushi avatar Apr 10 '25 17:04 Ramezsushi

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 :)

saboooor avatar Apr 13 '25 04:04 saboooor

added :) will add an invert and reverse colors button as well soon

saboooor avatar May 01 '25 13:05 saboooor

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: Image

Ramezsushi avatar May 01 '25 17:05 Ramezsushi

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

saboooor avatar May 02 '25 09:05 saboooor

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

Ramezsushi avatar May 03 '25 09:05 Ramezsushi