knokko / custom-items-gradle

Knokko's Custom Items: Add custom items to your server, completely free of charge
MIT License
15 stars 3 forks source link

MiniMessage support #307

Open SeemWind opened 4 months ago

SeemWind commented 4 months ago

https://docs.advntr.dev/minimessage/index.html

make color code and gradient convenient

knokko commented 3 months ago

Where would you like to use mini messages? Item display names?

SeemWind commented 3 months ago

Yes, and lores

SeemWind commented 3 months ago

I have mentioned the issue with gradient code before. Perhaps you have encountered some difficulties, but minimassage should be simpler

knokko commented 3 months ago

I don't think you have ever mentioned gradient code to me. At least, I don't remember it, and searching this repository and the discord server for "gradient" yields 0 results.

SeemWind commented 3 months ago

My fault, I just have said hex color image

SeemWind commented 3 months ago

But still a way to resolve

knokko commented 3 months ago

I haven't really looked into hex colors yet. There are simply more Github issues being created than I can implement, so some issues are not picked up for a long time. Should I skip hex colors if I decide to implement this instead?

SeemWind commented 3 months ago

This should be possible, as it provides complete functionality for text components. If you want to be compatible with old format code, such as &, it also provides methods

SeemWind commented 3 months ago

Bold and italics can also be implemented

SeemWind commented 3 months ago

By the way, the text edit box should have the ability to move the cursor, at least can copy the text, please, which make edit easier

knokko commented 3 months ago

You can already copy the text with Control + C or Control + X. Actually moving the cursor will have to wait for an editor rewrite