Phoenix616 / MineDown

A MarkDown inspired markup library for Minecraft chat components
https://wiki.phoenix616.dev/library/minedown/
MIT License
296 stars 21 forks source link

How to make RGB color in hover text #27

Closed VanyaNexus closed 1 year ago

VanyaNexus commented 1 year ago

How to make RGB color in hover text? Example: MineDown.parse("[test to home](run_command=/home show_text=&#BFD44Atp to home color=#FFD44A)") Doesn't change color on hover

Phoenix616 commented 1 year ago

That's not how colors work in MineDown, either use &#rrggbb& or the event-format (which is the suggested way) with [Text](#rrggbb)/[Text](color=#rrggbb) in the hover text. (you might need to use curly brackets to separate the click/hover value [Text](show_text={[Hover](#rrggbb)}) if you include brackets in the values)

VanyaNexus commented 1 year ago

Thank you. It turned out to be done, as you described in option 1, to write an ampersand at the beginning and end of the color, but the second option with curly braces did not work, but 1 option was enough for me.