Conversation
|
Looks like hover events don't work as expected anymore. Going to look into that a bit more. |
|
Oh boy @danthedaniel, looks like they switched from camelCasing to snake_case and a bunch of property names also changed. old{
"translate": "chat.type.advancement.task",
"with": [
{
"text": "redacted",
"hoverEvent": {
"contents": {
"type": "minecraft:player",
"id": [],
"name": "redacted"
},
"action": "show_entity"
},
"insertion": "redacted",
"clickEvent": {
"action": "suggest_command",
"value": "/tell redacted "
}
},
{
"translate": "chat.square_brackets",
"with": [
{
"translate": "advancements.adventure.kill_a_mob.title",
"hoverEvent": {
"contents": {
"translate": "advancements.adventure.kill_a_mob.title",
"extra": [
"\n",
{ "translate": "advancements.adventure.kill_a_mob.description" }
],
"color": "green"
},
"action": "show_text"
}
}
],
"color": "green"
}
]
}new{
"translate": "chat.type.advancement.task",
"with": [
{
"text": "redacted",
"hover_event": {
"id": "minecraft:player",
"uuid": [],
"name": "redacted",
"action": "show_entity"
},
"insertion": "redacted",
"click_event": {
"command": "/tell redacted ",
"action": "suggest_command"
}
},
{
"translate": "chat.square_brackets",
"with": [
{
"translate": "advancements.story.obtain_armor.title",
"hover_event": {
"value": {
"translate": "advancements.story.obtain_armor.title",
"extra": [
"\n",
{
"translate": "advancements.story.obtain_armor.description"
}
],
"color": "green"
},
"action": "show_text"
}
}
],
"color": "green"
}
]
}
From what I am seeing based on this example alone:
Basic translations still seem to work, but anything involving hovers and clicks is just plain broken at the moment. Not quite sure how to approach this yet. I probably want to merge this PR though and then we can figure out how to approach the javascript side in a different issue and PR. |
|
Alright did a bit more digging. It looks like it might only be
|
|
They have it all documented here: |
Cool, I think I got most of it already. Can you have a look at the issue as well and let me know what you think best. I can see multiple approaches to this. If you have a good idea I'd be happy to let you take it up as well. |
| WebsocketJsonMessage.ChatServerInfo serverInfo = | ||
| MinecraftServerIdentifier.getCurrentServerInfo(); | ||
| String minecraftVersion = SharedConstants.getGameVersion().getName(); | ||
| String minecraftVersion = SharedConstants.getGameVersion().name(); |
There was a problem hiding this comment.
I noticed here is using GameVersion name() instead of id(). Is it intentional?

Partially covers #132
Turns out it was quite a bit more involved than I had thought. A bunch of minecraft API changes (big thanks to @talklittle for doing most of the leg work there), a gradle upgrade, which broke a bunch of building which I then also had to fix. But, it should all work now :)