KyoriPowered / adventure

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

Added legacy show achievements #890

Closed LOOHP closed 1 year ago

LOOHP commented 1 year ago

Before Minecraft 1.12, there is a hover event action called show_achievement. Here's an example of it:

{"action":"show_achievement","value":"achievement.bakeCake"}

This PR adds legacy support to it.

Vanilla clients on or after 1.12 can silently ignore these hover events, so there should be no need to deliberately remove them if someone were to send them to modern clients.

LOOHP commented 1 year ago

There you go :)

LOOHP commented 1 year ago

There you go (again)

LOOHP commented 1 year ago

And again :)