Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RawText: update the show_text key of the hoverEvent JSON for 1.16 #48

Open
AmauryCarrade opened this issue Nov 13, 2020 · 0 comments
Open
Labels
M ⋅ Outdated Bukkit API Miscelaneous – Tracks removal of deprecated/outdated/useless code due to a newer Bukkit API
Milestone

Comments

@AmauryCarrade
Copy link
Member

On Minecraft 1.16+, the show_text hover action was changed from:

["",{"text":"Toast","color":"yellow","hoverEvent":{"action":"show_text","value":{"text":"Toasted!"}}}]

to:

["",{"text":"Toast","color":"yellow","hoverEvent":{"action":"show_text","contents":{"text":"Toasted!"}}}]

(the value key is now contents).

This should only be changed for 1.16+, as 1.15 will not understand that new format.

@AmauryCarrade AmauryCarrade added this to the v0.1 milestone Nov 13, 2020
@AmauryCarrade AmauryCarrade added M ⋅ Outdated Bukkit API Miscelaneous – Tracks removal of deprecated/outdated/useless code due to a newer Bukkit API and removed Compatibility labels Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
M ⋅ Outdated Bukkit API Miscelaneous – Tracks removal of deprecated/outdated/useless code due to a newer Bukkit API
Projects
None yet
Development

No branches or pull requests

1 participant