diff --git a/v0.1/bedrock-packets.wit b/v0.1/bedrock-packets.wit index da75d59..0ee2ee2 100644 --- a/v0.1/bedrock-packets.wit +++ b/v0.1/bedrock-packets.wit @@ -347,6 +347,18 @@ interface bedrock-packets { client-throttle-threshold: u8, client-throttle-scalar: f32, } + enum c-play-status { + login-success, + outdated-client, + outdated-server, + player-spawn, + invalid-tenant, + edition-mismatch-edu-to-vanilla, + edition-mismatch-vanilla-to-edu, + server-full-sub-client, + editor-mismatch-editor-to-vanilla, + editor-mismatch-vanilla-to-editor, + } record c-player-hotbar { selected-slot: s32, container-id: u8, @@ -572,6 +584,7 @@ interface bedrock-packets { c-move-player(c-move-player), c-network-chunk-publisher-update(c-network-chunk-publisher-update), c-network-settings(c-network-settings), + c-play-status(c-play-status), c-player-hotbar(c-player-hotbar), c-player-list(c-player-list), c-connected-pong(c-connected-pong), diff --git a/v0.1/common.wit b/v0.1/common.wit index 282a219..da26a5a 100644 --- a/v0.1/common.wit +++ b/v0.1/common.wit @@ -1,9 +1,5 @@ /// Provides common types and utilities used across the entire plugin API. interface common { - /// Serialized text component as a postcard byte array. - /// @deprecated Use the text-component resource from the text interface instead. - type raw-text-component = list; - /// A position in the world grid (integers). record block-pos { x: s32, @@ -12,7 +8,11 @@ interface common { } /// A precise coordinate in the world (floats). - type position = tuple; + record position { + x: f64, + y: f64, + z: f64, + } /// Represents the hands of a player. enum hand { diff --git a/v0.1/java-packets.wit b/v0.1/java-packets.wit index 845a2fc..f3aba2e 100644 --- a/v0.1/java-packets.wit +++ b/v0.1/java-packets.wit @@ -219,6 +219,10 @@ interface java-packets { record s-rename-item { item-name: string, } + variant s-seen-advancement { + open-tab(string), + close-tab, + } record s-select-trade { selected-slot: s32, } @@ -912,6 +916,7 @@ interface java-packets { s-recipe-book-change-settings(s-recipe-book-change-settings), s-recipe-book-seen-recipe(s-recipe-book-seen-recipe), s-rename-item(s-rename-item), + s-seen-advancement(s-seen-advancement), s-select-trade(s-select-trade), s-set-beacon(s-set-beacon), s-set-command-block(s-set-command-block),