KyoriPowered / adventure

A user-interface library, formerly known as text, for Minecraft: Java Edition
https://docs.advntr.dev/
MIT License
706 stars 107 forks source link

feat(api): add support for translatable component fallbacks (#863) #868

Closed NoahvdAa closed 1 year ago

NoahvdAa commented 1 year ago

Adds support for the new translatable component fallbacks, as requested in #863.

Wasn't sure what to do for MiniMessage, since adding the fallback string in front would break existing configs, and at the end isn't possible because the tag allows for infinite arguments.

adding the fallback to all the static methods was a pain lol

rymiel commented 1 year ago

How does this interact with 2ed1e7c00adda8a0e8bf8fd4e8e86c6c03b8e4fa?

NoahvdAa commented 1 year ago

It does not, I didn't see that branch existed :/

NoahvdAa commented 1 year ago

Rebased to include kashike's changes.

NoahvdAa commented 1 year ago

Added MiniMessage support. I went with the separate tag route after some discussion on Discord.