minecraft-data 3.49.1 → 3.51.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/data.js +73 -1
  2. package/doc/history.md +8 -0
  3. package/index.d.ts +398 -1
  4. package/minecraft-data/README.md +2 -2
  5. package/minecraft-data/data/bedrock/1.16.201/proto.yml +1 -0
  6. package/minecraft-data/data/bedrock/1.16.201/protocol.json +12 -5
  7. package/minecraft-data/data/bedrock/1.16.201/types.yml +2 -2
  8. package/minecraft-data/data/bedrock/1.16.210/proto.yml +1 -0
  9. package/minecraft-data/data/bedrock/1.16.210/protocol.json +12 -5
  10. package/minecraft-data/data/bedrock/1.16.210/types.yml +2 -2
  11. package/minecraft-data/data/bedrock/1.16.220/proto.yml +1 -0
  12. package/minecraft-data/data/bedrock/1.16.220/protocol.json +12 -5
  13. package/minecraft-data/data/bedrock/1.16.220/types.yml +2 -2
  14. package/minecraft-data/data/bedrock/1.17.0/proto.yml +1 -0
  15. package/minecraft-data/data/bedrock/1.17.0/protocol.json +12 -5
  16. package/minecraft-data/data/bedrock/1.17.0/types.yml +2 -2
  17. package/minecraft-data/data/bedrock/1.17.10/proto.yml +1 -0
  18. package/minecraft-data/data/bedrock/1.17.10/protocol.json +12 -5
  19. package/minecraft-data/data/bedrock/1.17.10/types.yml +2 -2
  20. package/minecraft-data/data/bedrock/1.17.30/proto.yml +1 -0
  21. package/minecraft-data/data/bedrock/1.17.30/protocol.json +12 -5
  22. package/minecraft-data/data/bedrock/1.17.30/types.yml +2 -2
  23. package/minecraft-data/data/bedrock/1.17.40/proto.yml +1 -0
  24. package/minecraft-data/data/bedrock/1.17.40/protocol.json +12 -5
  25. package/minecraft-data/data/bedrock/1.17.40/types.yml +2 -2
  26. package/minecraft-data/data/bedrock/1.18.0/proto.yml +1 -0
  27. package/minecraft-data/data/bedrock/1.18.0/protocol.json +12 -5
  28. package/minecraft-data/data/bedrock/1.18.0/types.yml +2 -2
  29. package/minecraft-data/data/bedrock/1.18.11/proto.yml +1 -0
  30. package/minecraft-data/data/bedrock/1.18.11/protocol.json +12 -5
  31. package/minecraft-data/data/bedrock/1.18.11/types.yml +2 -2
  32. package/minecraft-data/data/bedrock/1.18.30/proto.yml +1 -0
  33. package/minecraft-data/data/bedrock/1.18.30/protocol.json +12 -5
  34. package/minecraft-data/data/bedrock/1.18.30/types.yml +2 -2
  35. package/minecraft-data/data/bedrock/1.19.1/proto.yml +1 -0
  36. package/minecraft-data/data/bedrock/1.19.1/protocol.json +12 -5
  37. package/minecraft-data/data/bedrock/1.19.1/types.yml +2 -2
  38. package/minecraft-data/data/bedrock/1.19.10/proto.yml +1 -0
  39. package/minecraft-data/data/bedrock/1.19.10/protocol.json +12 -5
  40. package/minecraft-data/data/bedrock/1.19.10/types.yml +2 -2
  41. package/minecraft-data/data/bedrock/1.19.20/proto.yml +1 -0
  42. package/minecraft-data/data/bedrock/1.19.20/protocol.json +12 -5
  43. package/minecraft-data/data/bedrock/1.19.20/types.yml +2 -2
  44. package/minecraft-data/data/bedrock/1.19.21/proto.yml +1 -0
  45. package/minecraft-data/data/bedrock/1.19.21/protocol.json +12 -5
  46. package/minecraft-data/data/bedrock/1.19.21/types.yml +2 -2
  47. package/minecraft-data/data/bedrock/1.19.30/proto.yml +1 -0
  48. package/minecraft-data/data/bedrock/1.19.30/protocol.json +12 -5
  49. package/minecraft-data/data/bedrock/1.19.30/types.yml +2 -2
  50. package/minecraft-data/data/bedrock/1.19.40/proto.yml +1 -0
  51. package/minecraft-data/data/bedrock/1.19.40/protocol.json +12 -5
  52. package/minecraft-data/data/bedrock/1.19.40/types.yml +2 -2
  53. package/minecraft-data/data/bedrock/1.19.50/proto.yml +1 -0
  54. package/minecraft-data/data/bedrock/1.19.50/protocol.json +12 -5
  55. package/minecraft-data/data/bedrock/1.19.50/types.yml +2 -2
  56. package/minecraft-data/data/bedrock/1.19.60/proto.yml +1 -0
  57. package/minecraft-data/data/bedrock/1.19.60/protocol.json +13 -6
  58. package/minecraft-data/data/bedrock/1.19.60/types.yml +3 -3
  59. package/minecraft-data/data/bedrock/1.19.62/proto.yml +1 -0
  60. package/minecraft-data/data/bedrock/1.19.62/protocol.json +13 -6
  61. package/minecraft-data/data/bedrock/1.19.62/types.yml +3 -3
  62. package/minecraft-data/data/bedrock/1.19.70/proto.yml +1 -0
  63. package/minecraft-data/data/bedrock/1.19.70/protocol.json +13 -6
  64. package/minecraft-data/data/bedrock/1.19.70/types.yml +3 -3
  65. package/minecraft-data/data/bedrock/1.19.80/proto.yml +1 -0
  66. package/minecraft-data/data/bedrock/1.19.80/protocol.json +14 -7
  67. package/minecraft-data/data/bedrock/1.19.80/types.yml +4 -4
  68. package/minecraft-data/data/bedrock/1.20.0/proto.yml +1 -0
  69. package/minecraft-data/data/bedrock/1.20.0/protocol.json +14 -7
  70. package/minecraft-data/data/bedrock/1.20.0/types.yml +4 -4
  71. package/minecraft-data/data/bedrock/1.20.10/proto.yml +1 -0
  72. package/minecraft-data/data/bedrock/1.20.10/protocol.json +14 -7
  73. package/minecraft-data/data/bedrock/1.20.10/types.yml +4 -4
  74. package/minecraft-data/data/bedrock/1.20.30/proto.yml +1 -0
  75. package/minecraft-data/data/bedrock/1.20.30/protocol.json +14 -7
  76. package/minecraft-data/data/bedrock/1.20.30/types.yml +4 -4
  77. package/minecraft-data/data/bedrock/1.20.40/proto.yml +4089 -0
  78. package/minecraft-data/data/bedrock/1.20.40/protocol.json +14 -7
  79. package/minecraft-data/data/bedrock/1.20.40/types.yml +2275 -0
  80. package/minecraft-data/data/bedrock/1.20.50/protocol.json +12080 -0
  81. package/minecraft-data/data/bedrock/1.20.50/version.json +6 -0
  82. package/minecraft-data/data/bedrock/common/protocolVersions.json +6 -0
  83. package/minecraft-data/data/bedrock/common/versions.json +2 -1
  84. package/minecraft-data/data/bedrock/latest/proto.yml +45 -2
  85. package/minecraft-data/data/bedrock/latest/types.yml +21 -4
  86. package/minecraft-data/data/dataPaths.json +74 -2
  87. package/minecraft-data/data/pc/1.20.2/protocol.json +23 -11
  88. package/minecraft-data/data/pc/1.20.2/recipes.json +385 -409
  89. package/minecraft-data/data/pc/1.20.3/blockCollisionShapes.json +136951 -0
  90. package/minecraft-data/data/pc/1.20.3/blocks.json +39334 -0
  91. package/minecraft-data/data/pc/1.20.3/commands.json +18734 -0
  92. package/minecraft-data/data/pc/1.20.3/entities.json +1262 -0
  93. package/minecraft-data/data/pc/1.20.3/foods.json +402 -0
  94. package/minecraft-data/data/pc/1.20.3/items.json +8591 -0
  95. package/minecraft-data/data/pc/1.20.3/language.json +6542 -0
  96. package/minecraft-data/data/pc/1.20.3/materials.json +154 -0
  97. package/minecraft-data/data/pc/1.20.3/particles.json +406 -0
  98. package/minecraft-data/data/pc/1.20.3/recipes.json +15119 -0
  99. package/minecraft-data/data/pc/1.20.3/version.json +5 -0
  100. package/minecraft-data/data/pc/1.20.4/blocks.json +39334 -0
  101. package/minecraft-data/data/pc/1.20.4/version.json +5 -0
  102. package/minecraft-data/data/pc/1.8/items.json +1114 -90
  103. package/minecraft-data/data/pc/common/protocolVersions.json +32 -0
  104. package/minecraft-data/data/pc/common/versions.json +3 -1
  105. package/minecraft-data/doc/history.md +12 -0
  106. package/minecraft-data/tools/js/test/audit_recipes.js +27 -0
  107. package/minecraft-data/tools/js/test/test.js +1 -0
  108. package/package.json +2 -2
  109. package/typings/generate-typings.js +21 -0
  110. package/typings/index-template.d.ts +2 -0
  111. package/typings/test-typings.ts +5 -0
@@ -0,0 +1,4089 @@
1
+ # Created from MiNET and gophertunnel docs
2
+ # The version below is the latest version this protocol schema was updated for.
3
+ # The output protocol.json will be in the folder for the version
4
+ !version: 1.20.40
5
+
6
+ # Some ProtoDef aliases
7
+ string: ["pstring",{"countType":"varint"}] # String / array types
8
+ ByteArray: ["buffer",{"countType":"varint"}]
9
+ SignedByteArray: ["buffer",{"countType":"zigzag32"}]
10
+ LittleString: ["pstring",{"countType":"li32"}]
11
+ LatinString: ["pstring",{"countType":"varint", "encoding": "latin1"}]
12
+ ShortArray: ["buffer",{"countType":"li16"}]
13
+ ShortString: ["pstring",{"countType":"li16"}]
14
+ varint64: native # Some primitives
15
+ zigzag32: native
16
+ zigzag64: native
17
+ uuid: native # Data types & special handling
18
+ byterot: native
19
+ bitflags: native
20
+ restBuffer: native
21
+ encapsulated: native
22
+ nbt: native # NBT
23
+ lnbt: native
24
+ nbtLoop: native
25
+ enum_size_based_on_values_len: native # Packet-specific custom logic
26
+ MapInfo: native
27
+
28
+ # load the packet map file (auto-generated)
29
+ !import: packet_map.yml
30
+
31
+ !StartDocs: Packets
32
+
33
+ # # Login Sequence
34
+ # The login process is as follows:
35
+ #
36
+ # * C→S: [Login](#packet_login)
37
+ # * S→C: [Server To Client Handshake](#packet_server_to_client_handshake)
38
+ # * C→S: [Client To Server Handshake](#packet_client_to_server_handshake)
39
+ # * S→C: [Play Status (Login success)](#packet_play_status)
40
+ # * To spawn, the following packets should be sent, in order, after the ones above:
41
+ # * S→C: [Resource Packs Info](#packet_resource_packs_info)
42
+ # * C→S: [Resource Pack Client Response](#packet_resource_pack_client_response)
43
+ # * S→C: [Resource Pack Stack](#packet_resource_pack_stack)
44
+ # * C→S: [Resource Pack Client Response](#packet_resource_pack_client_response)
45
+ # * S→C: [Start Game](#packet_start_game)
46
+ # * S→C: [Creative Content](#packet_creative_content)
47
+ # * S→C: [Biome Definition List](#packet_biome_definition_list)
48
+ # * S→C: [Chunks](#packet_level_chunk)
49
+ # * S→C: [Play Status (Player spawn)](#packet_play_status)
50
+ #
51
+ # If there are no resource packs being sent, a Resource Pack Stack can be sent directly
52
+ # after Resource Packs Info to avoid the client responses.
53
+ #
54
+ # ===
55
+
56
+ packet_login:
57
+ !id: 0x01
58
+ !bound: server
59
+ # Protocol version (Big Endian!)
60
+ protocol_version: i32
61
+ tokens: '["encapsulated", { "lengthType": "varint", "type": "LoginTokens" }]'
62
+
63
+ LoginTokens:
64
+ # JSON array of JWT data: contains the display name, UUID and XUID
65
+ # It should be signed by the Mojang public key
66
+ identity: LittleString
67
+ # Skin related data
68
+ client: LittleString
69
+
70
+ packet_play_status:
71
+ !id: 0x02
72
+ !bound: client
73
+ status: i32 =>
74
+ # Sent after Login has been successfully decoded and the player has logged in
75
+ 0: login_success
76
+ # Displays "Could not connect: Outdated client!"
77
+ 1: failed_client
78
+ # Displays "Could not connect: Outdated server!"
79
+ 2: failed_spawn
80
+ # Sent after world data to spawn the player
81
+ 3: player_spawn
82
+ # Displays "Unable to connect to world. Your school does not have access to this server."
83
+ 4: failed_invalid_tenant
84
+ # Displays "The server is not running Minecraft: Education Edition. Failed to connect."
85
+ 5: failed_vanilla_edu
86
+ # Displays "The server is running an incompatible edition of Minecraft. Failed to connect."
87
+ 6: failed_edu_vanilla
88
+ # Displays "Wow this server is popular! Check back later to see if space opens up. Server Full"
89
+ 7: failed_server_full
90
+ # Cannot join a vanilla game on editor
91
+ 8: failed_editor_vanilla_mismatch
92
+ # Cannot join an editor game on vanilla
93
+ 9: failed_vanilla_editor_mismatch
94
+
95
+
96
+ packet_server_to_client_handshake:
97
+ !id: 0x03
98
+ !bound: client
99
+ # Contains the salt to complete the Diffie-Hellman key exchange
100
+ token: string
101
+
102
+
103
+ # Sent by the client in response to a Server To Client Handshake packet
104
+ # sent by the server. It is the first encrypted packet in the login handshake
105
+ # and serves as a confirmation that encryption is correctly initialized client side.
106
+ # It has no fields.
107
+ packet_client_to_server_handshake:
108
+ !id: 0x04
109
+ !bound: server
110
+
111
+ # Sent by the server to disconnect a client.
112
+ packet_disconnect:
113
+ !id: 0x05
114
+ !bound: client
115
+ # Reason is the reason for the disconnection. It seems as if this field has no use other than for
116
+ # telemetry reasons as it does not affect the message that gets displayed on the disconnect screen.
117
+ reason: DisconnectFailReason
118
+ # Specifies if the disconnection screen should be hidden when the client is disconnected,
119
+ # meaning it will be sent directly to the main menu.
120
+ hide_disconnect_reason: bool
121
+ # An optional message to show when disconnected.
122
+ message: string
123
+
124
+
125
+ packet_resource_packs_info:
126
+ !id: 0x06
127
+ !bound: client
128
+ # If the resource pack requires the client accept it.
129
+ must_accept: bool
130
+ # If scripting is enabled.
131
+ has_scripts: bool
132
+ # ForcingServerPacks is currently an unclear field.
133
+ force_server_packs: bool
134
+ # A list of behaviour packs that the client needs to download before joining the server.
135
+ # All of these behaviour packs will be applied together.
136
+ behaviour_packs: BehaviourPackInfos
137
+ # A list of resource packs that the client needs to download before joining the server.
138
+ # The order of these resource packs is not relevant in this packet. It is however important in the Resource Pack Stack packet.
139
+ texture_packs: TexturePackInfos
140
+ # Resource Pack Links contains a list of URLs where the client can download required
141
+ # resource packs, as opposed to the current Minecraft sever sending the data over
142
+ resource_pack_links: []varint
143
+ id: string
144
+ url: string
145
+
146
+ packet_resource_pack_stack:
147
+ !id: 0x07
148
+ !bound: client
149
+ # If the resource pack must be accepted for the player to join the server.
150
+ must_accept: bool
151
+ # [inline]
152
+ behavior_packs: ResourcePackIdVersions
153
+ # [inline]
154
+ resource_packs: ResourcePackIdVersions
155
+ game_version: string
156
+ experiments: Experiments # ??? such random fields
157
+ experiments_previously_used: bool
158
+
159
+ packet_resource_pack_client_response:
160
+ !id: 0x08
161
+ !bound: server
162
+ response_status: u8 =>
163
+ 0: none
164
+ 1: refused
165
+ 2: send_packs
166
+ 3: have_all_packs
167
+ 4: completed
168
+ # All of the pack IDs.
169
+ resourcepackids: ResourcePackIds
170
+
171
+ # Sent by the client to the server to send chat messages, and by the server to the client
172
+ # to forward or send messages, which may be chat, popups, tips etc.
173
+ ## https://github.com/pmmp/PocketMine-MP/blob/a43b46a93cb127f037c879b5d8c29cda251dd60c/src/pocketmine/network/mcpe/protocol/TextPacket.php
174
+ ## https://github.com/Sandertv/gophertunnel/blob/05ac3f843dd60d48b9ca0ab275cda8d9e85d8c43/minecraft/protocol/packet/text.go
175
+ packet_text:
176
+ !id: 0x09
177
+ !bound: both
178
+ # TextType is the type of the text sent. When a client sends this to the server, it should always be
179
+ # TextTypeChat. If the server sends it, it may be one of the other text types above.
180
+ type: u8 =>
181
+ 0: raw
182
+ 1: chat
183
+ 2: translation
184
+ 3: popup
185
+ 4: jukebox_popup
186
+ 5: tip
187
+ 6: system
188
+ 7: whisper
189
+ 8: announcement
190
+ 9: json_whisper
191
+ 10: json
192
+ 11: json_announcement
193
+ # NeedsTranslation specifies if any of the messages need to be translated. It seems that where % is found
194
+ # in translatable text types, these are translated regardless of this bool. Translatable text types
195
+ # include TextTypeTip, TextTypePopup and TextTypeJukeboxPopup.
196
+ needs_translation: bool
197
+ _: type?
198
+ if chat or whisper or announcement:
199
+ source_name: string
200
+ message: string
201
+ if raw or tip or system or json_whisper or json or json_announcement:
202
+ message: string
203
+ if translation or popup or jukebox_popup:
204
+ message: string
205
+ parameters: string[]varint
206
+ # The XUID of the player who sent this message.
207
+ xuid: string
208
+ # PlatformChatID is an identifier only set for particular platforms when chatting (presumably only for
209
+ # Nintendo Switch). It is otherwise an empty string, and is used to decide which players are able to
210
+ # chat with each other.
211
+ platform_chat_id: string
212
+ # For additional information and examples of all the chat types above, see here: https://imgur.com/a/KhcFscg
213
+
214
+
215
+ # Sent by the server to update the current time client-side. The client actually advances time
216
+ # client-side by itself, so this packet does not need to be sent each tick. It is merely a means
217
+ # of synchronizing time between server and client.
218
+ packet_set_time:
219
+ !id: 0x0a
220
+ !bound: client
221
+ # Time is the current time. The time is not limited to 24000 (time of day), but continues
222
+ # progressing after that.
223
+ time: zigzag32
224
+
225
+ # Sent by the server to send information about the world the player will be spawned in.
226
+ packet_start_game:
227
+ !id: 0x0b
228
+ !bound: client
229
+ # The unique ID of the player. The unique ID is a value that remains consistent across
230
+ # different sessions of the same world, but most unofficial servers simply fill the
231
+ # runtime ID of the entity out for this field.
232
+ entity_id: zigzag64
233
+ # The runtime ID of the player. The runtime ID is unique for each world session,
234
+ # and entities are generally identified in packets using this runtime ID.
235
+ runtime_entity_id: varint64
236
+ # PlayerGameMode is the game mode the player currently has. It is a value from 0-4, with 0 being
237
+ # survival mode, 1 being creative mode, 2 being adventure mode, 3 being survival spectator and 4 being
238
+ # creative spectator.
239
+ # This field may be set to 5 to make the client fall back to the game mode set in the WorldGameMode
240
+ # field.
241
+ player_gamemode: GameMode
242
+ # The spawn position of the player in the world. In servers this is often the same as the
243
+ # world's spawn position found below.
244
+ player_position: vec3f
245
+ # The pitch and yaw of the player
246
+ rotation: vec2f
247
+ # The seed used to generate the world.
248
+ seed: lu64
249
+ biome_type: li16
250
+ biome_name: string
251
+ # Dimension is the ID of the dimension that the player spawns in. It is a value from 0-2,
252
+ # with 0 being the overworld, 1 being the nether and 2 being the end.
253
+ dimension: zigzag32 =>
254
+ 0: overworld
255
+ 1: nether
256
+ 2: end
257
+ # Generator is the generator used for the world. It is a value from 0-4, with 0 being old
258
+ # limited worlds, 1 being infinite worlds, 2 being flat worlds, 3 being nether worlds and
259
+ # 4 being end worlds. A value of 0 will actually make the client stop rendering chunks you
260
+ # send beyond the world limit.
261
+ generator: zigzag32
262
+ # The world game mode that a player gets when it first spawns in the world. It is shown in the
263
+ # settings and is used if the Player Gamemode is set to 5.
264
+ world_gamemode: GameMode
265
+ # Difficulty is the difficulty of the world. It is a value from 0-3, with 0 being peaceful,
266
+ # 1 being easy, 2 being normal and 3 being hard.
267
+ difficulty: zigzag32
268
+ # The block on which the world spawn of the world. This coordinate has no effect on the place
269
+ # that the client spawns, but it does have an effect on the direction that a compass poInts.
270
+ spawn_position: BlockCoordinates
271
+ # Defines if achievements are disabled in the world. The client crashes if this value is set
272
+ # to true while the player's or the world's game mode is creative, and it's recommended to simply
273
+ # always set this to false as a server.
274
+ achievements_disabled: bool
275
+ # EditorWorldType is a value to dictate the type of editor mode, a special mode recently introduced adding
276
+ # "powerful tools for editing worlds, intended for experienced creators."
277
+ editor_world_type: zigzag32 =>
278
+ - not_editor
279
+ - project
280
+ - test_level
281
+ # Whether the world was created in editor mode
282
+ created_in_editor: bool
283
+ # Whether the world was exported from editor mode
284
+ exported_from_editor: bool
285
+ # The time at which the day cycle was locked if the day cycle is disabled using the respective
286
+ # game rule. The client will maIntain this time as Boolean as the day cycle is disabled.
287
+ day_cycle_stop_time: zigzag32
288
+ # Some Minecraft: Education Edition field that specifies what 'region' the world was from,
289
+ # with 0 being None, 1 being RestOfWorld, and 2 being China. The actual use of this field is unknown.
290
+ edu_offer: zigzag32
291
+ # Specifies if the world has education edition features enabled, such as the blocks or entities
292
+ # specific to education edition.
293
+ edu_features_enabled: bool
294
+ edu_product_uuid: string
295
+ # The level specifying the Intensity of the rain falling. When set to 0, no rain falls at all.
296
+ rain_level: lf32
297
+ lightning_level: lf32
298
+ # The level specifying the Intensity of the thunder. This may actually be set independently
299
+ # from the rain level, meaning dark clouds can be produced without rain.
300
+ has_confirmed_platform_locked_content: bool
301
+ # Specifies if the world is a multi-player game. This should always be set to true for servers.
302
+ is_multiplayer: bool
303
+ # Specifies if LAN broadcast was Intended to be enabled for the world.
304
+ broadcast_to_lan: bool
305
+ # The mode used to broadcast the joined game across XBOX Live.
306
+ xbox_live_broadcast_mode: varint
307
+ # The mode used to broadcast the joined game across the platform.
308
+ platform_broadcast_mode: varint
309
+ # If commands are enabled for the player. It is recommended to always set this to true on the
310
+ # server, as setting it to false means the player cannot, under any circumstance, use a command.
311
+ enable_commands: bool
312
+ # Specifies if the texture pack the world might hold is required, meaning the client was
313
+ # forced to download it before joining.
314
+ is_texturepacks_required: bool
315
+ # Defines game rules currently active with their respective values. The value of these game
316
+ # rules may be either 'bool', 'Int32' or 'Float32'. Some game rules are server side only,
317
+ # and don't necessarily need to be sent to the client.
318
+ gamerules: GameRules
319
+ experiments: Experiments
320
+ experiments_previously_used: bool
321
+ # Specifies if the world had the bonus map setting enabled when generating it.
322
+ # It does not have any effect client-side.
323
+ bonus_chest: bool
324
+ # Specifies if the world has the start with map setting enabled, meaning each
325
+ # joining player obtains a map. This should always be set to false, because the
326
+ # client obtains a map all on its own accord if this is set to true.
327
+ map_enabled: bool
328
+ # The permission level of the player. It is a value from 0-3, with 0 being visitor,
329
+ # 1 being member, 2 being operator and 3 being custom.
330
+ permission_level: PermissionLevel
331
+ # The radius around the player in which chunks are ticked. Most servers set this value
332
+ # to a fixed number, as it does not necessarily affect anything client-side.
333
+ server_chunk_tick_range: li32
334
+ # Specifies if the texture pack of the world is locked, meaning it cannot be disabled
335
+ # from the world. This is typically set for worlds on the marketplace that have a dedicated
336
+ # texture pack.
337
+ has_locked_behavior_pack: bool
338
+ # Specifies if the texture pack of the world is locked, meaning it cannot be disabled from the
339
+ # world. This is typically set for worlds on the marketplace that have a dedicated texture pack.
340
+ has_locked_resource_pack: bool
341
+ # Specifies if the world from the server was from a locked world template.
342
+ # For servers this should always be set to false.
343
+ is_from_locked_world_template: bool
344
+ msa_gamertags_only: bool
345
+ # Specifies if the world from the server was from a locked world template.
346
+ # For servers this should always be set to false.
347
+ is_from_world_template: bool
348
+ # Specifies if the world was a template that locks all settings that change properties
349
+ # above in the settings GUI. It is recommended to set this to true for servers that
350
+ # do not allow things such as setting game rules through the GUI.
351
+ is_world_template_option_locked: bool
352
+ # A hack that Mojang put in place to preserve backwards compatibility with old villagers.
353
+ # The his never actually read though, so it has no functionality.
354
+ only_spawn_v1_villagers: bool
355
+ # PersonaDisabled is true if persona skins are disabled for the current game session.
356
+ persona_disabled: bool
357
+ # CustomSkinsDisabled is true if custom skins are disabled for the current game session.
358
+ custom_skins_disabled: bool
359
+ # EmoteChatMuted specifies if players will be sent a chat message when using certain emotes.
360
+ emote_chat_muted: bool
361
+ # The version of the game from which Vanilla features will be used.
362
+ # The exact function of this field isn't clear.
363
+ game_version: string
364
+ limited_world_width: li32
365
+ limited_world_length: li32
366
+ is_new_nether: bool
367
+ edu_resource_uri: EducationSharedResourceURI
368
+ experimental_gameplay_override: bool
369
+ # ChatRestrictionLevel specifies the level of restriction on in-game chat.
370
+ chat_restriction_level: u8 =>
371
+ 0: none
372
+ 1: dropped
373
+ 2: disabled
374
+ # DisablePlayerInteractions is true if the client should ignore other players when interacting with the world.
375
+ disable_player_interactions: bool
376
+ # A base64 encoded world ID that is used to identify the world.
377
+ level_id: string
378
+ # The name of the world that the player is joining. Note that this field shows up
379
+ # above the player list for the rest of the game session, and cannot be changed.
380
+ # Setting the server name to this field is recommended.
381
+ world_name: string
382
+ # A UUID specific to the premium world template that might have been used to
383
+ # generate the world. Servers should always fill out an empty String for this.
384
+ premium_world_template_id: string
385
+ # Specifies if the world was a trial world, meaning features are limited and there
386
+ # is a time limit on the world.
387
+ is_trial: bool
388
+
389
+ # MovementType specifies the way the server handles player movement. Available options are
390
+ # packet.AuthoritativeMovementModeClient, packet.AuthoritativeMovementModeServer and
391
+ # packet.AuthoritativeMovementModeServerWithRewind, where server the server authoritative types result
392
+ # in the client sending PlayerAuthInput packets instead of MovePlayer packets and the rewind mode
393
+ # requires sending the tick of movement and several actions.
394
+ #
395
+ # Specifies if the client or server is authoritative over the movement of the player,
396
+ # meaning it controls the movement of it.
397
+ ## https://github.com/pmmp/PocketMine-MP/blob/a43b46a93cb127f037c879b5d8c29cda251dd60c/src/pocketmine/network/mcpe/protocol/types/PlayerMovementType.php#L26
398
+ movement_authority: zigzag32 =>
399
+ 0: client
400
+ 1: server
401
+ # PlayerAuthInputPacket + a bunch of junk that solves a nonexisting problem
402
+ 2: server_with_rewind
403
+ # RewindHistorySize is the amount of history to keep at maximum if MovementType is
404
+ # packet.AuthoritativeMovementModeServerWithRewind.
405
+ rewind_history_size: zigzag32
406
+ # ServerAuthoritativeBlockBreaking specifies if block breaking should be sent through
407
+ # packet.PlayerAuthInput or not. This field is somewhat redundant as it is always enabled if
408
+ # MovementType is packet.AuthoritativeMovementModeServer or
409
+ # packet.AuthoritativeMovementModeServerWithRewind
410
+ server_authoritative_block_breaking: bool
411
+
412
+ # The total time in ticks that has elapsed since the start of the world.
413
+ current_tick: li64
414
+ # The seed used to seed the random used to produce enchantments in the enchantment table.
415
+ # Note that the exact correct random implementation must be used to produce the correct
416
+ # results both client- and server-side.
417
+ enchantment_seed: zigzag32
418
+
419
+ # BlockProperties is a list of all the custom blocks registered on the server.
420
+ block_properties: BlockProperties
421
+ # A list of all items with their legacy IDs which are available in the game.
422
+ # Failing to send any of the items that are in the game will crash mobile clients.
423
+ itemstates: Itemstates
424
+ # A unique ID specifying the multi-player session of the player.
425
+ # A random UUID should be filled out for this field.
426
+ multiplayer_correlation_id: string
427
+ # ServerAuthoritativeInventory specifies if the server authoritative inventory system is enabled. This
428
+ # is a new system introduced in 1.16. Backwards compatibility with the inventory transactions has to
429
+ # some extent been preserved, but will eventually be removed.
430
+ server_authoritative_inventory: bool
431
+ # The server's engine version, used for telemetry
432
+ engine: string
433
+ # PropertyData contains properties that should be applied on the player. These properties are the same as the
434
+ # ones that are sent in the SyncActorProperty packet.
435
+ property_data: nbt
436
+ # A checksum to ensure block types between the server and client match
437
+ block_pallette_checksum: lu64
438
+ # WorldTemplateID is a UUID that identifies the template that was used to generate the world. Servers that do not
439
+ # use a world based off of a template can set this to an empty UUID.
440
+ world_template_id: uuid
441
+ # ClientSideGeneration is true if the client should use the features registered in the FeatureRegistry packet to
442
+ # generate terrain client-side to save on bandwidth.
443
+ client_side_generation: bool
444
+ # UseBlockNetworkIDHashes is true if the client should use the hash of a block's name as its network ID rather than
445
+ # its index in the expected block palette. This is useful for servers that wish to support multiple protocol versions
446
+ # and custom blocks, but it will result in extra bytes being written for every block in a sub chunk palette.
447
+ block_network_ids_are_hashes: bool
448
+ server_controlled_sound: bool
449
+
450
+ packet_add_player:
451
+ !id: 0x0c
452
+ !bound: client
453
+ # UUID is the UUID of the player. It is the same UUID that the client sent in the
454
+ # Login packet at the start of the session. A player with this UUID must exist
455
+ # in the player list (built up using the Player List packet) for it to show up in-game.
456
+ uuid: uuid
457
+ # Username is the name of the player. This username is the username that will be
458
+ # set as the initial name tag of the player.
459
+ username: string
460
+ # The runtime ID of the player. The runtime ID is unique for each world session,
461
+ # and entities are generally identified in packets using this runtime ID.
462
+ runtime_id: varint64
463
+ # An identifier only set for particular platforms when chatting (presumably only for
464
+ # Nintendo Switch). It is otherwise an empty string, and is used to decide which players
465
+ # are able to chat with each other.
466
+ platform_chat_id: string
467
+ # Position is the position to spawn the player on. If the player is on a distance that the viewer cannot
468
+ # see it, the player will still show up if the viewer moves closer.
469
+ position: vec3f
470
+ # Velocity is the initial velocity the player spawns with. This velocity will initiate client side
471
+ # movement of the player.
472
+ velocity: vec3f
473
+ # Pitch is the vertical rotation of the player. Facing straight forward yields a pitch of 0. Pitch is
474
+ # measured in degrees.
475
+ pitch: lf32
476
+ # Yaw is the horizontal rotation of the player. Yaw is also measured in degrees.
477
+ yaw: lf32
478
+ # HeadYaw is the same as Yaw, except that it applies specifically to the head of the player. A different
479
+ # value for HeadYaw than Yaw means that the player will have its head turned.
480
+ head_yaw: lf32
481
+ # HeldItem is the item that the player is holding. The item is shown to the viewer as soon as the player
482
+ # itself shows up. Needless to say that this field is rather pointless, as additional packets still must
483
+ # be sent for armour to show up.
484
+ held_item: Item
485
+ # GameType is the game type of the player. If set to GameTypeSpectator, the player will not be shown to viewers.
486
+ gamemode: GameMode
487
+ # EntityMetadata is a map of entity metadata, which includes flags and data properties that alter in
488
+ # particular the way the player looks. Flags include ones such as 'on fire' and 'sprinting'.
489
+ # The metadata values are indexed by their property key.
490
+ metadata: MetadataDictionary
491
+ # EntityProperties holds lists of entity properties that define specific attributes of an entity. As of v1.19.40, the
492
+ # vanilla server does not use these properties, however they are still supported by the protocol.
493
+ properties: EntityProperties
494
+ # The unique ID of the player. The unique ID is a value that remains consistent
495
+ # across different sessions of the same world, but most unoffical servers simply
496
+ # fill the runtime ID of the player out for this field.
497
+ unique_id: li64
498
+ permission_level: PermissionLevel
499
+ command_permission: CommandPermissionLevel
500
+ # AbilityLayer represents the abilities of a specific layer, such as the base layer or the spectator layer.
501
+ abilities: AbilityLayers[]u8
502
+ # EntityLinks is a list of entity links that are currently active on the player. These links alter the
503
+ # way the player shows up when first spawned in terms of it shown as riding an entity. Setting these
504
+ # links is important for new viewers to see the player is riding another entity.
505
+ links: Links
506
+ # DeviceID is the device ID set in one of the files found in the storage of the device of the player. It
507
+ # may be changed freely, so it should not be relied on for anything.
508
+ device_id: string
509
+ # BuildPlatform is the build platform/device OS of the player that is about to be added, as it sent in
510
+ # the Login packet when joining.
511
+ device_os: DeviceOS
512
+
513
+ packet_add_entity:
514
+ !id: 0x0d
515
+ !bound: client
516
+ # EntityUniqueID is the unique ID of the entity. The unique ID is a value that remains consistent across
517
+ # different sessions of the same world, but most servers simply fill the runtime ID of the entity out for
518
+ unique_id: zigzag64
519
+ # EntityRuntimeID is the runtime ID of the entity. The runtime ID is unique for each world session, and
520
+ # entities are generally identified in packets using this runtime ID.
521
+ runtime_id: varint64
522
+ # EntityType is the string entity type of the entity, for example 'minecraft:skeleton'. A list of these
523
+ # entities may be found online.
524
+ entity_type: string
525
+ # Position is the position to spawn the entity on. If the entity is on a distance that the player cannot
526
+ # see it, the entity will still show up if the player moves closer.
527
+ position: vec3f
528
+ # Velocity is the initial velocity the entity spawns with. This velocity will initiate client side
529
+ # movement of the entity.
530
+ velocity: vec3f
531
+ # Pitch is the vertical rotation of the entity. Facing straight forward yields a pitch of 0. Pitch is
532
+ # measured in degrees.
533
+ pitch: lf32
534
+ # Yaw is the horizontal rotation of the entity. Yaw is also measured in degrees.
535
+ yaw: lf32
536
+ # HeadYaw is the same as Yaw, except that it applies specifically to the head of the entity. A different value for
537
+ # HeadYaw than Yaw means that the entity will have its head turned.
538
+ head_yaw: lf32
539
+ # BodyYaw is the same as Yaw, except that it applies specifically to the body of the entity. A different value for
540
+ # BodyYaw than HeadYaw means that the entity will have its body turned, although it is unclear what the difference
541
+ # between BodyYaw and Yaw is.
542
+ body_yaw: lf32
543
+ # Attributes is a slice of attributes that the entity has. It includes attributes such as its health,
544
+ # movement speed, etc.
545
+ attributes: EntityAttributes
546
+ # EntityMetadata is a map of entity metadata, which includes flags and data properties that alter in
547
+ # particular the way the entity looks. Flags include ones such as 'on fire' and 'sprinting'.
548
+ # The metadata values are indexed by their property key.
549
+ metadata: MetadataDictionary
550
+ # EntityProperties holds lists of entity properties that define specific attributes of an entity. As of v1.19.40, the
551
+ # vanilla server does not use these properties, however they are still supported by the protocol.
552
+ properties: EntityProperties
553
+ # EntityLinks is a list of entity links that are currently active on the entity. These links alter the
554
+ # way the entity shows up when first spawned in terms of it shown as riding an entity. Setting these
555
+ # links is important for new viewers to see the entity is riding another entity.
556
+ links: Links
557
+
558
+ packet_remove_entity:
559
+ !id: 0x0e
560
+ !bound: client
561
+ entity_id_self: zigzag64
562
+
563
+ packet_add_item_entity:
564
+ !id: 0x0f
565
+ !bound: client
566
+ entity_id_self: zigzag64
567
+ runtime_entity_id: varint64
568
+ item: Item
569
+ position: vec3f
570
+ velocity: vec3f
571
+ metadata: MetadataDictionary
572
+ is_from_fishing: bool
573
+
574
+ packet_take_item_entity:
575
+ !id: 0x11
576
+ !bound: client
577
+ runtime_entity_id: varint64
578
+ target: varint
579
+
580
+ # MoveActorAbsolute is sent by the server to move an entity to an absolute position. It is typically used
581
+ # for movements where high accuracy isn't needed, such as for long range teleporting.
582
+ packet_move_entity:
583
+ !id: 0x12
584
+ !bound: both
585
+ # EntityRuntimeID is the runtime ID of the entity. The runtime ID is unique for each world session, and
586
+ # entities are generally identified in packets using this runtime ID.
587
+ runtime_entity_id: varint64
588
+ # Flags is a combination of flags that specify details of the movement. It is a combination of the flags
589
+ # above.
590
+ flags: u8
591
+ # Position is the position to spawn the entity on. If the entity is on a distance that the player cannot
592
+ # see it, the entity will still show up if the player moves closer.
593
+ position: vec3f
594
+ # Rotation is a Vec3 holding the X, Y and Z rotation of the entity after the movement. This is a Vec3 for
595
+ # the reason that projectiles like arrows don't have yaw/pitch, but do have roll.
596
+ rotation: Rotation
597
+
598
+ # MovePlayer is sent by players to send their movement to the server, and by the server to update the
599
+ # movement of player entities to other players.
600
+ packet_move_player:
601
+ !id: 0x13
602
+ !bound: both
603
+ # EntityRuntimeID is the runtime ID of the player. The runtime ID is unique for each world session, and
604
+ # entities are generally identified in packets using this runtime ID.
605
+ runtime_id: varint
606
+ # Position is the position to spawn the player on. If the player is on a distance that the viewer cannot
607
+ # see it, the player will still show up if the viewer moves closer.
608
+ position: vec3f
609
+ # Pitch is the vertical rotation of the player. Facing straight forward yields a pitch of 0. Pitch is
610
+ # measured in degrees.
611
+ pitch: lf32
612
+ # Yaw is the horizontal rotation of the player. Yaw is also measured in degrees
613
+ yaw: lf32
614
+ # HeadYaw is the same as Yaw, except that it applies specifically to the head of the player. A different
615
+ # value for HeadYaw than Yaw means that the player will have its head turned
616
+ head_yaw: lf32
617
+ # Mode is the mode of the movement. It specifies the way the player's movement should be shown to other
618
+ # players. It is one of the constants below.
619
+ mode: u8 =>
620
+ 0: normal
621
+ 1: reset
622
+ 2: teleport
623
+ 3: rotation
624
+ # OnGround specifies if the player is considered on the ground. Note that proxies or hacked clients could
625
+ # fake this to always be true, so it should not be taken for granted.
626
+ on_ground: bool
627
+ # RiddenEntityRuntimeID is the runtime ID of the entity that the player might currently be riding. If not
628
+ # riding, this should be left 0.
629
+ ridden_runtime_id: varint
630
+ teleport: mode ?
631
+ if teleport:
632
+ # TeleportCause is written only if Mode is MoveModeTeleport. It specifies the cause of the teleportation,
633
+ # which is one of the constants above.
634
+ cause: li32 =>
635
+ 0: unknown
636
+ 1: projectile
637
+ 2: chorus_fruit
638
+ 3: command
639
+ 4: behavior
640
+ # TeleportSourceEntityType is the entity type that caused the teleportation, for example an ender pearl.
641
+ # TODO: is this still a integer and not a string?
642
+ source_entity_type: LegacyEntityType
643
+ tick: varint64
644
+
645
+ packet_rider_jump:
646
+ !id: 0x14
647
+ !bound: both
648
+ jump_strength: zigzag32
649
+
650
+ # UpdateBlock is sent by the server to update a block client-side, without resending the entire chunk that
651
+ # the block is located in. It is particularly useful for small modifications like block breaking/placing.
652
+ packet_update_block:
653
+ !id: 0x15
654
+ !bound: client
655
+ # Position is the block position at which a block is updated.
656
+ position: BlockCoordinates
657
+ # NewBlockRuntimeID is the runtime ID of the block that is placed at Position after sending the packet
658
+ # to the client.
659
+ block_runtime_id: varint
660
+ # Flags is a combination of flags that specify the way the block is updated client-side. It is a
661
+ # combination of the flags above, but typically sending only the BlockUpdateNetwork flag is sufficient.
662
+ flags: UpdateBlockFlags
663
+ # Layer is the world layer on which the block is updated. For most blocks, this is the first layer, as
664
+ # that layer is the default layer to place blocks on, but for blocks inside of each other, this differs.
665
+ layer: varint
666
+
667
+
668
+ UpdateBlockFlags: [ "bitflags",
669
+ {
670
+ "type": "varint",
671
+ "flags": {
672
+ "neighbors": 1,
673
+ "network": 2,
674
+ "no_graphic": 0b100,
675
+ "unused": 0b1000,
676
+ "priority": 0b10000,
677
+ }
678
+ }
679
+ ]
680
+
681
+ packet_add_painting:
682
+ !id: 0x16
683
+ !bound: client
684
+ entity_id_self: zigzag64
685
+ runtime_entity_id: varint64
686
+ coordinates: vec3f
687
+ direction: zigzag32
688
+ title: string
689
+
690
+ # TickSync is sent by the client and the server to maintain a synchronized, server-authoritative tick between
691
+ # the client and the server. The client sends this packet first, and the server should reply with another one
692
+ # of these packets, including the response time.
693
+ packet_tick_sync:
694
+ !id: 0x17
695
+ !bound: both
696
+ # ClientRequestTimestamp is the timestamp on which the client sent this packet to the server. The server
697
+ # should fill out that same value when replying.
698
+ # The ClientRequestTimestamp is always 0
699
+ request_time: li64
700
+ # ServerReceptionTimestamp is the timestamp on which the server received the packet sent by the client.
701
+ # When the packet is sent by the client, this value is 0.
702
+ # ServerReceptionTimestamp is generally the current tick of the server. It isn't an actual timestamp, as
703
+ # the field implies
704
+ response_time: li64
705
+
706
+ packet_level_sound_event_old:
707
+ !id: 0x18
708
+ !bound: both
709
+ sound_id: u8
710
+ position: vec3f
711
+ block_id: zigzag32
712
+ entity_type: zigzag32
713
+ is_baby_mob: bool
714
+ is_global: bool
715
+
716
+ packet_level_event:
717
+ !id: 0x19
718
+ !bound: client
719
+ event: zigzag32 =>
720
+ 1000: sound_click
721
+ 1001: sound_click_fail
722
+ 1002: sound_shoot
723
+ 1003: sound_door
724
+ 1004: sound_fizz
725
+ 1005: sound_ignite
726
+ 1007: sound_ghast
727
+ 1008: sound_ghast_shoot
728
+ 1009: sound_blaze_shoot
729
+ 1010: sound_door_bump
730
+ 1012: sound_door_crash
731
+ 1018: sound_enderman_teleport
732
+ 1020: sound_anvil_break
733
+ 1021: sound_anvil_use
734
+ 1022: sound_anvil_fall
735
+ 1030: sound_pop
736
+ 1032: sound_portal
737
+ 1040: sound_itemframe_add_item
738
+ 1041: sound_itemframe_remove
739
+ 1042: sound_itemframe_place
740
+ 1043: sound_itemframe_remove_item
741
+ 1044: sound_itemframe_rotate_item
742
+ 1050: sound_camera
743
+ 1051: sound_orb
744
+ 1052: sound_totem
745
+ 1060: sound_armor_stand_break
746
+ 1061: sound_armor_stand_hit
747
+ 1062: sound_armor_stand_fall
748
+ 1063: sound_armor_stand_place
749
+ 1064: pointed_dripstone_land
750
+ 1065: dye_used
751
+ 1066: ink_sack_used
752
+ 2000: particle_shoot #TODO: check 2000-2017
753
+ 2001: particle_destroy
754
+ 2002: particle_splash
755
+ 2003: particle_eye_despawn
756
+ 2004: particle_spawn
757
+ 2005: particle_crop_growth
758
+ 2006: particle_guardian_curse
759
+ 2007: particle_death_smoke
760
+ 2008: particle_block_force_field
761
+ 2009: particle_projectile_hit
762
+ 2010: particle_dragon_egg_teleport
763
+ 2011: particle_crop_eaten
764
+ 2012: particle_critical
765
+ 2013: particle_enderman_teleport
766
+ 2014: particle_punch_block
767
+ 2015: particle_bubble
768
+ 2016: particle_evaporate
769
+ 2017: particle_destroy_armor_stand
770
+ 2018: particle_breaking_egg
771
+ 2019: particle_destroy_egg
772
+ 2020: particle_evaporate_water
773
+ 2021: particle_destroy_block_no_sound
774
+ 2022: particle_knockback_roar
775
+ 2023: particle_teleport_trail
776
+ 2024: particle_point_cloud
777
+ 2025: particle_explosion
778
+ 2026: particle_block_explosion
779
+ 2027: particle_vibration_signal
780
+ 2028: particle_dripstone_drip
781
+ 2029: particle_fizz_effect
782
+ 2030: particle_wax_on
783
+ 2031: particle_wax_off
784
+ 2032: particle_scrape
785
+ 2033: particle_electric_spark
786
+ 2034: particle_turtle_egg
787
+ 2035: particle_sculk_shriek
788
+ 2036: sculk_catalyst_bloom
789
+ 2037: sculk_charge
790
+ 2038: sculk_charge_pop
791
+ 2039: sonic_explosion
792
+
793
+ 3001: start_rain
794
+ 3002: start_thunder
795
+ 3003: stop_rain
796
+ 3004: stop_thunder
797
+ 3005: pause_game #data: 1 to pause, 0 to resume
798
+ 3006: pause_game_no_screen #data: 1 to pause, 0 to resume - same effect as normal pause but without screen
799
+ 3007: set_game_speed #x coordinate of pos = scale factor (default 1.0)
800
+ 3500: redstone_trigger
801
+ 3501: cauldron_explode
802
+ 3502: cauldron_dye_armor
803
+ 3503: cauldron_clean_armor
804
+ 3504: cauldron_fill_potion
805
+ 3505: cauldron_take_potion
806
+ 3506: cauldron_fill_water
807
+ 3507: cauldron_take_water
808
+ 3508: cauldron_add_dye
809
+ 3509: cauldron_clean_banner
810
+ 3600: block_start_break
811
+ 3601: block_stop_break
812
+ 3602: block_break_speed
813
+ 3603: particle_punch_block_down
814
+ 3604: particle_punch_block_up
815
+ 3605: particle_punch_block_north
816
+ 3606: particle_punch_block_south
817
+ 3607: particle_punch_block_west
818
+ 3608: particle_punch_block_east
819
+ 4000: set_data
820
+ 9800: players_sleeping
821
+ 9801: sleeping_players
822
+ 0x4000: add_particle_mask
823
+ # 0x4000 | + particle ID
824
+ 16385: add_particle_bubble # 1
825
+ 16386: add_particle_bubble_manual # 2
826
+ 16387: add_particle_critical # 3
827
+ 16388: add_particle_block_force_field # 4
828
+ 16389: add_particle_smoke # 5
829
+ 16390: add_particle_explode # 6
830
+ 16391: add_particle_evaporation # 7
831
+ 16392: add_particle_flame # 8
832
+ 16393: add_particle_candle_flame # 9
833
+ 16394: add_particle_lava # 10
834
+ 16395: add_particle_large_smoke # 11
835
+ 16396: add_particle_redstone # 12
836
+ 16397: add_particle_rising_red_dust # 13
837
+ 16398: add_particle_item_break # 14
838
+ 16399: add_particle_snowball_poof # 15
839
+ 16400: add_particle_huge_explode # 16
840
+ 16401: add_particle_huge_explode_seed # 17
841
+ 16402: add_particle_mob_flame # 18
842
+ 16403: add_particle_heart # 19
843
+ 16404: add_particle_terrain # 20
844
+ 16405: add_particle_town_aura # 21
845
+ 16406: add_particle_portal # 22
846
+ 16408: add_particle_water_splash # 24
847
+ 16409: add_particle_water_splash_manual # 25
848
+ 16410: add_particle_water_wake # 26
849
+ 16411: add_particle_drip_water # 27
850
+ 16412: add_particle_drip_lava # 28
851
+ 16413: add_particle_drip_honey # 29
852
+ 16414: add_particle_stalactite_drip_water # 30
853
+ 16415: add_particle_stalactite_drip_lava # 31
854
+ 16416: add_particle_falling_dust # 32
855
+ 16417: add_particle_mob_spell # 33
856
+ 16418: add_particle_mob_spell_ambient # 34
857
+ 16419: add_particle_mob_spell_instantaneous # 35
858
+ 16420: add_particle_ink # 36
859
+ 16421: add_particle_slime # 37
860
+ 16422: add_particle_rain_splash # 38
861
+ 16423: add_particle_villager_angry # 39
862
+ 16424: add_particle_villager_happy # 40
863
+ 16425: add_particle_enchantment_table # 41
864
+ 16426: add_particle_tracking_emitter # 42
865
+ 16427: add_particle_note # 43
866
+ 16428: add_particle_witch_spell # 44
867
+ 16429: add_particle_carrot # 45
868
+ 16430: add_particle_mob_appearance # 46
869
+ 16431: add_particle_end_rod # 47
870
+ 16432: add_particle_dragons_breath # 48
871
+ 16433: add_particle_spit # 49
872
+ 16434: add_particle_totem # 50
873
+ 16435: add_particle_food # 51
874
+ 16436: add_particle_fireworks_starter # 52
875
+ 16437: add_particle_fireworks_spark # 53
876
+ 16438: add_particle_fireworks_overlay # 54
877
+ 16439: add_particle_balloon_gas # 55
878
+ 16440: add_particle_colored_flame # 56
879
+ 16441: add_particle_sparkler # 57
880
+ 16442: add_particle_conduit # 58
881
+ 16443: add_particle_bubble_column_up # 59
882
+ 16444: add_particle_bubble_column_down # 60
883
+ 16445: add_particle_sneeze # 61
884
+ 16446: add_particle_shulker_bullet # 62
885
+ 16447: add_particle_bleach # 63
886
+ 16448: add_particle_dragon_destroy_block # 64
887
+ 16449: add_particle_mycelium_dust # 65
888
+ 16450: add_particle_falling_red_dust # 66
889
+ 16451: add_particle_campfire_smoke # 67
890
+ 16452: add_particle_tall_campfire_smoke # 68
891
+ 16453: add_particle_dragon_breath_fire # 69
892
+ 16454: add_particle_dragon_breath_trail # 70
893
+ 16455: add_particle_blue_flame # 71
894
+ 16456: add_particle_soul # 72
895
+ 16457: add_particle_obsidian_tear # 73
896
+ 16458: add_particle_portal_reverse # 74
897
+ 16459: add_particle_snowflake # 75
898
+ 16460: add_particle_vibration_signal # 76
899
+ 16461: add_particle_sculk_sensor_redstone # 77
900
+ 16462: add_particle_spore_blossom_shower # 78
901
+ 16463: add_particle_spore_blossom_ambient # 79
902
+ 16464: add_particle_wax # 80
903
+ 16465: add_particle_electric_spark # 81
904
+ position: vec3f
905
+ data: zigzag32
906
+
907
+ packet_block_event:
908
+ !id: 0x1a
909
+ !bound: client
910
+ # Position is the position of the block that an event occurred at.
911
+ position: BlockCoordinates
912
+ # EventType is the type of the block event.
913
+ # The event type decides the way the event data that follows is used
914
+ type: zigzag32 =>
915
+ 0: sound
916
+ 1: change_state
917
+ # EventData holds event type specific data. For chests for example,
918
+ # opening the chest means the data must be 1
919
+ data: zigzag32
920
+
921
+ packet_entity_event:
922
+ !id: 0x1b
923
+ !bound: both
924
+ runtime_entity_id: varint64
925
+ event_id: u8 =>
926
+ 1: jump
927
+ 2: hurt_animation
928
+ 3: death_animation
929
+ 4: arm_swing
930
+ 5: stop_attack
931
+ 6: tame_fail
932
+ 7: tame_success
933
+ 8: shake_wet
934
+ 9: use_item
935
+ 10: eat_grass_animation
936
+ 11: fish_hook_bubble
937
+ 12: fish_hook_position
938
+ 13: fish_hook_hook
939
+ 14: fish_hook_tease
940
+ 15: squid_ink_cloud
941
+ 16: zombie_villager_cure
942
+ 18: respawn
943
+ 19: iron_golem_offer_flower
944
+ 20: iron_golem_withdraw_flower
945
+ 21: love_particles #breeding
946
+ 22: villager_angry
947
+ 23: villager_happy
948
+ 24: witch_spell_particles
949
+ 25: firework_particles
950
+ 26: in_love_particles
951
+ 27: silverfish_spawn_animation
952
+ 28: guardian_attack
953
+ 29: witch_drink_potion
954
+ 30: witch_throw_potion
955
+ 31: minecart_tnt_prime_fuse
956
+ 32: creeper_prime_fuse
957
+ 33: air_supply_expired
958
+ 34: player_add_xp_levels
959
+ 35: elder_guardian_curse
960
+ 36: agent_arm_swing
961
+ 37: ender_dragon_death
962
+ 38: dust_particles #not sure what this is
963
+ 39: arrow_shake
964
+
965
+ 57: eating_item
966
+
967
+ 60: baby_animal_feed #green particles, like bonemeal on crops
968
+ 61: death_smoke_cloud
969
+ 62: complete_trade
970
+ 63: remove_leash #data 1 = cut leash
971
+ 64: caravan
972
+ 65: consume_totem
973
+ 66: player_check_treasure_hunter_achievement #mojang...
974
+ 67: entity_spawn #used for MinecraftEventing stuff, not needed
975
+ 68: dragon_puke #they call this puke particles
976
+ 69: item_entity_merge
977
+ 70: start_swim
978
+ 71: balloon_pop
979
+ 72: treasure_hunt
980
+ 73: agent_summon
981
+ 74: charged_item
982
+ 75: fall
983
+ 76: grow_up
984
+ 77: vibration_detected
985
+ 78: drink_milk
986
+ data: zigzag32
987
+
988
+ packet_mob_effect:
989
+ !id: 0x1c
990
+ !bound: client
991
+ runtime_entity_id: varint64
992
+ event_id: u8 =>
993
+ 1: add
994
+ 2: update
995
+ 3: remove
996
+ effect_id: zigzag32
997
+ amplifier: zigzag32
998
+ particles: bool
999
+ duration: zigzag32
1000
+
1001
+ packet_update_attributes:
1002
+ !id: 0x1d
1003
+ !bound: client
1004
+ runtime_entity_id: varint64
1005
+ attributes: PlayerAttributes
1006
+ tick: varint64
1007
+
1008
+ # InventoryTransaction is a packet sent by the client. It essentially exists out of multiple sub-packets,
1009
+ # each of which have something to do with the inventory in one way or another. Some of these sub-packets
1010
+ # directly relate to the inventory, others relate to interaction with the world, that could potentially
1011
+ # result in a change in the inventory.
1012
+ packet_inventory_transaction:
1013
+ !id: 0x1e
1014
+ !bound: both
1015
+ transaction: Transaction
1016
+
1017
+ packet_mob_equipment:
1018
+ !id: 0x1f
1019
+ !bound: both
1020
+ runtime_entity_id: varint64
1021
+ item: Item
1022
+ slot: u8
1023
+ selected_slot: u8
1024
+ window_id: WindowID
1025
+
1026
+ packet_mob_armor_equipment:
1027
+ !id: 0x20
1028
+ !bound: both
1029
+ runtime_entity_id: varint64
1030
+ helmet: Item
1031
+ chestplate: Item
1032
+ leggings: Item
1033
+ boots: Item
1034
+
1035
+ # Interact is sent by the client when it interacts with another entity in some way. It used to be used for
1036
+ # normal entity and block interaction, but this is no longer the case now.
1037
+ packet_interact:
1038
+ !id: 0x21
1039
+ !bound: both
1040
+ # Action type is the ID of the action that was executed by the player. It is one of the constants that
1041
+ # may be found above.
1042
+ action_id: u8 =>
1043
+ 3: leave_vehicle
1044
+ 4: mouse_over_entity
1045
+ 5: npc_open
1046
+ 6: open_inventory
1047
+ # TargetEntityRuntimeID is the runtime ID of the entity that the player interacted with. This is empty
1048
+ # for the InteractActionOpenInventory action type.
1049
+ target_entity_id: varint64
1050
+ # Position associated with the ActionType above. For the InteractActionMouseOverEntity, this is the
1051
+ # position relative to the entity moused over over which the player hovered with its mouse/touch. For the
1052
+ # InteractActionLeaveVehicle, this is the position that the player spawns at after leaving the vehicle.
1053
+ position: action_id ?
1054
+ if mouse_over_entity or leave_vehicle: vec3f
1055
+
1056
+ packet_block_pick_request:
1057
+ !id: 0x22
1058
+ !bound: server
1059
+ x: zigzag32
1060
+ y: zigzag32
1061
+ z: zigzag32
1062
+ add_user_data: bool
1063
+ selected_slot: u8
1064
+
1065
+ packet_entity_pick_request:
1066
+ !id: 0x23
1067
+ !bound: server
1068
+ runtime_entity_id: lu64
1069
+ selected_slot: u8
1070
+ # WithData is true if the pick request requests the entity metadata.
1071
+ with_data: bool
1072
+
1073
+ # PlayerAction is sent by the client when it executes any action, for example starting to sprint, swim,
1074
+ # starting the breaking of a block, dropping an item, etc.
1075
+ packet_player_action:
1076
+ !id: 0x24
1077
+ !bound: server
1078
+ # EntityRuntimeID is the runtime ID of the player. The runtime ID is unique for each world session, and
1079
+ # entities are generally identified in packets using this runtime ID.
1080
+ runtime_entity_id: varint64
1081
+ # ActionType is the ID of the action that was executed by the player. It is one of the constants that may
1082
+ # be found above.
1083
+ action: Action
1084
+ # BlockPosition is the position of the target block, if the action with the ActionType set concerned a
1085
+ # block. If that is not the case, the block position will be zero.
1086
+ position: BlockCoordinates
1087
+ # ResultPosition is the position of the action's result. When a UseItemOn action is sent, this is the position of
1088
+ # the block clicked, but when a block is placed, this is the position at which the block will be placed.
1089
+ result_position: BlockCoordinates
1090
+ # BlockFace is the face of the target block that was touched. If the action with the ActionType set
1091
+ # concerned a block. If not, the face is always 0.
1092
+ face: zigzag32
1093
+
1094
+ packet_hurt_armor:
1095
+ !id: 0x26
1096
+ !bound: client
1097
+ cause: zigzag32
1098
+ damage: zigzag32
1099
+ armor_slots: zigzag64
1100
+
1101
+ packet_set_entity_data:
1102
+ !id: 0x27
1103
+ !bound: both
1104
+ runtime_entity_id: varint64
1105
+ metadata: MetadataDictionary
1106
+ # EntityProperties holds lists of entity properties that define specific attributes of an entity. As of v1.19.40, the
1107
+ # vanilla server does not use these properties, however they are still supported by the protocol.
1108
+ properties: EntityProperties
1109
+ tick: varint64
1110
+
1111
+ # SetActorMotion is sent by the server to change the client-side velocity of an entity. It is usually used
1112
+ # in combination with server-side movement calculation.
1113
+ packet_set_entity_motion:
1114
+ !id: 0x28
1115
+ !bound: both
1116
+ # EntityRuntimeID is the runtime ID of the entity. The runtime ID is unique for each world session, and
1117
+ # entities are generally identified in packets using this runtime ID.
1118
+ runtime_entity_id: varint64
1119
+ # Velocity is the new velocity the entity gets. This velocity will initiate the client-side movement of
1120
+ # the entity.
1121
+ velocity: vec3f
1122
+
1123
+ # SetActorLink is sent by the server to initiate an entity link client-side, meaning one entity will start
1124
+ # riding another.
1125
+ packet_set_entity_link:
1126
+ !id: 0x29
1127
+ !bound: client
1128
+ link: Link
1129
+
1130
+ packet_set_health:
1131
+ !id: 0x2a
1132
+ !bound: client
1133
+ health: zigzag32
1134
+
1135
+ packet_set_spawn_position:
1136
+ !id: 0x2b
1137
+ !bound: client
1138
+ spawn_type: zigzag32 =>
1139
+ 0: player
1140
+ 1: world
1141
+ player_position: BlockCoordinates
1142
+ dimension: zigzag32
1143
+ world_position: BlockCoordinates
1144
+
1145
+ packet_animate:
1146
+ !id: 0x2c
1147
+ !bound: both
1148
+ action_id: zigzag32 =>
1149
+ 0: none
1150
+ 1: swing_arm
1151
+ 2: unknown
1152
+ 3: wake_up
1153
+ 4: critical_hit
1154
+ 5: magic_critical_hit
1155
+ 128: row_right
1156
+ 129: row_left
1157
+ runtime_entity_id: varint64
1158
+ _: action_id ?
1159
+ if row_right or row_left:
1160
+ boat_rowing_time: lf32
1161
+
1162
+ packet_respawn:
1163
+ !id: 0x2d
1164
+ !bound: both
1165
+ position: vec3f
1166
+ state: u8
1167
+ runtime_entity_id: varint64
1168
+
1169
+ # ContainerOpen is sent by the server to open a container client-side. This container must be physically
1170
+ # present in the world, for the packet to have any effect. Unlike Java Edition, Bedrock Edition requires that
1171
+ # chests for example must be present and in range to open its inventory.
1172
+ packet_container_open:
1173
+ !id: 0x2e
1174
+ !bound: client
1175
+ # WindowID is the ID representing the window that is being opened. It may be used later to close the
1176
+ # container using a ContainerClose packet.
1177
+ window_id: WindowID
1178
+ # ContainerType is the type ID of the container that is being opened when opening the container at the
1179
+ # position of the packet. It depends on the block/entity, and could, for example, be the window type of
1180
+ # a chest or a hopper, but also a horse inventory.
1181
+ window_type: WindowType
1182
+ # ContainerPosition is the position of the container opened. The position must point to a block entity
1183
+ # that actually has a container. If that is not the case, the window will not be opened and the packet
1184
+ # will be ignored, if a valid ContainerEntityUniqueID has not also been provided.
1185
+ coordinates: BlockCoordinates
1186
+ # ContainerEntityUniqueID is the unique ID of the entity container that was opened. It is only used if
1187
+ # the ContainerType is one that points to an entity, for example a horse.
1188
+ runtime_entity_id: zigzag64
1189
+
1190
+ # ContainerClose is sent by the server to close a container the player currently has opened, which was opened
1191
+ # using the ContainerOpen packet, or by the client to tell the server it closed a particular container, such
1192
+ # as the crafting grid.
1193
+ packet_container_close:
1194
+ !id: 0x2f
1195
+ !bound: both
1196
+ # WindowID is the ID representing the window of the container that should be closed. It must be equal to
1197
+ # the one sent in the ContainerOpen packet to close the designated window.
1198
+ window_id: WindowID
1199
+ # ServerSide determines whether or not the container was force-closed by the server. If this value is
1200
+ # not set correctly, the client may ignore the packet and respond with a PacketViolationWarning.
1201
+ server: bool
1202
+
1203
+ # PlayerHotBar is sent by the server to the client. It used to be used to link hot bar slots of the player to
1204
+ # actual slots in the inventory, but as of 1.2, this was changed and hot bar slots are no longer a free
1205
+ # floating part of the inventory.
1206
+ # Since 1.2, the packet has been re-purposed, but its new functionality is not clear.
1207
+ packet_player_hotbar:
1208
+ !id: 0x30
1209
+ !bound: both
1210
+ selected_slot: varint
1211
+ window_id: WindowID
1212
+ select_slot: bool
1213
+
1214
+ # InventoryContent is sent by the server to update the full content of a particular inventory. It is usually
1215
+ # sent for the main inventory of the player, but also works for other inventories that are currently opened
1216
+ # by the player.
1217
+ packet_inventory_content:
1218
+ !id: 0x31
1219
+ !bound: both
1220
+ # WindowID is the ID that identifies one of the windows that the client currently has opened, or one of
1221
+ # the consistent windows such as the main inventory.
1222
+ window_id: WindowIDVarint
1223
+ # Content is the new content of the inventory. The length of this slice must be equal to the full size of
1224
+ # the inventory window updated.
1225
+ input: ItemStacks
1226
+
1227
+ # InventorySlot is sent by the server to update a single slot in one of the inventory windows that the client
1228
+ # currently has opened. Usually this is the main inventory, but it may also be the off hand or, for example,
1229
+ # a chest inventory.
1230
+ packet_inventory_slot:
1231
+ !id: 0x32
1232
+ !bound: both
1233
+ # WindowID is the ID of the window that the packet modifies. It must point to one of the windows that the
1234
+ # client currently has opened.
1235
+ window_id: WindowIDVarint
1236
+ # Slot is the index of the slot that the packet modifies. The new item will be set to the slot at this
1237
+ # index.
1238
+ slot: varint
1239
+ # NewItem is the item to be put in the slot at Slot. It will overwrite any item that may currently
1240
+ # be present in that slot.
1241
+ item: Item
1242
+
1243
+ # ContainerSetData is sent by the server to update specific data of a single container, meaning a block such
1244
+ # as a furnace or a brewing stand. This data is usually used by the client to display certain features
1245
+ # client-side.
1246
+ packet_container_set_data:
1247
+ !id: 0x33
1248
+ !bound: client
1249
+ # WindowID is the ID of the window that should have its data set. The player must have a window open with
1250
+ # the window ID passed, or nothing will happen.
1251
+ window_id: WindowID
1252
+ # Key is the key of the property. It is one of the constants that can be found above. Multiple properties
1253
+ # share the same key, but the functionality depends on the type of the container that the data is set to.
1254
+ # IF FURNACE:
1255
+ # 0: furnace_tick_count
1256
+ # 1: furnace_lit_time
1257
+ # 2: furnace_lit_duration
1258
+ # 3: furnace_stored_xp
1259
+ # 4: furnace_fuel_aux
1260
+ # IF BREWING STAND:
1261
+ # 0: brew_time
1262
+ # 1: brew_fuel_amount
1263
+ # 2: brew_fuel_total
1264
+ property: zigzag32
1265
+ # Value is the value of the property. Its use differs per property.
1266
+ value: zigzag32
1267
+
1268
+ packet_crafting_data:
1269
+ !id: 0x34
1270
+ !bound: client
1271
+ recipes: Recipes
1272
+ # PotionContainerChangeRecipes is a list of all recipes to convert a potion from one type to another,
1273
+ # such as from a drinkable potion to a splash potion, or from a splash potion to a lingering potion.
1274
+ potion_type_recipes: PotionTypeRecipes
1275
+ potion_container_recipes: PotionContainerChangeRecipes
1276
+ # MaterialReducers is a list of all material reducers which is used in education edition chemistry.
1277
+ material_reducers: MaterialReducer[]varint
1278
+ # ClearRecipes indicates if all recipes currently active on the client should be cleaned. Doing this
1279
+ # means that the client will have no recipes active by itself: Any CraftingData packets previously sent
1280
+ # will also be discarded, and only the recipes in this CraftingData packet will be used.
1281
+ clear_recipes: bool
1282
+
1283
+ # CraftingEvent is sent by the client when it crafts a particular item. Note that this packet may be fully
1284
+ # ignored, as the InventoryTransaction packet provides all the information required.
1285
+ packet_crafting_event:
1286
+ !id: 0x35
1287
+ !bound: both
1288
+ # WindowID is the ID representing the window that the player crafted in.
1289
+ window_id: WindowID
1290
+ # CraftingType is a type that indicates the way the crafting was done, for example if a crafting table
1291
+ # was used.
1292
+ recipe_type: zigzag32 =>
1293
+ 0: inventory
1294
+ 1: crafting
1295
+ 2: workbench
1296
+ # RecipeUUID is the UUID of the recipe that was crafted. It points to the UUID of the recipe that was
1297
+ # sent earlier in the CraftingData packet.
1298
+ recipe_id: uuid
1299
+ # Input is a list of items that the player put into the recipe so that it could create the Output items.
1300
+ # These items are consumed in the process.
1301
+ input: Item[]varint
1302
+ # Output is a list of items that were obtained as a result of crafting the recipe.
1303
+ result: Item[]varint
1304
+
1305
+ # GUIDataPickItem is sent by the server to make the client 'select' a hot bar slot. It currently appears to
1306
+ # be broken however, and does not actually set the selected slot to the hot bar slot set in the packet.
1307
+ packet_gui_data_pick_item:
1308
+ !id: 0x36
1309
+ !bound: client
1310
+ # ItemName is the name of the item that shows up in the top part of the popup that shows up when
1311
+ # selecting an item. It is shown as if an item was selected by the player itself.
1312
+ item_name: string
1313
+ # ItemEffects is the line under the ItemName, where the effects of the item are usually situated.
1314
+ item_effects: string
1315
+ # HotBarSlot is the hot bar slot to be selected/picked. This does not currently work, so it does not
1316
+ # matter what number this is.
1317
+ hotbar_slot: li32
1318
+
1319
+ # AdventureSettings is sent by the server to update game-play related features, in particular permissions to
1320
+ # access these features for the client. It includes allowing the player to fly, build and mine, and attack
1321
+ # entities. Most of these flags should be checked server-side instead of using this packet only.
1322
+ # The client may also send this packet to the server when it updates one of these settings through the
1323
+ # in-game settings interface. The server should verify if the player actually has permission to update those
1324
+ # settings.
1325
+ packet_adventure_settings:
1326
+ !id: 0x37
1327
+ !bound: both
1328
+ # Flags is a set of flags that specify certain properties of the player, such as whether or not it can
1329
+ # fly and/or move through blocks. It is one of the AdventureFlag constants above.
1330
+ flags: AdventureFlags
1331
+ # CommandPermissionLevel is a permission level that specifies the kind of commands that the player is
1332
+ # allowed to use.
1333
+ command_permission: CommandPermissionLevelVarint
1334
+ # ActionPermissions is, much like Flags, a set of flags that specify actions that the player is allowed
1335
+ # to undertake, such as whether it is allowed to edit blocks, open doors etc. It is a combination of the
1336
+ # ActionPermission constants above.
1337
+ action_permissions: ActionPermissions
1338
+ # PermissionLevel is the permission level of the player as it shows up in the player list built up using
1339
+ # the PlayerList packet. It is one of the PermissionLevel constants above.
1340
+ permission_level: PermissionLevel
1341
+ # Custom permissions
1342
+ custom_stored_permissions: varint
1343
+ # PlayerUniqueID is a unique identifier of the player. It appears it is not required to fill this field
1344
+ # out with a correct value. Simply writing 0 seems to work.
1345
+ user_id: li64
1346
+
1347
+ AdventureFlags: [ "bitflags",
1348
+ {
1349
+ "type": "varint",
1350
+ "flags": {
1351
+ "world_immutable": 1,
1352
+ "no_pvp": 2,
1353
+ "auto_jump": 0x20,
1354
+ "allow_flight": 0x40,
1355
+ "no_clip": 0x80,
1356
+ "world_builder": 0x100,
1357
+ "flying": 0x200,
1358
+ "muted": 0x400
1359
+ }
1360
+ }
1361
+ ]
1362
+
1363
+ ActionPermissions: [ "bitflags",
1364
+ {
1365
+ "type": "varint",
1366
+ "flags": {
1367
+ "mine": 0x10001,
1368
+ "doors_and_switches": 0x10002,
1369
+ "open_containers": 0x10004,
1370
+ "attack_players": 0x10008,
1371
+ "attack_mobs": 0x10010,
1372
+ "operator": 0x10020,
1373
+ "teleport": 0x10080,
1374
+ "build": 0x10100,
1375
+ "default": 0x10200
1376
+ }
1377
+ }
1378
+ ]
1379
+
1380
+ packet_block_entity_data:
1381
+ !id: 0x38
1382
+ !bound: both
1383
+ position: BlockCoordinates
1384
+ nbt: nbt
1385
+
1386
+ packet_player_input:
1387
+ !id: 0x39
1388
+ !bound: server
1389
+ motion_x: lf32
1390
+ motion_z: lf32
1391
+ jumping: bool
1392
+ sneaking: bool
1393
+
1394
+ # LevelChunk is sent by the server to provide the client with a chunk of a world data (16xYx16 blocks).
1395
+ # Typically a certain amount of chunks is sent to the client before sending it the spawn PlayStatus packet,
1396
+ # so that the client spawns in a loaded world.
1397
+ packet_level_chunk:
1398
+ !id: 0x3a
1399
+ !bound: client
1400
+ # ChunkX is the X coordinate of the chunk sent. (To translate a block's X to a chunk's X: x >> 4)
1401
+ x: zigzag32
1402
+ # ChunkZ is the Z coordinate of the chunk sent. (To translate a block's Z to a chunk's Z: z >> 4)
1403
+ z: zigzag32
1404
+ # SubChunkCount is the amount of sub chunks that are part of the chunk sent. Depending on if the cache
1405
+ # is enabled, a list of blob hashes will be sent, or, if disabled, the sub chunk data.
1406
+ # On newer versions, if this is a negative value it indicates to use the Subchunk Polling mechanism
1407
+ sub_chunk_count: varint
1408
+ # HighestSubChunk is the highest sub-chunk at the position that is not all air. It is only set if the
1409
+ # RequestMode is set to protocol.SubChunkRequestModeLimited.
1410
+ highest_subchunk_count: sub_chunk_count ?
1411
+ if -2: lu16
1412
+ # CacheEnabled specifies if the client blob cache should be enabled. This system is based on hashes of
1413
+ # blobs which are consistent and saved by the client in combination with that blob, so that the server
1414
+ # does not have to send the same chunk multiple times. If the client does not yet have a blob with the hash sent,
1415
+ # it will send a ClientCacheBlobStatus packet containing the hashes is does not have the data of.
1416
+ cache_enabled: bool
1417
+ blobs: cache_enabled?
1418
+ if true:
1419
+ # BlobHashes is a list of all blob hashes used in the chunk. It is composed of SubChunkCount + 1 hashes,
1420
+ # with the first SubChunkCount hashes being those of the sub chunks and the last one that of the biome
1421
+ # of the chunk.
1422
+ # If CacheEnabled is set to false, BlobHashes can be left empty.
1423
+ hashes: lu64[]varint
1424
+ # RawPayload is a serialised string of chunk data. The data held depends on if CacheEnabled is set to
1425
+ # true. If set to false, the payload is composed of multiple sub-chunks, each of which carry a version
1426
+ # which indicates the way they are serialised, followed by biomes, border blocks and tile entities. If
1427
+ # CacheEnabled is true, the payload consists out of the border blocks and tile entities only.
1428
+ payload: ByteArray
1429
+
1430
+ packet_set_commands_enabled:
1431
+ !id: 0x3b
1432
+ !bound: client
1433
+ enabled: bool
1434
+
1435
+ packet_set_difficulty:
1436
+ !id: 0x3c
1437
+ !bound: client
1438
+ difficulty: varint
1439
+
1440
+ packet_change_dimension:
1441
+ !id: 0x3d
1442
+ !bound: client
1443
+ dimension: zigzag32
1444
+ position: vec3f
1445
+ respawn: bool
1446
+
1447
+ # SetPlayerGameType is sent by the server to update the game type (game mode) of the player
1448
+ packet_set_player_game_type:
1449
+ !id: 0x3e
1450
+ !bound: both
1451
+ # The new gamemode for the player.
1452
+ # Some of these game types require additional flags to be set in an AdventureSettings packet for
1453
+ # the game mode to obtain its full functionality.
1454
+ gamemode: GameMode
1455
+
1456
+ packet_player_list:
1457
+ !id: 0x3f
1458
+ !bound: client
1459
+ records: PlayerRecords
1460
+
1461
+ packet_simple_event:
1462
+ !id: 0x40
1463
+ !bound: client
1464
+ event_type: lu16 =>
1465
+ 0: uninitialized_subtype
1466
+ 1: enable_commands
1467
+ 2: disable_commands
1468
+ 3: unlock_world_template_settings
1469
+
1470
+ # Event is sent by the server to send an event with additional data. It is typically sent to the client for
1471
+ # telemetry reasons, much like the SimpleEvent packet.
1472
+ packet_event:
1473
+ !id: 0x41
1474
+ !bound: client
1475
+ runtime_id: varint64
1476
+ event_type: zigzag32 =>
1477
+ 0: achievement_awarded
1478
+ 1: entity_interact
1479
+ 2: portal_built
1480
+ 3: portal_used
1481
+ 4: mob_killed
1482
+ 5: cauldron_used
1483
+ 6: player_death
1484
+ 7: boss_killed
1485
+ 8: agent_command
1486
+ 9: agent_created
1487
+ 10: banner_pattern_removed
1488
+ 11: commaned_executed
1489
+ 12: fish_bucketed
1490
+ 13: mob_born
1491
+ 14: pet_died
1492
+ 15: cauldron_block_used
1493
+ 16: composter_block_used
1494
+ 17: bell_block_used
1495
+ 18: actor_definition
1496
+ 19: raid_update
1497
+ 20: player_movement_anomaly
1498
+ 21: player_moement_corrected
1499
+ 22: honey_harvested
1500
+ 23: target_block_hit
1501
+ 24: piglin_barter
1502
+ 25: waxed_or_unwaxed_copper
1503
+ 26: code_builder_runtime_action
1504
+ 27: code_builder_scoreboard
1505
+ 28: strider_ridden_in_lava_in_overworld
1506
+ 29: sneak_close_to_sculk_sensor
1507
+ 30: careful_restoration
1508
+ use_player_id: u8
1509
+ event_data: restBuffer # Unknown data, TODO: add
1510
+
1511
+ packet_spawn_experience_orb:
1512
+ !id: 0x42
1513
+ !bound: client
1514
+ position: vec3f
1515
+ count: zigzag32
1516
+
1517
+ UpdateMapFlags: [ "bitflags", {
1518
+ "type": "varint",
1519
+ "flags": [
1520
+ "void",
1521
+ "texture",
1522
+ "decoration",
1523
+ "initialisation"
1524
+ ]
1525
+ }]
1526
+
1527
+ # ClientBoundMapItemData is sent by the server to the client to update the data of a map shown to the client.
1528
+ # It is sent with a combination of flags that specify what data is updated.
1529
+ # The ClientBoundMapItemData packet may be used to update specific parts of the map only. It is not required
1530
+ # to send the entire map each time when updating one part.
1531
+ packet_clientbound_map_item_data:
1532
+ !id: 0x43
1533
+ !bound: client
1534
+ # MapID is the unique identifier that represents the map that is updated over network. It remains
1535
+ # consistent across sessions.
1536
+ map_id: zigzag64
1537
+ # UpdateFlags is a combination of flags found above that indicate what parts of the map should be updated
1538
+ # client-side.
1539
+ update_flags: UpdateMapFlags
1540
+ # Dimension is the dimension of the map that should be updated, for example the overworld (0), the nether
1541
+ # (1) or the end (2).
1542
+ dimension: u8
1543
+ # LockedMap specifies if the map that was updated was a locked map, which may be done using a cartography
1544
+ # table.
1545
+ locked: bool
1546
+ # Origin is the center position of the map being updated.
1547
+ origin: vec3i
1548
+ # The following fields apply only for the MapUpdateFlagInitialisation.
1549
+ # MapsIncludedIn holds an array of map IDs that the map updated is included in. This has to do with the
1550
+ # scale of the map: Each map holds its own map ID and all map IDs of maps that include this map and have
1551
+ # a bigger scale. This means that a scale 0 map will have 5 map IDs in this slice, whereas a scale 4 map
1552
+ # will have only 1 (its own).
1553
+ # The actual use of this field remains unknown.
1554
+ included_in: update_flags.initialisation ?
1555
+ if true: zigzag64[]varint
1556
+ # Scale is the scale of the map as it is shown in-game. It is written when any of the MapUpdateFlags are
1557
+ # set to the UpdateFlags field.
1558
+ scale: update_flags.initialisation || update_flags.decoration || update_flags.texture ?
1559
+ if true: u8
1560
+ # The following fields apply only for the MapUpdateFlagDecoration.
1561
+ # TrackedObjects is a list of tracked objects on the map, which may either be entities or blocks. The
1562
+ # client makes sure these tracked objects are actually tracked. (position updated etc.)
1563
+ tracked: update_flags.decoration ?
1564
+ if true:
1565
+ objects: TrackedObject[]varint
1566
+ decorations: MapDecoration[]varint
1567
+ # Updates to the map contents itself (texture)
1568
+ texture: update_flags.texture ?
1569
+ if true:
1570
+ # Width is the width of the texture area that was updated. The width may be a subset of the total width
1571
+ # of the map.
1572
+ width: zigzag32
1573
+ # Height is the height of the texture area that was updated. The height may be a subset of the total
1574
+ # height of the map
1575
+ height: zigzag32
1576
+ # XOffset is the X offset in pixels at which the updated texture area starts. From this X, the updated
1577
+ # texture will extend exactly Width pixels to the right.
1578
+ x_offset: zigzag32
1579
+ # YOffset is the Y offset in pixels at which the updated texture area starts. From this Y, the updated
1580
+ # texture will extend exactly Height pixels up.
1581
+ y_offset: zigzag32
1582
+ # Pixels is a list of pixel colours for the new texture of the map. It is indexed as Pixels[y][x], with
1583
+ # the length of the outer slice having to be exactly Height long and the inner slices exactly Width long.
1584
+ # To access this array, use $width * y + x
1585
+ pixels: varint[]varint
1586
+
1587
+
1588
+ packet_map_info_request:
1589
+ !id: 0x44
1590
+ !bound: both
1591
+ map_id: zigzag64
1592
+ # ClientPixels is a map of pixels sent from the client to notify the server about the pixels that it isn't
1593
+ # aware of.
1594
+ client_pixels: []lu32
1595
+ rgba: li32
1596
+ index: lu16
1597
+
1598
+ # RequestChunkRadius is sent by the client to the server to update the server on the chunk view radius that
1599
+ # it has set in the settings. The server may respond with a ChunkRadiusUpdated packet with either the chunk
1600
+ # radius requested, or a different chunk radius if the server chooses so.
1601
+ packet_request_chunk_radius:
1602
+ !id: 0x45
1603
+ !bound: both
1604
+ # ChunkRadius is the requested chunk radius. This value is always the value set in the settings of the
1605
+ # player.
1606
+ chunk_radius: zigzag32
1607
+ max_radius: u8
1608
+
1609
+ # ChunkRadiusUpdated is sent by the server in response to a RequestChunkRadius packet. It defines the chunk
1610
+ # radius that the server allows the client to have. This may be lower than the chunk radius requested by the
1611
+ # client in the RequestChunkRadius packet.
1612
+ packet_chunk_radius_update:
1613
+ !id: 0x46
1614
+ !bound: client
1615
+ # ChunkRadius is the final chunk radius that the client will adapt when it receives the packet. It does
1616
+ # not have to be the same as the requested chunk radius.
1617
+ chunk_radius: zigzag32
1618
+
1619
+ packet_item_frame_drop_item:
1620
+ !id: 0x47
1621
+ !bound: both
1622
+ coordinates: BlockCoordinates
1623
+
1624
+ packet_game_rules_changed:
1625
+ !id: 0x48
1626
+ !bound: client
1627
+ rules: GameRules
1628
+
1629
+ # Camera is sent by the server to use an Education Edition camera on a player. It produces an image
1630
+ # client-side.
1631
+ packet_camera:
1632
+ !id: 0x49
1633
+ !bound: client
1634
+ # CameraEntityUniqueID is the unique ID of the camera entity from which the picture was taken.
1635
+ camera_entity_unique_id: zigzag64
1636
+ # TargetPlayerUniqueID is the unique ID of the target player. The unique ID is a value that remains
1637
+ # consistent across different sessions of the same world, but most servers simply fill the runtime ID of
1638
+ # the player out for this field.
1639
+ target_player_unique_id: zigzag64
1640
+
1641
+ packet_boss_event:
1642
+ !id: 0x4a
1643
+ !bound: both
1644
+ boss_entity_id: zigzag64
1645
+ type: varint =>
1646
+ # S2C: Shows the boss-bar to the player.
1647
+ 0: show_bar
1648
+ # C2S: Registers a player to a boss fight.
1649
+ 1: register_player
1650
+ # S2C: Removes the boss-bar from the client.
1651
+ 2: hide_bar
1652
+ # C2S: Unregisters a player from a boss fight.
1653
+ 3: unregister_player
1654
+ # S2C: Sets the bar percentage.
1655
+ 4: set_bar_progress
1656
+ # S2C: Sets title of the bar.
1657
+ 5: set_bar_title
1658
+ # S2C: darkens the sky
1659
+ 6: update_properties
1660
+ # S2C: Not implemented :( Intended to alter bar appearance, but these currently produce no effect on client-side whatsoever.
1661
+ 7: texture
1662
+ # C2S: Client asking the server to resend all boss data.
1663
+ 8: query
1664
+ _: type?
1665
+ if show_bar:
1666
+ # BossBarTitle is the title shown above the boss bar. It currently does not function, and instead uses
1667
+ # the name tag of the boss entity at all times. It is only set if the EventType is BossEventShow or
1668
+ # BossEventTitle.
1669
+ title: string
1670
+ # HealthPercentage is the percentage of health that is shown in the boss bar. It currently does not
1671
+ # function, and instead uses the health percentage of the boss entity at all times. It is only set if the
1672
+ # EventType is BossEventShow or BossEventHealthPercentage.
1673
+ progress: lf32
1674
+ # ScreenDarkening currently seems not to do anything.
1675
+ screen_darkening: li16
1676
+ # Colour is the colour of the boss bar that is shown when a player is subscribed. It currently does not
1677
+ # function. It is only set if the EventType is BossEventShow, BossEventAppearanceProperties or
1678
+ # BossEventTexture.
1679
+ # Format is ARGB
1680
+ color: varint
1681
+ # Overlay is the overlay of the boss bar that is shown on top of the boss bar when a player is
1682
+ # subscribed. It currently does not function. It is only set if the EventType is BossEventShow,
1683
+ # BossEventAppearanceProperties or BossEventTexture.
1684
+ overlay: varint
1685
+ if register_player or unregister_player or query:
1686
+ # PlayerUniqueID is the unique ID of the player that is registered to or unregistered from the boss
1687
+ # fight. It is set if EventType is either BossEventRegisterPlayer or BossEventUnregisterPlayer.
1688
+ player_id: zigzag64
1689
+ if set_bar_progress:
1690
+ progress: lf32
1691
+ if set_bar_title:
1692
+ title: string
1693
+ if update_properties:
1694
+ screen_darkening: li16
1695
+ color: varint
1696
+ overlay: varint
1697
+ if texture:
1698
+ color: varint
1699
+ overlay: varint
1700
+
1701
+ packet_show_credits:
1702
+ !id: 0x4b
1703
+ !bound: client
1704
+ runtime_entity_id: varint64
1705
+ status: zigzag32
1706
+
1707
+ # This packet sends a list of commands to the client. Commands can have
1708
+ # arguments, and some of those arguments can have 'enum' values, which are a list of possible
1709
+ # values for the argument. The serialization is rather complex and involves palettes like chunks.
1710
+ ## In bedrock-protocol, listen to on('client.commands') for a simpler representation
1711
+ packet_available_commands:
1712
+ !id: 0x4c
1713
+ !bound: client
1714
+ # The length of the enums for all the command parameters in this packet
1715
+ values_len: varint
1716
+ # Not read from stream: instead calculated from the `values_len` field
1717
+ #
1718
+ # If the values_len < 0xff => byte,
1719
+ # If the values_len < 0xffff => short,
1720
+ # If the values_len < 0xffffff => int
1721
+ _enum_type: '["enum_size_based_on_values_len"]'
1722
+ # Here all the enum values for all of the possible commands are stored to one array palette
1723
+ enum_values: string[]$values_len
1724
+ # chained_subcommand_values is a slice of all chained subcommand names. chained_subcommand_values generally should
1725
+ # contain each possible value only once. chained_subcommands are built by pointing to entries in this slice.
1726
+ chained_subcommand_values: string[]varint
1727
+ # Integer parameters may sometimes have a prefix, such as the XP command:
1728
+ # /xp <amount: int> [player: target] <- here, the xp command gives experience points
1729
+ # /xp <amount: int>L [player: target] <- here, the xp command gives experience levels
1730
+ # This is the palette of suffixes
1731
+ suffixes: string[]varint
1732
+ # The list of enum objects
1733
+ enums: []varint
1734
+ # The name of the enum
1735
+ name: string
1736
+ # The values in the enum
1737
+ values: []varint
1738
+ # The indexes to value in the palette
1739
+ _: ../_enum_type?
1740
+ if byte: u8
1741
+ if short: lu16
1742
+ if int: lu32
1743
+ # chained_subcommands is a slice of all subcommands that are followed by a chained command. An example usage of this
1744
+ # is /execute which allows you to run another command as another entity or at a different position etc.
1745
+ chained_subcommands: []varint
1746
+ # ChainedSubcommandValue represents the value for a chained subcommand argument.
1747
+ # name is the name of the chained subcommand and shows up in the list as a regular subcommand enum.
1748
+ name: string
1749
+ # values contains the index and parameter type of the chained subcommand.
1750
+ values: []varint
1751
+ # index is the index of the argument in the ChainedSubcommandValues slice from the AvailableCommands packet. This is
1752
+ # then used to set the type specified by the Value field below.
1753
+ index: lu16
1754
+ # value is a combination of the flags above and specified the type of argument. Unlike regular parameter types,
1755
+ # this should NOT contain any of the special flags (valid, enum, suffixed or soft enum) but only the basic types.
1756
+ value: lu16
1757
+ command_data: []varint
1758
+ name: string
1759
+ description: string
1760
+ flags: lu16
1761
+ permission_level: u8
1762
+ alias: li32
1763
+ # chained_subcommand_offsets is a slice of offsets that all point to a different chained_subcommand from the
1764
+ # chained_subcommands slice in the available_commands packet.
1765
+ chained_subcommand_offsets: lu16[]varint
1766
+ # The list of overload parameters for this command
1767
+ overloads: []varint
1768
+ # chaining determines if the parameters use chained subcommands or not.
1769
+ chaining: bool
1770
+ # Each of the parameters gets an array of posible overloads
1771
+ parameters: []varint
1772
+ # The name of the parameter shown to the user (the `amount` in `/xp <amount: int>`)
1773
+ parameter_name: string
1774
+ value_type: lu16 =>
1775
+ 1: int
1776
+ 3: float
1777
+ 4: value
1778
+ 5: wildcard_int
1779
+ 6: operator
1780
+ 7: command_operator
1781
+ 8: target
1782
+ 10: wildcard_target
1783
+ 17: file_path
1784
+ 23: integer_range
1785
+ 43: equipment_slots
1786
+ 44: string
1787
+ 52: block_position
1788
+ 53: position
1789
+ 55: message
1790
+ 58: raw_text
1791
+ 62: json
1792
+ 71: block_states
1793
+ 74: command
1794
+ # In MC, this + prior field are combined to one 32bit bitfield
1795
+ enum_type: lu16 =>
1796
+ 0x10: valid
1797
+ 0x30: enum
1798
+ 0x100: suffixed
1799
+ 0x410: soft_enum
1800
+ # Is this parameter required?
1801
+ optional: bool
1802
+ # Additinal options for this command (thanks macroshaft...)
1803
+ options: CommandFlags
1804
+ # There are two types of enums: static enums which cannot be changed after sending AvaliableCommands,
1805
+ # (unless you resend the whole packet) and 'soft' or 'dynamic' enums like below which is an array
1806
+ # that can be updated with the UpdateSoftEnum packet
1807
+ dynamic_enums: []varint
1808
+ name: string
1809
+ values: string[]varint
1810
+ enum_constraints: []varint
1811
+ value_index: li32
1812
+ enum_index: li32
1813
+ constraints: []varint
1814
+ constraint: u8 =>
1815
+ 0: cheats_enabled
1816
+ 1: operator_permissions
1817
+ 2: host_permissions
1818
+
1819
+ # ParamOptionCollapseEnum specifies if the enum (only if the Type is actually an enum type. If not,
1820
+ # setting this to true has no effect) should be collapsed. This means that the options of the enum are
1821
+ # never shown in the actual usage of the command, but only as auto-completion, like it automatically does
1822
+ # with enums that have a big amount of options. To illustrate, it can make
1823
+ # <false|true|yes|no> <$Name: bool>.
1824
+ CommandFlags: [ "bitfield", [
1825
+ { "name": "unused", "size": 1, "signed": false },
1826
+ { "name": "collapse_enum", "size": 1, "signed": false },
1827
+ { "name": "has_semantic_constraint", "size": 1, "signed": false },
1828
+ { "name": "as_chained_command", "size": 1, "signed": false },
1829
+ { "name": "unknown2", "size": 4, "signed": false }, # 4 unused upper bits
1830
+ ]]
1831
+
1832
+ # enum_size_based_on_values_len: native
1833
+
1834
+ # CommandRequest is sent by the client to request the execution of a server-side command. Although some
1835
+ # servers support sending commands using the Text packet, this packet is guaranteed to have the correct
1836
+ # result.
1837
+ packet_command_request:
1838
+ !id: 0x4d
1839
+ !bound: server
1840
+ # CommandLine is the raw entered command line. The client does no parsing of the command line by itself
1841
+ # (unlike it did in the early stages), but lets the server do that.
1842
+ command: string
1843
+ # Origin holds information about the command sender that will be returnd back in the command response
1844
+ origin: CommandOrigin
1845
+ # Internal specifies if the command request internal. Setting it to false seems to work and the usage of
1846
+ # this field is not known.
1847
+ internal: bool
1848
+ # Specifies the version of the command to run, relative to the current Minecraft version. Should be set
1849
+ # to 52 as of 1.19.62
1850
+ version: varint
1851
+
1852
+
1853
+ # CommandBlockUpdate is sent by the client to update a command block at a specific position. The command
1854
+ # block may be either a physical block or an entity.
1855
+ packet_command_block_update:
1856
+ !id: 0x4e
1857
+ !bound: server
1858
+ # Block specifies if the command block updated was an actual physical block. If false, the command block
1859
+ # is in a minecart and has an entity runtime ID instead.
1860
+ is_block: bool
1861
+ # Position is the position of the command block updated. It is only set if Block is set to true. Nothing
1862
+ # happens if no command block is set at this position.
1863
+ _: is_block ?
1864
+ if true:
1865
+ # Position is the position of the command block updated. It is only set if Block is set to true. Nothing
1866
+ # happens if no command block is set at this position.
1867
+ position: BlockCoordinates
1868
+ # Mode is the mode of the command block. It is either CommandBlockImpulse, CommandBlockChain or
1869
+ # CommandBlockRepeat. It is only set if Block is set to true.
1870
+ mode: varint =>
1871
+ 0: impulse
1872
+ 1: repeat
1873
+ 2: chain
1874
+ # NeedsRedstone specifies if the command block needs to be powered by redstone to be activated. If false,
1875
+ # the command block is always active. The field is only set if Block is set to true.
1876
+ needs_redstone: bool
1877
+ # Conditional specifies the behaviour of the command block if the command block before it (the opposite
1878
+ # side of the direction the arrow if facing) fails to execute. If set to false, it will activate at all
1879
+ # times, whereas if set to true, it will activate only if the previous command block executed
1880
+ # successfully. The field is only set if Block is set to true.
1881
+ conditional: bool
1882
+ if false:
1883
+ minecart_entity_runtime_id: varint64
1884
+ # Command is the command currently entered in the command block. This is the command that is executed
1885
+ # when the command block is activated.
1886
+ command: string
1887
+ # LastOutput is the output of the last command executed by the command block. It may be left empty to
1888
+ # show simply no output at all, in combination with setting ShouldTrackOutput to false.
1889
+ last_output: string
1890
+ # Name is the name of the command block updated. If not empty, it will show this name hovering above the
1891
+ # command block when hovering over the block with the cursor.
1892
+ name: string
1893
+ # ShouldTrackOutput specifies if the command block tracks output. If set to false, the output box won't
1894
+ # be shown within the command block.
1895
+ should_track_output: bool
1896
+ # TickDelay is the delay in ticks between executions of a command block, if it is a repeating command
1897
+ # block.
1898
+ tick_delay: li32
1899
+ # ExecuteOnFirstTick specifies if the command block should execute on the first tick, AKA as soon as the
1900
+ # command block is enabled.
1901
+ execute_on_first_tick: bool
1902
+
1903
+ packet_command_output:
1904
+ !id: 0x4f
1905
+ !bound: client
1906
+ # CommandOrigin is the data specifying the origin of the command. In other words, the source that the
1907
+ # command request was from, such as the player itself or a websocket server. The client forwards the
1908
+ # messages in this packet to the right origin, depending on what is sent here.
1909
+ origin: CommandOrigin
1910
+ # OutputType specifies the type of output that is sent.
1911
+ output_type: i8 =>
1912
+ 1: last
1913
+ 2: silent
1914
+ 3: all
1915
+ 4: data_set
1916
+ # SuccessCount is the amount of times that a command was executed successfully as a result of the command
1917
+ # that was requested. For servers, this is usually a rather meaningless fields, but for vanilla, this is
1918
+ # applicable for commands created with Functions.
1919
+ success_count: varint
1920
+ # OutputMessages is a list of all output messages that should be sent to the player. Whether they are
1921
+ # shown or not, depends on the type of the messages.
1922
+ output: []varint
1923
+ # Success indicates if the output message was one of a successful command execution. If set to true, the
1924
+ # output message is by default coloured white, whereas if set to false, the message is by default
1925
+ # coloured red.
1926
+ success: bool
1927
+ # Message is the message that is sent to the client in the chat window. It may either be simply a
1928
+ # message or a translated built-in string like 'commands.tp.success.coordinates', combined with specific
1929
+ # parameters below.
1930
+ message_id: string
1931
+ # Parameters is a list of parameters that serve to supply the message sent with additional information,
1932
+ # such as the position that a player was teleported to or the effect that was applied to an entity.
1933
+ # These parameters only apply for the Minecraft built-in command output.
1934
+ parameters: string[]varint
1935
+ data_set: output_type ?
1936
+ if data_set: string
1937
+ default: void
1938
+
1939
+
1940
+ # UpdateTrade is sent by the server to update the trades offered by a villager to a player. It is sent at the
1941
+ # moment that a player interacts with a villager.
1942
+ packet_update_trade:
1943
+ !id: 0x50
1944
+ !bound: client
1945
+ # WindowID is the ID that identifies the trading window that the client currently has opened.
1946
+ window_id: WindowID
1947
+ # WindowType is an identifier specifying the type of the window opened. In vanilla, it appears this is
1948
+ # always filled out with 15.
1949
+ window_type: WindowType
1950
+ # Size is the amount of trading options that the villager has.
1951
+ size: varint
1952
+ # TradeTier is the tier of the villager that the player is trading with. The tier starts at 0 with a
1953
+ # first two offers being available, after which two additional offers are unlocked each time the tier
1954
+ # becomes one higher.
1955
+ trade_tier: varint
1956
+ # VillagerUniqueID is the unique ID of the villager entity that the player is trading with. The
1957
+ # TradeTier sent above applies to this villager.
1958
+ villager_unique_id: varint64
1959
+ # EntityUniqueID is the unique ID of the entity (usually a player) for which the trades are updated. The
1960
+ # updated trades may apply only to this entity.
1961
+ entity_unique_id: varint64
1962
+ # DisplayName is the name displayed at the top of the trading UI. It is usually used to represent the
1963
+ # profession of the villager in the UI.
1964
+ display_name: string
1965
+ # NewTradeUI specifies if the villager should be using the new trade UI (The one added in 1.11.) rather
1966
+ # than the old one. This should usually be set to true.
1967
+ new_trading_ui: bool
1968
+ # Trading based on Minecraft economy - specifies if the prices of the villager's offers are modified by an increase in
1969
+ # demand for the item. (A mechanic added in 1.11.) Buying more of the same item will increase the price
1970
+ # of that particular item.
1971
+ # https://minecraft.wiki/w/Trading#Economics
1972
+ economic_trades: bool
1973
+ # NBT serialised compound of offers that the villager has.
1974
+ offers: nbt
1975
+
1976
+ # UpdateEquip is sent by the server to the client upon opening a horse inventory. It is used to set the
1977
+ # content of the inventory and specify additional properties, such as the items that are allowed to be put
1978
+ # in slots of the inventory.
1979
+ packet_update_equipment:
1980
+ !id: 0x51
1981
+ !bound: client
1982
+ # WindowID is the identifier associated with the window that the UpdateEquip packet concerns. It is the
1983
+ # ID sent for the horse inventory that was opened before this packet was sent.
1984
+ window_id: WindowID
1985
+ # WindowType is the type of the window that was opened. Generally, this is the type of a horse inventory,
1986
+ # as the packet is specifically made for that.
1987
+ window_type: WindowType
1988
+ # Size is the size of the horse inventory that should be opened. A bigger size does, in fact, change the
1989
+ # amount of slots displayed.
1990
+ size: u8
1991
+ # EntityUniqueID is the unique ID of the entity whose equipment was 'updated' to the player. It is
1992
+ # typically the horse entity that had its inventory opened.
1993
+ entity_id: zigzag64
1994
+ # `inventory` is a network NBT serialised compound holding the content of the inventory of
1995
+ # the entity (the equipment) and additional data such as the allowed items for a particular slot, used to
1996
+ # make sure only saddles can be put in the saddle slot etc.
1997
+ inventory: nbt
1998
+
1999
+
2000
+ # ResourcePackDataInfo is sent by the server to the client to inform the client about the data contained in
2001
+ # one of the resource packs that are about to be sent.
2002
+ packet_resource_pack_data_info:
2003
+ !id: 0x52
2004
+ !bound: client
2005
+ # UUID is the unique ID of the resource pack that the info concerns.
2006
+ pack_id: string
2007
+ # DataChunkSize is the maximum size in bytes of the chunks in which the total size of the resource pack
2008
+ # to be sent will be divided. A size of 1MB (1024*1024) means that a resource pack of 15.5MB will be
2009
+ # split into 16 data chunks.
2010
+ max_chunk_size: lu32
2011
+ # ChunkCount is the total amount of data chunks that the sent resource pack will exist out of. It is the
2012
+ # total size of the resource pack divided by the DataChunkSize field.
2013
+ # The client doesn't actually seem to use this field. Rather, it divides the size by the chunk size to
2014
+ # calculate it itself.
2015
+ chunk_count: lu32
2016
+ # Size is the total size in bytes that the resource pack occupies. This is the size of the compressed
2017
+ # archive (zip) of the resource pack.
2018
+ size: lu64
2019
+ # Hash is a SHA256 hash of the content of the resource pack.
2020
+ hash: ByteArray
2021
+ # Premium specifies if the resource pack was a premium resource pack, meaning it was bought from the
2022
+ # Minecraft store.
2023
+ is_premium: bool
2024
+ # PackType is the type of the resource pack. It is one of the resource pack types listed.
2025
+ pack_type: u8 =>
2026
+ 1: addon
2027
+ 2: cached
2028
+ 3: copy_protected
2029
+ 4: behavior
2030
+ 5: persona_piece
2031
+ 6: resources
2032
+ 7: skins
2033
+ 8: world_template
2034
+
2035
+ # ResourcePackChunkData is sent to the client so that the client can download the resource pack. Each packet
2036
+ # holds a chunk of the compressed resource pack, of which the size is defined in the ResourcePackDataInfo
2037
+ # packet sent before.
2038
+ packet_resource_pack_chunk_data:
2039
+ !id: 0x53
2040
+ !bound: client
2041
+ # UUID is the unique ID of the resource pack that the chunk of data is taken out of.
2042
+ pack_id: string
2043
+ # ChunkIndex is the current chunk index of the chunk. It is a number that starts at 0 and is incremented
2044
+ # for each resource pack data chunk sent to the client.
2045
+ chunk_index: lu32
2046
+ # DataOffset is the current progress in bytes or offset in the data that the resource pack data chunk is
2047
+ # taken from.
2048
+ progress: lu64
2049
+ # RawPayload is a byte slice containing a chunk of data from the resource pack. It must be of the same size or
2050
+ # less than the DataChunkSize set in the ResourcePackDataInfo packet.
2051
+ payload: ByteArray
2052
+
2053
+ # ResourcePackChunkRequest is sent by the client to request a chunk of data from a particular resource pack,
2054
+ # that it has obtained information about in a ResourcePackDataInfo packet.
2055
+ packet_resource_pack_chunk_request:
2056
+ !id: 0x54
2057
+ !bound: server
2058
+ # UUID is the unique ID of the resource pack that the chunk of data is requested from.
2059
+ pack_id: string
2060
+ # ChunkIndex is the requested chunk index of the chunk. It is a number that starts at 0 and is
2061
+ # incremented for each resource pack data chunk requested.
2062
+ chunk_index: lu32
2063
+
2064
+ packet_transfer:
2065
+ !id: 0x55
2066
+ !bound: client
2067
+ server_address: string
2068
+ port: lu16
2069
+
2070
+ packet_play_sound:
2071
+ !id: 0x56
2072
+ !bound: client
2073
+ name: string
2074
+ coordinates: BlockCoordinates
2075
+ volume: lf32
2076
+ pitch: lf32
2077
+
2078
+ packet_stop_sound:
2079
+ !id: 0x57
2080
+ !bound: client
2081
+ name: string
2082
+ stop_all: bool
2083
+
2084
+ # SetTitle is sent by the server to make a title, subtitle or action bar shown to a player. It has several
2085
+ # fields that allow setting the duration of the titles.
2086
+ packet_set_title:
2087
+ !id: 0x58
2088
+ !bound: client
2089
+ # ActionType is the type of the action that should be executed upon the title of a player. It is one of
2090
+ # the constants above and specifies the response of the client to the packet.
2091
+ type: zigzag32 =>
2092
+ 0: clear
2093
+ 1: reset
2094
+ 2: set_title
2095
+ 3: set_subtitle
2096
+ 4: action_bar_message
2097
+ 5: set_durations
2098
+ 6: set_title_json
2099
+ 7: set_subtitle_json
2100
+ 8: action_bar_message_json
2101
+ # Text is the text of the title, which has a different meaning depending on the ActionType that the
2102
+ # packet has. The text is the text of a title, subtitle or action bar, depending on the type set.
2103
+ text: string
2104
+ # FadeInDuration is the duration that the title takes to fade in on the screen of the player. It is
2105
+ # measured in 20ths of a second (AKA in ticks).
2106
+ fade_in_time: zigzag32
2107
+ # RemainDuration is the duration that the title remains on the screen of the player. It is measured in
2108
+ # 20ths of a second (AKA in ticks).
2109
+ stay_time: zigzag32
2110
+ # FadeOutDuration is the duration that the title takes to fade out of the screen of the player. It is
2111
+ # measured in 20ths of a second (AKA in ticks).
2112
+ fade_out_time: zigzag32
2113
+ # XUID is the XBOX Live user ID of the player, which will remain consistent as long as the player is
2114
+ # logged in with the XBOX Live account. It is empty if the user is not logged into its XBL account.
2115
+ xuid: string
2116
+ # PlatformOnlineID is either a uint64 or an empty string.
2117
+ platform_online_id: string
2118
+
2119
+ packet_add_behavior_tree:
2120
+ !id: 0x59
2121
+ !bound: client
2122
+ behaviortree: string
2123
+
2124
+ # StructureBlockUpdate is sent by the client when it updates a structure block using the in-game UI. The
2125
+ # data it contains depends on the type of structure block that it is. In Minecraft Bedrock Edition v1.11,
2126
+ # there is only the Export structure block type, but in v1.13 the ones present in Java Edition will,
2127
+ # according to the wiki, be added too.
2128
+ packet_structure_block_update:
2129
+ !id: 0x5a
2130
+ !bound: client
2131
+ # Position is the position of the structure block that is updated.
2132
+ position: BlockCoordinates
2133
+ # StructureName is the name of the structure that was set in the structure block's UI. This is the name
2134
+ # used to export the structure to a file.
2135
+ structure_name: string
2136
+ # DataField is the name of a function to run, usually used during natural generation. A description can
2137
+ # be found here: https://minecraft.wiki/w/Structure_Block#Data.
2138
+ data_field: string
2139
+ # IncludePlayers specifies if the 'Include Players' toggle has been enabled, meaning players are also
2140
+ # exported by the structure block.
2141
+ include_players: bool
2142
+ # ShowBoundingBox specifies if the structure block should have its bounds outlined. A thin line will
2143
+ # encapsulate the bounds of the structure if set to true.
2144
+ show_bounding_box: bool
2145
+ # StructureBlockType is the type of the structure block updated. A list of structure block types that
2146
+ # will be used can be found in the constants above.
2147
+ structure_block_type: zigzag32
2148
+ # Settings is a struct of settings that should be used for exporting the structure. These settings are
2149
+ # identical to the last sent in the StructureBlockUpdate packet by the client.
2150
+ settings: StructureBlockSettings
2151
+ # RedstoneSaveMode is the mode that should be used to save the structure when used with redstone. In
2152
+ # Java Edition, this is always stored in memory, but in Bedrock Edition it can be stored either to disk
2153
+ # or memory. See the constants above for the options.
2154
+ redstone_save_mode: zigzag32
2155
+ # ShouldTrigger specifies if the structure block should be triggered immediately after this packet
2156
+ # reaches the server.
2157
+ should_trigger: bool
2158
+ # Waterlogged specifies if the structure block is waterlogged at the time of the packet being sent.
2159
+ water_logged: bool
2160
+
2161
+ # ShowStoreOffer is sent by the server to show a Marketplace store offer to a player. It opens a window
2162
+ # client-side that displays the item.
2163
+ # The ShowStoreOffer packet only works on the partnered servers: Servers that are not partnered will not have
2164
+ # a store buttons show up in the in-game pause menu and will, as a result, not be able to open store offers
2165
+ # on the client side. Sending the packet does therefore not work when using a proxy that is not connected to
2166
+ # with the domain of one of the partnered servers.
2167
+ packet_show_store_offer:
2168
+ !id: 0x5b
2169
+ !bound: client
2170
+ # OfferID is a string that identifies the offer for which a window should be opened. While typically a
2171
+ # UUID, the ID could be anything.
2172
+ offer_id: string
2173
+ # ShowAll specifies if all other offers of the same 'author' as the one of the offer associated with the
2174
+ # OfferID should also be displayed, alongside the target offer.
2175
+ show_all: bool
2176
+
2177
+
2178
+ # PurchaseReceipt is sent by the client to the server to notify the server it purchased an item from the
2179
+ # Marketplace store that was offered by the server. The packet is only used for partnered servers.
2180
+ packet_purchase_receipt:
2181
+ !id: 0x5c
2182
+ !bound: server
2183
+ # Receipts is a list of receipts, or proofs of purchases, for the offers that have been purchased by the
2184
+ # player.
2185
+ receipts: string[]varint
2186
+
2187
+ packet_player_skin:
2188
+ !id: 0x5d
2189
+ !bound: both
2190
+ uuid: uuid
2191
+ skin: Skin
2192
+ skin_name: string
2193
+ old_skin_name: string
2194
+ is_verified: bool
2195
+
2196
+ # SubClientLogin is sent when a sub-client joins the server while another client is already connected to it.
2197
+ # The packet is sent as a result of split-screen game play, and allows up to four players to play using the
2198
+ # same network connection. After an initial Login packet from the 'main' client, each sub-client that
2199
+ # connects sends a SubClientLogin to request their own login.
2200
+ packet_sub_client_login:
2201
+ !id: 0x5e
2202
+ !bound: server
2203
+ # ConnectionRequest is a string containing information about the player and JWTs that may be used to
2204
+ # verify if the player is connected to XBOX Live. The connection request also contains the necessary
2205
+ # client public key to initiate encryption.
2206
+ # The ConnectionRequest in this packet is identical to the one found in the Login packet.
2207
+ tokens: '["encapsulated", { "lengthType": "varint", "type": "LoginTokens" }]'
2208
+
2209
+ # AutomationClientConnect is used to make the client connect to a websocket server. This websocket server has
2210
+ # the ability to execute commands on the behalf of the client and it can listen for certain events fired by
2211
+ # the client.
2212
+ packet_initiate_web_socket_connection:
2213
+ !id: 0x5f
2214
+ !bound: client
2215
+ # ServerURI is the URI to make the client connect to. It can be, for example, 'localhost:8000/ws' to
2216
+ # connect to a websocket server on the localhost at port 8000.
2217
+ server: string
2218
+
2219
+
2220
+ # SetLastHurtBy is sent by the server to let the client know what entity type it was last hurt by. At this
2221
+ # moment, the packet is useless and should not be used. There is no behaviour that depends on if this
2222
+ # packet is sent or not.
2223
+ packet_set_last_hurt_by:
2224
+ !id: 0x60
2225
+ !bound: client
2226
+ entity_type: varint
2227
+
2228
+ # BookEdit is sent by the client when it edits a book. It is sent each time a modification was made and the
2229
+ # player stops its typing 'session', rather than simply after closing the book.
2230
+ packet_book_edit:
2231
+ !id: 0x61
2232
+ !bound: server
2233
+ type: u8 =>
2234
+ 0: replace_page
2235
+ 1: add_page
2236
+ 2: delete_page
2237
+ 3: swap_pages
2238
+ 4: sign
2239
+ slot: u8
2240
+ _: type?
2241
+ if replace_page or add_page:
2242
+ page_number: u8
2243
+ text: string
2244
+ # Only available on Education Edition.
2245
+ photo_name: string
2246
+ if delete_page:
2247
+ page_number: u8
2248
+ if swap_pages:
2249
+ page1: u8
2250
+ page2: u8
2251
+ if sign:
2252
+ title: string
2253
+ author: string
2254
+ xuid: string
2255
+
2256
+
2257
+ # NPCRequest is sent by the client when it interacts with an NPC.
2258
+ # The packet is specifically made for Education Edition, where NPCs are available to use.
2259
+ packet_npc_request:
2260
+ !id: 0x62
2261
+ !bound: both
2262
+ # EntityRuntimeID is the runtime ID of the NPC entity that the player interacted with. It is the same
2263
+ # as sent by the server when spawning the entity.
2264
+ runtime_entity_id: varint64
2265
+ # RequestType is the type of the request, which depends on the permission that the player has. It will
2266
+ # be either a type that indicates that the NPC should show its dialog, or that it should open the
2267
+ # editing window.
2268
+ request_type: u8 =>
2269
+ 0: set_actions
2270
+ 1: execute_action
2271
+ 2: execute_closing_commands
2272
+ 3: set_name
2273
+ 4: set_skin
2274
+ 5: set_interaction_text
2275
+ 6: execute_opening_commands
2276
+ # CommandString is the command string set in the NPC. It may consist of multiple commands, depending on
2277
+ # what the player set in it.
2278
+ command: string
2279
+ # ActionType is the type of the action to execute.
2280
+ action_type: u8 =>
2281
+ 0: set_actions
2282
+ 1: execute_action
2283
+ 2: execute_closing_commands
2284
+ 3: set_name
2285
+ 4: set_skin
2286
+ 5: set_interact_text
2287
+ 6: execute_opening_commands
2288
+ # SceneName is the name of the scene.
2289
+ scene_name: string
2290
+
2291
+ # PhotoTransfer is sent by the server to transfer a photo (image) file to the client. It is typically used
2292
+ # to transfer photos so that the client can display it in a portfolio in Education Edition.
2293
+ # While previously usable in the default Bedrock Edition, the displaying of photos in books was disabled and
2294
+ # the packet now has little use anymore.
2295
+ packet_photo_transfer:
2296
+ !id: 0x63
2297
+ !bound: server
2298
+ # PhotoName is the name of the photo to transfer. It is the exact file name that the client will download
2299
+ # the photo as, including the extension of the file.
2300
+ image_name: string
2301
+ # PhotoData is the raw data of the photo image. The format of this data may vary: Formats such as JPEG or
2302
+ # PNG work, as long as PhotoName has the correct extension.
2303
+ image_data: string
2304
+ # BookID is the ID of the book that the photo is associated with. If the PhotoName in a book with this ID
2305
+ # is set to PhotoName, it will display the photo (provided Education Edition is used).
2306
+ # The photo image is downloaded to a sub-folder with this book ID.
2307
+ book_id: string
2308
+ # PhotoType is one of the three photo types above.
2309
+ photo_type: u8
2310
+ # SourceType is the source photo type. It is one of the three photo types above.
2311
+ source_type: u8
2312
+ # OwnerEntityUniqueID is the entity unique ID of the photo's owner.
2313
+ owner_entity_unique_id: li64
2314
+ # NewPhotoName is the new name of the photo.
2315
+ new_photo_name: string
2316
+
2317
+ # ModalFormRequest is sent by the server to make the client open a form. This form may be either a modal form
2318
+ # which has two options, a menu form for a selection of options and a custom form for properties.
2319
+ packet_modal_form_request:
2320
+ !id: 0x64
2321
+ !bound: client
2322
+ # FormID is an ID used to identify the form. The ID is saved by the client and sent back when the player
2323
+ # submits the form, so that the server can identify which form was submitted.
2324
+ form_id: varint
2325
+ # FormData is a JSON encoded object of form data. The content of the object differs, depending on the
2326
+ # type of the form sent, which is also set in the JSON.
2327
+ data: string
2328
+
2329
+ # ModalFormResponse is sent by the client in response to a ModalFormRequest, after the player has submitted
2330
+ # the form sent. It contains the options/properties selected by the player, or a JSON encoded 'null' if
2331
+ # the form was closed by clicking the X at the top right corner of the form.
2332
+ packet_modal_form_response:
2333
+ !id: 0x65
2334
+ !bound: server
2335
+ # FormID is the form ID of the form the client has responded to. It is the same as the ID sent in the
2336
+ # ModalFormRequest, and may be used to identify which form was submitted.
2337
+ form_id: varint
2338
+ # HasResponseData is true if the client provided response data.
2339
+ has_response_data: bool
2340
+ # ResponseData is a JSON encoded value representing the response of the player. For a modal form, the response is
2341
+ # either true or false, for a menu form, the response is an integer specifying the index of the button clicked, and
2342
+ # for a custom form, the response is an array containing a value for each element.
2343
+ data: has_response_data ?
2344
+ if true: string
2345
+ # HasCancelReason is true if the client provided a reason for the form being cancelled.
2346
+ has_cancel_reason: bool
2347
+ # CancelReason represents the reason why the form was cancelled.
2348
+ _: has_cancel_reason ?
2349
+ if true:
2350
+ cancel_reason: u8 =>
2351
+ 0: closed
2352
+ 1: busy
2353
+
2354
+ # ServerSettingsRequest is sent by the client to request the settings specific to the server. These settings
2355
+ # are shown in a separate tab client-side, and have the same structure as a custom form.
2356
+ # ServerSettingsRequest has no fields.
2357
+ packet_server_settings_request:
2358
+ !id: 0x66
2359
+ !bound: server
2360
+
2361
+ # ServerSettingsResponse is optionally sent by the server in response to a ServerSettingsRequest from the
2362
+ # client. It is structured the same as a ModalFormRequest packet, and if filled out correctly, will show
2363
+ # a specific tab for the server in the settings of the client. A ModalFormResponse packet is sent by the
2364
+ # client in response to a ServerSettingsResponse, when the client fills out the settings and closes the
2365
+ # settings again.
2366
+ packet_server_settings_response:
2367
+ !id: 0x67
2368
+ !bound: client
2369
+ # FormID is an ID used to identify the form. The ID is saved by the client and sent back when the player
2370
+ # submits the form, so that the server can identify which form was submitted.
2371
+ form_id: varint
2372
+ # FormData is a JSON encoded object of form data. The content of the object differs, depending on the
2373
+ # type of the form sent, which is also set in the JSON.
2374
+ data: string
2375
+
2376
+ # ShowProfile is sent by the server to show the XBOX Live profile of one player to another.
2377
+ packet_show_profile:
2378
+ !id: 0x68
2379
+ !bound: client
2380
+ # XUID is the XBOX Live User ID of the player whose profile should be shown to the player. If it is not
2381
+ # a valid XUID, the client ignores the packet.
2382
+ xuid: string
2383
+
2384
+ # SetDefaultGameType is sent by the client when it toggles the default game type in the settings UI, and is
2385
+ # sent by the server when it actually changes the default game type, resulting in the toggle being changed
2386
+ # in the settings UI.
2387
+ packet_set_default_game_type:
2388
+ !id: 0x69
2389
+ !bound: server
2390
+ # GameType is the new game type that is set. When sent by the client, this is the requested new default
2391
+ # game type.
2392
+ gamemode: GameMode
2393
+
2394
+ # RemoveObjective is sent by the server to remove a scoreboard objective. It is used to stop showing a
2395
+ # scoreboard to a player.
2396
+ packet_remove_objective:
2397
+ !id: 0x6a
2398
+ !bound: client
2399
+ # ObjectiveName is the name of the objective that the scoreboard currently active has. This name must
2400
+ # be identical to the one sent in the SetDisplayObjective packet.
2401
+ objective_name: string
2402
+
2403
+ # SetDisplayObjective is sent by the server to display an object as a scoreboard to the player. Once sent,
2404
+ # it should be followed up by a SetScore packet to set the lines of the packet.
2405
+ packet_set_display_objective:
2406
+ !id: 0x6b
2407
+ !bound: client
2408
+ # DisplaySlot is the slot in which the scoreboard should be displayed. Available options can be found in
2409
+ # the constants above.
2410
+ display_slot: string
2411
+ # ObjectiveName is the name of the objective that the scoreboard displays. Filling out a random unique
2412
+ # value for this field works: It is not displayed in the scoreboard.
2413
+ objective_name: string
2414
+ # DisplayName is the name, or title, that is displayed at the top of the scoreboard.
2415
+ display_name: string
2416
+ # CriteriaName is the name of the criteria that need to be fulfilled in order for the score to be
2417
+ # increased. This can be any kind of string and does not show up client-side.
2418
+ criteria_name: string
2419
+ # SortOrder is the order in which entries on the scoreboard should be sorted. It is one of the constants
2420
+ # that may be found above.
2421
+ sort_order: zigzag32
2422
+
2423
+ # SetScore is sent by the server to send the contents of a scoreboard to the player. It may be used to either
2424
+ # add, remove or edit entries on the scoreboard.
2425
+ packet_set_score:
2426
+ !id: 0x6c
2427
+ !bound: client
2428
+ # ActionType is the type of the action to execute upon the scoreboard with the entries that the packet
2429
+ # has. If ActionType is ScoreboardActionModify, all entries will be added to the scoreboard if not yet
2430
+ # present, or modified if already present. If set to ScoreboardActionRemove, all scoreboard entries set
2431
+ # will be removed from the scoreboard.
2432
+ action: u8 =>
2433
+ 0: change
2434
+ 1: remove
2435
+ entries: []varint
2436
+ scoreboard_id: zigzag64
2437
+ objective_name: string
2438
+ score: li32
2439
+ _: ../action ?
2440
+ if change:
2441
+ entry_type: i8 =>
2442
+ 1: player
2443
+ 2: entity
2444
+ 3: fake_player
2445
+ entity_unique_id: entry_type ?
2446
+ if player or entity: zigzag64
2447
+ custom_name: entry_type ?
2448
+ if fake_player: string
2449
+
2450
+ # LabTable is sent by the client to let the server know it started a chemical reaction in Education Edition,
2451
+ # and is sent by the server to other clients to show the effects.
2452
+ # The packet is only functional if Education features are enabled.
2453
+ packet_lab_table:
2454
+ !id: 0x6d
2455
+ !bound: both
2456
+ # ActionType is the type of the action that was executed. It is one of the constants above. Typically,
2457
+ # only LabTableActionCombine is sent by the client, whereas LabTableActionReact is sent by the server.
2458
+ action_type: u8 =>
2459
+ 0: combine
2460
+ 1: react
2461
+ 2: reset
2462
+ # Position is the position at which the lab table used was located.
2463
+ position: vec3i
2464
+ # ReactionType is the type of the reaction that took place as a result of the items put into the lab
2465
+ # table. The reaction type can be either that of an item or a particle, depending on whatever the result
2466
+ # was of the reaction.
2467
+ reaction_type: u8
2468
+
2469
+ # UpdateBlockSynced is sent by the server to synchronise the falling of a falling block entity with the
2470
+ # transitioning back and forth from and to a solid block. It is used to prevent the entity from flickering,
2471
+ # and is used in places such as the pushing of blocks with pistons.
2472
+ packet_update_block_synced:
2473
+ !id: 0x6e
2474
+ !bound: client
2475
+ # Position is the block position at which a block is updated.
2476
+ position: BlockCoordinates
2477
+ # NewBlockRuntimeID is the runtime ID of the block that is placed at Position after sending the packet
2478
+ # to the client.
2479
+ block_runtime_id: varint
2480
+ # Flags is a combination of flags that specify the way the block is updated client-side. It is a
2481
+ # combination of the flags above, but typically sending only the BlockUpdateNetwork flag is sufficient.
2482
+ flags: UpdateBlockFlags
2483
+ # Layer is the world layer on which the block is updated. For most blocks, this is the first layer, as
2484
+ # that layer is the default layer to place blocks on, but for blocks inside of each other, this differs.
2485
+ layer: varint
2486
+ # EntityUniqueID is the unique ID of the falling block entity that the block transitions to or that the
2487
+ # entity transitions from.
2488
+ # Note that for both possible values for TransitionType, the EntityUniqueID should point to the falling
2489
+ # block entity involved.
2490
+ entity_unique_id: zigzag64
2491
+ # TransitionType is the type of the transition that happened. It is either BlockToEntityTransition, when
2492
+ # a block placed becomes a falling entity, or EntityToBlockTransition, when a falling entity hits the
2493
+ # ground and becomes a solid block again.
2494
+ transition_type: varint => TransitionType
2495
+
2496
+
2497
+ # MoveActorDelta is sent by the server to move an entity. The packet is specifically optimised to save as
2498
+ # much space as possible, by only writing non-zero fields.
2499
+ # As of 1.16.100, this packet no longer actually contains any deltas.
2500
+ packet_move_entity_delta:
2501
+ !id: 0x6f
2502
+ !bound: client
2503
+ # EntityRuntimeID is the runtime ID of the entity that is being moved. The packet works provided a
2504
+ # non-player entity with this runtime ID is present.
2505
+ runtime_entity_id: varint64
2506
+ # Flags is a list of flags that specify what data is in the packet.
2507
+ flags: DeltaMoveFlags
2508
+ x: flags.has_x?
2509
+ if true: lf32
2510
+ y: flags.has_y?
2511
+ if true: lf32
2512
+ z: flags.has_z?
2513
+ if true: lf32
2514
+ rot_x: flags.has_rot_x?
2515
+ if true: u8 # TODO: * implement ByteFloat
2516
+ rot_y: flags.has_rot_y?
2517
+ if true: u8
2518
+ rot_z: flags.has_rot_z?
2519
+ if true: u8
2520
+
2521
+ DeltaMoveFlags: [ "bitflags",
2522
+ {
2523
+ "type": "lu16",
2524
+ "flags": {
2525
+ "has_x": 0x01,
2526
+ "has_y": 0x02,
2527
+ "has_z": 0x04,
2528
+ "has_rot_x": 0x08,
2529
+ "has_rot_y": 0x10,
2530
+ "has_rot_z": 0x20,
2531
+ "on_ground": 0x40,
2532
+ "teleport": 0x80,
2533
+ "force_move": 0x100
2534
+ }
2535
+ }
2536
+ ]
2537
+
2538
+ # SetScoreboardIdentity is sent by the server to change the identity type of one of the entries on a
2539
+ # scoreboard. This is used to change, for example, an entry pointing to a player, to a fake player when it
2540
+ # leaves the server, and to change it back to a real player when it joins again.
2541
+ # In non-vanilla situations, the packet is quite useless.
2542
+ packet_set_scoreboard_identity:
2543
+ !id: 0x70
2544
+ !bound: client
2545
+ # ActionType is the type of the action to execute. The action is either ScoreboardIdentityActionRegister
2546
+ # to associate an identity with the entry, or ScoreboardIdentityActionClear to remove associations with
2547
+ # an entity.
2548
+ action: i8 =>
2549
+ 0: register_identity
2550
+ 1: clear_identity
2551
+ # Entries is a list of all entries in the packet. Each of these entries points to one of the entries on
2552
+ # a scoreboard. Depending on ActionType, their identity will either be registered or cleared.
2553
+ entries: []varint
2554
+ scoreboard_id: zigzag64
2555
+ entity_unique_id: ../action ?
2556
+ if register_identity: zigzag64
2557
+ default: void
2558
+
2559
+
2560
+ # SetLocalPlayerAsInitialised is sent by the client in response to a PlayStatus packet with the status set
2561
+ # to spawn. The packet marks the moment at which the client is fully initialised and can receive any packet
2562
+ # without discarding it.
2563
+ packet_set_local_player_as_initialized:
2564
+ !id: 0x71
2565
+ !bound: server
2566
+ # EntityRuntimeID is the entity runtime ID the player was assigned earlier in the login sequence in the
2567
+ # StartGame packet.
2568
+ runtime_entity_id: varint64
2569
+
2570
+ # UpdateSoftEnum is sent by the server to update a soft enum, also known as a dynamic enum, previously sent
2571
+ # in the AvailableCommands packet. It is sent whenever the enum should get new options or when some of its
2572
+ # options should be removed.
2573
+ # The UpdateSoftEnum packet will apply for enums that have been set in the AvailableCommands packet with the
2574
+ # 'Dynamic' field of the CommandEnum set to true.
2575
+ packet_update_soft_enum:
2576
+ !id: 0x72
2577
+ !bound: client
2578
+ # EnumType is the type of the enum. This type must be identical to the one set in the AvailableCommands
2579
+ # packet, because the client uses this to recognise which enum to update.
2580
+ enum_type: string
2581
+ # Options is a list of options that should be updated. Depending on the ActionType field, either these
2582
+ # options will be added to the enum, the enum options will be set to these options or all of these
2583
+ # options will be removed from the enum.
2584
+ options: string[]varint
2585
+ # ActionType is the type of the action to execute on the enum. The Options field has a different result,
2586
+ # depending on what ActionType is used.
2587
+ action_type: u8 =>
2588
+ 0: add
2589
+ 1: remove
2590
+ 2: update
2591
+
2592
+ # NetworkStackLatency is sent by the server (and the client, on development builds) to measure the latency
2593
+ # over the entire Minecraft stack, rather than the RakNet latency. It has other usages too, such as the
2594
+ # ability to be used as some kind of acknowledgement packet, to know when the client has received a certain
2595
+ # other packet.
2596
+ packet_network_stack_latency:
2597
+ !id: 0x73
2598
+ !bound: both
2599
+ # Timestamp is the timestamp of the network stack latency packet. The client will, if NeedsResponse is
2600
+ # set to true, send a NetworkStackLatency packet with this same timestamp packet in response.
2601
+ timestamp: lu64
2602
+ # NeedsResponse specifies if the sending side of this packet wants a response to the packet, meaning that
2603
+ # the other side should send a NetworkStackLatency packet back.
2604
+ needs_response: u8
2605
+
2606
+ # ScriptCustomEvent is sent by both the client and the server. It is a way to let scripts communicate with
2607
+ # the server, so that the client can let the server know it triggered an event, or the other way around.
2608
+ # It is essentially an RPC kind of system.
2609
+ # Deprecated: ScriptCustomEvent is deprecated as of 1.20.10.
2610
+ packet_script_custom_event:
2611
+ !id: 0x75
2612
+ !bound: both
2613
+ # EventName is the name of the event. The script and the server will use this event name to identify the
2614
+ # data that is sent.
2615
+ event_name: string
2616
+ # EventData is the data of the event. This data is typically a JSON encoded string, that the script is
2617
+ # able to encode and decode too.
2618
+ event_data: string
2619
+
2620
+ # SpawnParticleEffect is sent by the server to spawn a particle effect client-side. Unlike other packets that
2621
+ # result in the appearing of particles, this packet can show particles that are not hardcoded in the client.
2622
+ # They can be added and changed through behaviour packs to implement custom particles.
2623
+ packet_spawn_particle_effect:
2624
+ !id: 0x76
2625
+ !bound: client
2626
+ # Dimension is the dimension that the particle is spawned in. Its exact usage is not clear, as the
2627
+ # dimension has no direct effect on the particle.
2628
+ dimension: u8
2629
+ # EntityUniqueID is the unique ID of the entity that the spawned particle may be attached to. If this ID
2630
+ # is not -1, the Position below will be interpreted as relative to the position of the entity associated
2631
+ # with this unique ID.
2632
+ entity_id: zigzag64
2633
+ # Position is the position that the particle should be spawned at. If the position is too far away from
2634
+ # the player, it will not show up.
2635
+ # If EntityUniqueID is not -1, the position will be relative to the position of the entity.
2636
+ position: vec3f
2637
+ # ParticleName is the name of the particle that should be shown. This name may point to a particle effect
2638
+ # that is built-in, or to one implemented by behaviour packs.
2639
+ particle_name: string
2640
+ # MoLangVariables is an encoded JSON map of MoLang variables that may be applicable to the particle spawn. This can
2641
+ # just be left empty in most cases.
2642
+ # TODO: Investigate, probably not a ByteArray...
2643
+ molang_variables: ByteArray
2644
+
2645
+ # AvailableActorIdentifiers is sent by the server at the start of the game to let the client know all
2646
+ # entities that are available on the server.
2647
+ packet_available_entity_identifiers:
2648
+ !id: 0x77
2649
+ !bound: client
2650
+ # SerialisedEntityIdentifiers is a network NBT serialised compound of all entity identifiers that are
2651
+ # available in the server.
2652
+ nbt: nbt
2653
+
2654
+ # Not used. Use `packet_level_sound_event`.
2655
+ packet_level_sound_event_v2:
2656
+ !id: 0x78
2657
+ !bound: both
2658
+ sound_id: u8
2659
+ position: vec3f
2660
+ block_id: zigzag32
2661
+ entity_type: string
2662
+ is_baby_mob: bool
2663
+ is_global: bool
2664
+
2665
+ # NetworkChunkPublisherUpdate is sent by the server to change the point around which chunks are and remain
2666
+ # loaded. This is useful for mini-game servers, where only one area is ever loaded, in which case the
2667
+ # NetworkChunkPublisherUpdate packet can be sent in the middle of it, so that no chunks ever need to be
2668
+ # additionally sent during the course of the game.
2669
+ # In reality, the packet is not extraordinarily useful, and most servers just send it constantly at the
2670
+ # position of the player.
2671
+ # If the packet is not sent at all, no chunks will be shown to the player, regardless of where they are sent.
2672
+ packet_network_chunk_publisher_update:
2673
+ !id: 0x79
2674
+ !bound: client
2675
+ # Position is the block position around which chunks loaded will remain shown to the client. Most servers
2676
+ # set this position to the position of the player itself.
2677
+ ##TODO: Check putSignedBlockPosition
2678
+ coordinates: BlockCoordinates
2679
+ # Radius is the radius in blocks around Position that chunks sent show up in and will remain loaded in.
2680
+ # Unlike the RequestChunkRadius and ChunkRadiusUpdated packets, this radius is in blocks rather than
2681
+ # chunks, so the chunk radius needs to be multiplied by 16. (Or shifted to the left by 4.)
2682
+ radius: varint
2683
+ saved_chunks: []lu32
2684
+ # ChunkX is the X coordinate of the chunk sent. (To translate a block's X to a chunk's X: x >> 4)
2685
+ x: zigzag32
2686
+ # ChunkZ is the Z coordinate of the chunk sent. (To translate a block's Z to a chunk's Z: z >> 4)
2687
+ z: zigzag32
2688
+
2689
+
2690
+ # BiomeDefinitionList is sent by the server to let the client know all biomes that are available and
2691
+ # implemented on the server side. It is much like the AvailableActorIdentifiers packet, but instead
2692
+ # functions for biomes.
2693
+ packet_biome_definition_list:
2694
+ !id: 0x7a
2695
+ !bound: client
2696
+ # SerialisedBiomeDefinitions is a network NBT serialised compound of all definitions of biomes that are
2697
+ # available on the server.
2698
+ nbt: nbt
2699
+
2700
+ # LevelSoundEvent is sent by the server to make any kind of built-in sound heard to a player. It is sent to,
2701
+ # for example, play a stepping sound or a shear sound. The packet is also sent by the client, in which case
2702
+ # it could be forwarded by the server to the other players online. If possible, the packets from the client
2703
+ # should be ignored however, and the server should play them on its own accord.
2704
+ packet_level_sound_event:
2705
+ !id: 0x7b
2706
+ !bound: both
2707
+ # SoundType is the type of the sound to play. Some of the sound types
2708
+ # require additional data, which is set in the EventData field.
2709
+ sound_id: SoundType
2710
+ # Position is the position of the sound event. The player will be able to hear the direction of the sound
2711
+ # based on what position is sent here.
2712
+ position: vec3f
2713
+ # ExtraData is a packed integer that some sound types use to provide extra data. An example of this is
2714
+ # the note sound, which is composed of a pitch and an instrument type.
2715
+ extra_data: zigzag32
2716
+ # EntityType is the string entity type of the entity that emitted the sound, for example
2717
+ # 'minecraft:skeleton'. Some sound types use this entity type for additional data.
2718
+ entity_type: string
2719
+ # BabyMob specifies if the sound should be that of a baby mob. It is most notably used for parrot
2720
+ # imitations, which will change based on if this field is set to true or not.
2721
+ is_baby_mob: bool
2722
+ # DisableRelativeVolume specifies if the sound should be played relatively or not. If set to true, the
2723
+ # sound will have full volume, regardless of where the Position is, whereas if set to false, the sound's
2724
+ # volume will be based on the distance to Position.
2725
+ is_global: bool
2726
+
2727
+ # LevelEventGeneric is sent by the server to send a 'generic' level event to the client. This packet sends an
2728
+ # NBT serialised object and may for that reason be used for any event holding additional data.
2729
+ packet_level_event_generic:
2730
+ !id: 0x7c
2731
+ !bound: client
2732
+ # EventID is a unique identifier that identifies the event called. The data that follows has fields in
2733
+ # the NBT depending on what event it is.
2734
+ event_id: varint
2735
+ # SerialisedEventData is a network little endian serialised object of event data, with fields that vary
2736
+ # depending on EventID.
2737
+ # Unlike many other NBT structures, this data is not actually in a compound but just loosely floating
2738
+ # NBT tags. To decode using the nbt package, you would need to append 0x0a00 at the start (compound id
2739
+ # and name length) and add 0x00 at the end, to manually wrap it in a compound. Likewise, you would have
2740
+ # to remove these bytes when encoding.
2741
+ nbt: nbtLoop
2742
+
2743
+ # LecternUpdate is sent by the client to update the server on which page was opened in a book on a lectern,
2744
+ # or if the book should be removed from it.
2745
+ packet_lectern_update:
2746
+ !id: 0x7d
2747
+ !bound: server
2748
+ # Page is the page number in the book that was opened by the player on the lectern.
2749
+ page: u8
2750
+ # PageCount is the number of pages that the book opened in the lectern has.
2751
+ page_count: u8
2752
+ # Position is the position of the lectern that was updated. If no lectern is at the block position,
2753
+ # the packet should be ignored.
2754
+ position: vec3i
2755
+ # DropBook specifies if the book currently set on display in the lectern should be dropped server-side.
2756
+ drop_book: bool
2757
+
2758
+ # This packet was removed.
2759
+ packet_video_stream_connect:
2760
+ !id: 0x7e
2761
+ !bound: client
2762
+ server_uri: string
2763
+ frame_send_frequency: lf32
2764
+ action: u8 =>
2765
+ 1: none
2766
+ 2: close
2767
+ resolution_x: li32
2768
+ resolution_y: li32
2769
+
2770
+ # This is NOT a Minecraft entity, but an entity in the Entity Component System (ECS)
2771
+ # for the game engine Minecrat Bedrock uses. Internally, all 'Minecraft entities' are
2772
+ # known as Actors including in packet names and fields. However, these are irrelevant
2773
+ # internal details so we don't do the renames in these protocol definitions, for simplicity we just use Entity.
2774
+ #
2775
+ # AddEntity is sent by the server to the client. Its function is not entirely clear: It does not add an
2776
+ # entity in the sense of an in-game entity, but has to do with the ECS that Minecraft uses.
2777
+ packet_add_ecs_entity:
2778
+ !id: 0x7f
2779
+ !bound: client
2780
+ # EntityNetworkID is the network ID of the entity that should be added.
2781
+ network_id: varint64
2782
+
2783
+ # RemoveEntity is sent by the server to the client. Its function is not entirely clear: It does not remove an
2784
+ # entity in the sense of an in-game entity, but has to do with the ECS that Minecraft uses
2785
+ packet_remove_ecs_entity:
2786
+ !id: 0x80
2787
+ !bound: client
2788
+ # EntityNetworkID is the network ID of the entity that should be removed.
2789
+ network_id: varint64
2790
+
2791
+ # ClientCacheStatus is sent by the client to the server at the start of the game. It is sent to let the
2792
+ # server know if it supports the client-side blob cache. Clients such as Nintendo Switch do not support the
2793
+ # cache, and attempting to use it anyway will fail.
2794
+ packet_client_cache_status:
2795
+ !id: 0x81
2796
+ !bound: both
2797
+ # Enabled specifies if the blob cache is enabled. If false, the server should not attempt to use the
2798
+ # blob cache. If true, it may do so, but it may also choose not to use it.
2799
+ enabled: bool
2800
+
2801
+ # OnScreenTextureAnimation is sent by the server to show a certain animation on the screen of the player.
2802
+ # The packet is used, as an example, for when a raid is triggered and when a raid is defeated.
2803
+ packet_on_screen_texture_animation:
2804
+ !id: 0x82
2805
+ !bound: client
2806
+ # AnimationType is the type of the animation to show. The packet provides no further extra data to allow
2807
+ # modifying the duration or other properties of the animation.
2808
+ animation_type: lu32
2809
+
2810
+
2811
+ # MapCreateLockedCopy is sent by the server to create a locked copy of one map into another map. In vanilla,
2812
+ # it is used in the cartography table to create a map that is locked and cannot be modified.
2813
+ packet_map_create_locked_copy:
2814
+ !id: 0x83
2815
+ !bound: client
2816
+ # OriginalMapID is the ID of the map that is being copied. The locked copy will obtain all content that
2817
+ # is visible on this map, except the content will not change.
2818
+ original_map_id: zigzag64
2819
+ # NewMapID is the ID of the map that holds the locked copy of the map that OriginalMapID points to. Its
2820
+ # contents will be impossible to change.
2821
+ new_map_id: zigzag64
2822
+
2823
+
2824
+ # StructureTemplateDataRequest is sent by the client to request data of a structure.
2825
+ packet_structure_template_data_export_request:
2826
+ !id: 0x84
2827
+ !bound: server
2828
+ # StructureName is the name of the structure that was set in the structure block's UI. This is the name
2829
+ # used to export the structure to a file.
2830
+ name: string
2831
+ # Position is the position of the structure block that has its template data requested.
2832
+ position: BlockCoordinates
2833
+ # Settings is a struct of settings that should be used for exporting the structure. These settings are
2834
+ # identical to the last sent in the StructureBlockUpdate packet by the client.
2835
+ settings: StructureBlockSettings
2836
+ # RequestType specifies the type of template data request that the player sent.
2837
+ request_type: u8 =>
2838
+ 1: export_from_save
2839
+ 2: export_from_load
2840
+ 3: query_saved_structure
2841
+ 4: import_from_save
2842
+
2843
+ # StructureTemplateDataResponse is sent by the server to send data of a structure to the client in response
2844
+ # to a StructureTemplateDataRequest packet.
2845
+ packet_structure_template_data_export_response:
2846
+ !id: 0x85
2847
+ !bound: client
2848
+ name: string
2849
+ success: bool
2850
+ nbt: success ?
2851
+ if true: nbt
2852
+ # ResponseType specifies the response type of the packet. This depends on the RequestType field sent in
2853
+ # the StructureTemplateDataRequest packet and is one of the constants above.
2854
+ response_type: u8 =>
2855
+ 1: export
2856
+ 2: query
2857
+ 3: import
2858
+
2859
+ # No longer used.
2860
+ packet_update_block_properties:
2861
+ !id: 0x86
2862
+ !bound: client
2863
+ nbt: nbt
2864
+
2865
+ # ClientCacheBlobStatus is part of the blob cache protocol. It is sent by the client to let the server know
2866
+ # what blobs it needs and which blobs it already has, in an ACK type system.
2867
+ packet_client_cache_blob_status:
2868
+ !id: 0x87
2869
+ !bound: server
2870
+ # The number of MISSes in this packet
2871
+ misses: varint
2872
+ # The number of HITs in this packet
2873
+ haves: varint
2874
+ # A list of blob hashes that the client does not have a blob available for. The server
2875
+ # should send the blobs matching these hashes as soon as possible.
2876
+ missing: lu64[]$misses
2877
+ # A list of hashes that the client does have a cached blob for. Server doesn't need to send.
2878
+ have: lu64[]$haves
2879
+
2880
+ # ClientCacheMissResponse is part of the blob cache protocol. It is sent by the server in response to a
2881
+ # ClientCacheBlobStatus packet and contains the blob data of all blobs that the client acknowledged not to
2882
+ # have yet.
2883
+ packet_client_cache_miss_response:
2884
+ !id: 0x88
2885
+ !bound: client
2886
+ blobs: Blob[]varint
2887
+
2888
+ # EducationSettings is a packet sent by the server to update Minecraft: Education Edition related settings.
2889
+ # It is unused by the normal base game.
2890
+ packet_education_settings:
2891
+ !id: 0x89
2892
+ !bound: client
2893
+ # CodeBuilderDefaultURI is the default URI that the code builder is ran on. Using this, a Code Builder
2894
+ # program can make code directly affect the server.
2895
+ CodeBuilderDefaultURI: string
2896
+ # CodeBuilderTitle is the title of the code builder shown when connected to the CodeBuilderDefaultURI.
2897
+ CodeBuilderTitle: string
2898
+ # CanResizeCodeBuilder specifies if clients connected to the world should be able to resize the code
2899
+ # builder when it is opened.
2900
+ CanResizeCodeBuilder: bool
2901
+ disable_legacy_title_bar: bool
2902
+ post_process_filter: string
2903
+ screenshot_border_path: string
2904
+ has_agent_capabilities: bool
2905
+ agent_capabilities: has_agent_capabilities ?
2906
+ if true:
2907
+ has: bool
2908
+ can_modify_blocks: bool
2909
+ HasOverrideURI: bool
2910
+ OverrideURI: HasOverrideURI?
2911
+ if true: string
2912
+ # HasQuiz specifies if the world has a quiz connected to it.
2913
+ HasQuiz: bool
2914
+ has_external_link_settings: bool
2915
+ external_link_settings: has_external_link_settings ?
2916
+ if true:
2917
+ has: bool
2918
+ url: string
2919
+ display_name: string
2920
+
2921
+ # Emote is sent by both the server and the client. When the client sends an emote, it sends this packet to
2922
+ # the server, after which the server will broadcast the packet to other players online.
2923
+ packet_emote:
2924
+ !id: 0x8a
2925
+ !bound: both
2926
+ # EntityRuntimeID is the entity that sent the emote. When a player sends this packet, it has this field
2927
+ # set as its own entity runtime ID.
2928
+ entity_id: varint64
2929
+ # EmoteID is the ID of the emote to send.
2930
+ emote_id: string
2931
+ # XUID is the Xbox User ID of the player that sent the emote. It is only set when the emote is used by a player that
2932
+ # is authenticated with Xbox Live.
2933
+ xuid: string
2934
+ # PlatformID is an identifier only set for particular platforms when using an emote (presumably only for Nintendo
2935
+ # Switch). It is otherwise an empty string, and is used to decide which players are able to emote with each other.
2936
+ platform_id: string
2937
+ # Flags is a combination of flags that change the way the Emote packet operates. When the server sends
2938
+ # this packet to other players, EmoteFlagServerSide must be present.
2939
+ flags: u8 =>
2940
+ 1: server_side
2941
+ 2: mute_chat
2942
+
2943
+ # MultiPlayerSettings is sent by the client to update multi-player related settings server-side and sent back
2944
+ # to online players by the server.
2945
+ # The MultiPlayerSettings packet is a Minecraft: Education Edition packet. It has no functionality for the
2946
+ # base game.
2947
+ packet_multiplayer_settings:
2948
+ !id: 0x8b
2949
+ !bound: server
2950
+ # ActionType is the action that should be done when this packet is sent. It is one of the constants that
2951
+ # may be found above.
2952
+ action_type: zigzag32 =>
2953
+ 0: enable_multiplayer
2954
+ 1: disable_multiplayer
2955
+ 2: refresh_join_code
2956
+
2957
+ # SettingsCommand is sent by the client when it changes a setting in the settings that results in the issuing
2958
+ # of a command to the server, such as when Show Coordinates is enabled.
2959
+ packet_settings_command:
2960
+ !id: 0x8c
2961
+ !bound: server
2962
+ # CommandLine is the full command line that was sent to the server as a result of the setting that the
2963
+ # client changed.
2964
+ command_line: string
2965
+ # SuppressOutput specifies if the client requests the suppressing of the output of the command that was
2966
+ # executed. Generally this is set to true, as the client won't need a message to confirm the output of
2967
+ # the change.
2968
+ suppress_output: bool
2969
+
2970
+ # AnvilDamage is sent by the client to request the dealing damage to an anvil. This packet is completely
2971
+ # pointless and the server should never listen to it.
2972
+ packet_anvil_damage:
2973
+ !id: 0x8d
2974
+ !bound: server
2975
+ # Damage is the damage that the client requests to be dealt to the anvil.
2976
+ damage: u8
2977
+ # AnvilPosition is the position in the world that the anvil can be found at.
2978
+ position: BlockCoordinates
2979
+
2980
+ # CompletedUsingItem is sent by the server to tell the client that it should be done using the item it is
2981
+ # currently using.
2982
+ packet_completed_using_item:
2983
+ !id: 0x8e
2984
+ !bound: client
2985
+ # UsedItemID is the item ID of the item that the client completed using. This should typically be the
2986
+ # ID of the item held in the hand.
2987
+ used_item_id: li16
2988
+ # UseMethod is the method of the using of the item that was completed. It is one of the constants that
2989
+ # may be found above.
2990
+ use_method: li32 =>
2991
+ 0: equip_armor
2992
+ 1: eat
2993
+ 2: attack
2994
+ 3: consume
2995
+ 4: throw
2996
+ 5: shoot
2997
+ 6: place
2998
+ 7: fill_bottle
2999
+ 8: fill_bucket
3000
+ 9: pour_bucket
3001
+ 10: use_tool
3002
+ 11: interact
3003
+ 12: retrieved
3004
+ 13: dyed
3005
+ 14: traded
3006
+ 15: brushing_completed
3007
+
3008
+ # NetworkSettings is sent by the server to update a variety of network settings. These settings modify the
3009
+ # way packets are sent over the network stack.
3010
+ packet_network_settings:
3011
+ !id: 0x8f
3012
+ !bound: client
3013
+ # CompressionThreshold is the minimum size of a packet that is compressed when sent. If the size of a
3014
+ # packet is under this value, it is not compressed.
3015
+ # When set to 0, all packets will be left uncompressed.
3016
+ compression_threshold: lu16
3017
+ # CompressionAlgorithm is the algorithm that is used to compress packets.
3018
+ compression_algorithm: lu16 =>
3019
+ 0: deflate
3020
+ 1: snappy
3021
+ # ClientThrottle regulates whether the client should throttle players when exceeding of the threshold. Players
3022
+ # outside threshold will not be ticked, improving performance on low-end devices.
3023
+ client_throttle: bool
3024
+ # ClientThrottleThreshold is the threshold for client throttling. If the number of players exceeds this value, the
3025
+ # client will throttle players.
3026
+ client_throttle_threshold: u8
3027
+ # ClientThrottleScalar is the scalar for client throttling. The scalar is the amount of players that are ticked
3028
+ # when throttling is enabled.
3029
+ client_throttle_scalar: lf32
3030
+
3031
+ # PlayerAuthInput is sent by the client to allow for server authoritative movement. It is used to synchronise
3032
+ # the player input with the position server-side.
3033
+ # The client sends this packet when the ServerAuthoritativeMovementMode field in the StartGame packet is set
3034
+ # to true, instead of the MovePlayer packet. The client will send this packet once every tick.
3035
+ packet_player_auth_input:
3036
+ !id: 0x90
3037
+ !bound: server
3038
+ # Pitch that the player reports it has.
3039
+ pitch: lf32
3040
+ # Yaw that player reports it has.
3041
+ yaw: lf32
3042
+ # Position holds the position that the player reports it has.
3043
+ position: vec3f
3044
+ # MoveVector is a Vec2 that specifies the direction in which the player moved, as a combination of X/Z
3045
+ # values which are created using the WASD/controller stick state.
3046
+ move_vector: vec2f
3047
+ # HeadYaw is the horizontal rotation of the head that the player reports it has.
3048
+ head_yaw: lf32
3049
+ # InputData is a combination of bit flags that together specify the way the player moved last tick. It
3050
+ # is a combination of the flags above.
3051
+ input_data: InputFlag
3052
+ # InputMode specifies the way that the client inputs data to the screen. It is one of the constants that
3053
+ # may be found above.
3054
+ input_mode: varint =>
3055
+ 0: unknown
3056
+ 1: mouse
3057
+ 2: touch
3058
+ 3: game_pad
3059
+ 4: motion_controller
3060
+ # PlayMode specifies the way that the player is playing. The values it holds, which are rather random,
3061
+ # may be found above.
3062
+ play_mode: varint =>
3063
+ 0: normal
3064
+ 1: teaser
3065
+ 2: screen
3066
+ 3: viewer
3067
+ 4: reality
3068
+ 5: placement
3069
+ 6: living_room
3070
+ 7: exit_level
3071
+ 8: exit_level_living_room
3072
+ 9: num_modes
3073
+ # InteractionModel is a constant representing the interaction model the player is using.
3074
+ interaction_model: zigzag32 =>
3075
+ - touch
3076
+ - crosshair
3077
+ - classic
3078
+ # GazeDirection is the direction in which the player is gazing, when the PlayMode is PlayModeReality: In
3079
+ # other words, when the player is playing in virtual reality.
3080
+ gaze_direction: play_mode ?
3081
+ if reality: vec3f
3082
+ # Tick is the server tick at which the packet was sent. It is used in relation to
3083
+ # CorrectPlayerMovePrediction.
3084
+ tick: varint64
3085
+ # Delta was the delta between the old and the new position. There isn't any practical use for this field
3086
+ # as it can be calculated by the server itself.
3087
+ delta: vec3f
3088
+ transaction: input_data.item_interact ?
3089
+ if true:
3090
+ legacy: TransactionLegacy
3091
+ actions: TransactionActions
3092
+ data: TransactionUseItem
3093
+ item_stack_request: input_data.item_stack_request ?
3094
+ if true: ItemStackRequest
3095
+ block_action: input_data.block_action ?
3096
+ if true: []zigzag32
3097
+ action: Action
3098
+ _: action?
3099
+ if start_break or abort_break or crack_break or predict_break or continue_break:
3100
+ # BlockPosition is the position of the target block, if the action with the ActionType set concerned a
3101
+ # block. If that is not the case, the block position will be zero.
3102
+ position: vec3i
3103
+ # BlockFace is the face of the target block that was touched. If the action with the ActionType set
3104
+ # concerned a block. If not, the face is always 0.
3105
+ face: zigzag32
3106
+ # AnalogueMoveVector is a Vec2 that specifies the direction in which the player moved, as a combination of X/Z
3107
+ # values which are created using an analogue input.
3108
+ analogue_move_vector: vec2f
3109
+
3110
+ #TODO: update to use the new `shift` option in bitflags
3111
+ InputFlag: [ "bitflags", {
3112
+ "type": "varint64", "big": true,
3113
+ "flags": [
3114
+ "ascend",
3115
+ "descend",
3116
+ "north_jump",
3117
+ "jump_down",
3118
+ "sprint_down",
3119
+ "change_height",
3120
+ "jumping",
3121
+ "auto_jumping_in_water",
3122
+ "sneaking",
3123
+ "sneak_down",
3124
+ "up",
3125
+ "down",
3126
+ "left",
3127
+ "right",
3128
+ "up_left",
3129
+ "up_right",
3130
+ "want_up",
3131
+ "want_down",
3132
+ "want_down_slow",
3133
+ "want_up_slow",
3134
+ "sprinting",
3135
+ "ascend_block",
3136
+ "descend_block",
3137
+ "sneak_toggle_down",
3138
+ "persist_sneak",
3139
+ "start_sprinting",
3140
+ "stop_sprinting",
3141
+ "start_sneaking",
3142
+ "stop_sneaking",
3143
+ "start_swimming",
3144
+ "stop_swimming",
3145
+ "start_jumping",
3146
+ "start_gliding",
3147
+ "stop_gliding",
3148
+ "item_interact",
3149
+ "block_action",
3150
+ "item_stack_request",
3151
+ "handled_teleport",
3152
+ "emoting",
3153
+ "missed_swing",
3154
+ "start_crawling",
3155
+ "stop_crawling",
3156
+ "start_flying",
3157
+ "stop_flying",
3158
+ "received_server_data"
3159
+ ]
3160
+ }]
3161
+
3162
+ # CreativeContent is a packet sent by the server to set the creative inventory's content for a player.
3163
+ # Introduced in 1.16, this packet replaces the previous method - sending an InventoryContent packet with
3164
+ # creative inventory window ID.
3165
+ # As of v1.16.100, this packet must be sent during the login sequence. Not sending it will stop the client
3166
+ # from joining the server.
3167
+ packet_creative_content:
3168
+ !id: 0x91
3169
+ !bound: client
3170
+ # Items is a list of the items that should be added to the creative inventory.
3171
+ items: []varint
3172
+ entry_id: varint
3173
+ item: ItemLegacy
3174
+
3175
+ # PlayerEnchantOptions is sent by the server to update the enchantment options displayed when the user opens
3176
+ # the enchantment table and puts an item in. This packet was added in 1.16 and allows the server to decide on
3177
+ # the enchantments that can be selected by the player.
3178
+ # The PlayerEnchantOptions packet should be sent once for every slot update of the enchantment table. The
3179
+ # vanilla server sends an empty PlayerEnchantOptions packet when the player opens the enchantment table
3180
+ # (air is present in the enchantment table slot) and sends the packet with actual enchantments in it when
3181
+ # items are put in that can have enchantments.
3182
+ packet_player_enchant_options:
3183
+ !id: 0x92
3184
+ !bound: client
3185
+ # Options is a list of possible enchantment options for the item that was put into the enchantment table.
3186
+ options: EnchantOption[]varint
3187
+
3188
+ # ItemStackRequest is sent by the client to change item stacks in an inventory. It is essentially a
3189
+ # replacement of the InventoryTransaction packet added in 1.16 for inventory specific actions, such as moving
3190
+ # items around or crafting. The InventoryTransaction packet is still used for actions such as placing blocks
3191
+ # and interacting with entities.
3192
+ packet_item_stack_request:
3193
+ !id: 0x93
3194
+ !bound: server
3195
+ requests: ItemStackRequest[]varint
3196
+
3197
+ # ItemStackResponse is sent by the server in response to an ItemStackRequest packet from the client. This
3198
+ # packet is used to either approve or reject ItemStackRequests from the client. If a request is approved, the
3199
+ # client will simply continue as normal. If rejected, the client will undo the actions so that the inventory
3200
+ # should be in sync with the server again.
3201
+ packet_item_stack_response:
3202
+ !id: 0x94
3203
+ !bound: client
3204
+ # Responses is a list of responses to ItemStackRequests sent by the client before. Responses either
3205
+ # approve or reject a request from the client.
3206
+ # Vanilla limits the size of this slice to 4096.
3207
+ responses: ItemStackResponses
3208
+
3209
+ # PlayerArmourDamage is sent by the server to damage the armour of a player. It is a very efficient packet,
3210
+ # but generally it's much easier to just send a slot update for the damaged armour.
3211
+ packet_player_armor_damage:
3212
+ !id: 0x95
3213
+ !bound: client
3214
+ # Bitset holds a bitset of 4 bits that indicate which pieces of armour need to have damage dealt to them.
3215
+ # The first bit, when toggled, is for a helmet, the second for the chestplate, the third for the leggings
3216
+ # and the fourth for boots.
3217
+ type: ArmorDamageType
3218
+ helmet_damage: type.head ?
3219
+ if true: zigzag32
3220
+ chestplate_damage: type.chest ?
3221
+ if true: zigzag32
3222
+ leggings_damage: type.legs ?
3223
+ if true: zigzag32
3224
+ boots_damage: type.feet ?
3225
+ if true: zigzag32
3226
+
3227
+ ArmorDamageType: [ "bitflags",
3228
+ {
3229
+ "type": "u8",
3230
+ "flags": {
3231
+ "head": 0b1,
3232
+ "chest": 0b10,
3233
+ "legs": 0b100,
3234
+ "feet": 0b1000
3235
+ }
3236
+ }
3237
+ ]
3238
+
3239
+ # UpdatePlayerGameType is sent by the server to change the game mode of a player. It is functionally
3240
+ # identical to the SetPlayerGameType packet.
3241
+ packet_update_player_game_type:
3242
+ !id: 0x97
3243
+ !bound: client
3244
+ # GameType is the new game type of the player. It is one of the constants that can be found in
3245
+ # set_player_game_type.go. Some of these game types require additional flags to be set in an
3246
+ # AdventureSettings packet for the game mode to obtain its full functionality.
3247
+ gamemode: GameMode
3248
+ # PlayerUniqueID is the entity unique ID of the player that should have its game mode updated. If this
3249
+ # packet is sent to other clients with the player unique ID of another player, nothing happens.
3250
+ player_unique_id: zigzag64
3251
+
3252
+
3253
+ # EmoteList is sent by the client every time it joins the server and when it equips new emotes. It may be
3254
+ # used by the server to find out which emotes the client has available. If the player has no emotes equipped,
3255
+ # this packet is not sent.
3256
+ # Under certain circumstances, this packet is also sent from the server to the client, but I was unable to
3257
+ # find when this is done.
3258
+ packet_emote_list:
3259
+ !id: 0x98
3260
+ !bound: server
3261
+ # PlayerRuntimeID is the runtime ID of the player that owns the emote pieces below. If sent by the
3262
+ # client, this player runtime ID is always that of the player itself.
3263
+ player_id: varint64
3264
+ # EmotePieces is a list of emote pieces that the player with the runtime ID above has.
3265
+ emote_pieces: uuid[]varint
3266
+
3267
+ # PositionTrackingDBClientRequest is a packet sent by the client to request the position and dimension of a
3268
+ # 'tracking ID'. These IDs are tracked in a database by the server. In 1.16, this is used for lodestones.
3269
+ # The client will send this request to find the position a lodestone compass needs to point to. If found, it
3270
+ # will point to the lodestone. If not, it will start spinning around.
3271
+ # A PositionTrackingDBServerBroadcast packet should be sent in response to this packet.
3272
+ packet_position_tracking_db_request:
3273
+ !id: 0x9a
3274
+ !bound: server
3275
+ # RequestAction is the action that should be performed upon the receiving of the packet. It is one of the
3276
+ # constants found above.
3277
+ action: u8 =>
3278
+ 0: query
3279
+ # TrackingID is a unique ID used to identify the request. The server responds with a
3280
+ # PositionTrackingDBServerBroadcast packet holding the same ID, so that the client can find out what that
3281
+ # packet was in response to.
3282
+ tracking_id: zigzag32
3283
+
3284
+ # PositionTrackingDBServerBroadcast is sent by the server in response to the
3285
+ # PositionTrackingDBClientRequest packet. This packet is, as of 1.16, currently only used for lodestones. The
3286
+ # server maintains a database with tracking IDs and their position and dimension. The client will request
3287
+ # these tracking IDs, (NBT tag set on the lodestone compass with the tracking ID?) and the server will
3288
+ # respond with the status of those tracking IDs.
3289
+ # What is actually done with the data sent depends on what the client chooses to do with it. For the
3290
+ # lodestone compass, it is used to make the compass point towards lodestones and to make it spin if the
3291
+ # lodestone at a position is no longer there.
3292
+ packet_position_tracking_db_broadcast:
3293
+ !id: 0x99
3294
+ !bound: client
3295
+ # BroadcastAction specifies the status of the position tracking DB response. It is one of the constants
3296
+ # above, specifying the result of the request with the ID below.
3297
+ # The Update action is sent for setting the position of a lodestone compass, the Destroy and NotFound to
3298
+ # indicate that there is not (no longer) a lodestone at that position.
3299
+ broadcast_action: u8 =>
3300
+ 0: update
3301
+ 1: destory
3302
+ 2: not_found
3303
+ # TrackingID is the ID of the PositionTrackingDBClientRequest packet that this packet was in response to.
3304
+ # The tracking ID is also present as the 'id' field in the SerialisedData field.
3305
+ tracking_id: zigzag32
3306
+ nbt: nbt
3307
+
3308
+ # PacketViolationWarning is sent by the client when it receives an invalid packet from the server. It holds
3309
+ # some information on the error that occurred.
3310
+ packet_packet_violation_warning:
3311
+ !id: 0x9c
3312
+ !bound: server
3313
+ violation_type: zigzag32 =>
3314
+ 0: malformed
3315
+ # Severity specifies the severity of the packet violation. The action the client takes after this
3316
+ # violation depends on the severity sent.
3317
+ severity: zigzag32 =>
3318
+ 0: warning
3319
+ 1: final_warning
3320
+ 2: terminating
3321
+ # PacketID is the ID of the invalid packet that was received.
3322
+ packet_id: zigzag32
3323
+ # ViolationContext holds a description on the violation of the packet.
3324
+ reason: string
3325
+
3326
+
3327
+ # MotionPredictionHints is sent by the server to the client. There is a predictive movement component for
3328
+ # entities. This packet fills the "history" of that component and entity movement is computed based on the
3329
+ # points. Vanilla sends this packet instead of the SetActorMotion packet when 'spatial optimisations' are
3330
+ # enabled.
3331
+ packet_motion_prediction_hints:
3332
+ !id: 0x9d
3333
+ !bound: client
3334
+ # EntityRuntimeID is the runtime ID of the entity whose velocity is sent to the client.
3335
+ entity_runtime_id: varint64
3336
+ # Velocity is the server-calculated velocity of the entity at the point of sending the packet.
3337
+ velocity: vec3f
3338
+ # OnGround specifies if the server currently thinks the entity is on the ground.
3339
+ on_ground: bool
3340
+
3341
+
3342
+ # AnimateEntity is sent by the server to animate an entity client-side. It may be used to play a single
3343
+ # animation, or to activate a controller which can start a sequence of animations based on different
3344
+ # conditions specified in an animation controller.
3345
+ # Much of the documentation of this packet can be found at
3346
+ # https://learn.microsoft.com/minecraft/creator/reference/content/animationsreference.
3347
+ packet_animate_entity:
3348
+ !id: 0x9e
3349
+ !bound: client
3350
+ # Animation is the name of a single animation to start playing.
3351
+ animation: string
3352
+ # NextState is the first state to start with. These states are declared in animation controllers (which,
3353
+ # in themselves, are animations too). These states in turn may have animations and transitions to move to
3354
+ # a next state.
3355
+ next_state: string
3356
+ # StopCondition is a MoLang expression that specifies when the animation should be stopped.
3357
+ stop_condition: string
3358
+ # StopConditionVersion is the MoLang stop condition version.
3359
+ stop_condition_version: li32
3360
+ # Controller is the animation controller that is used to manage animations. These controllers decide when
3361
+ # to play which animation.
3362
+ controller: string
3363
+ # How long to move from the previous animation to the next.
3364
+ blend_out_time: lf32
3365
+ # EntityRuntimeIDs is list of runtime IDs of entities that the animation should be applied to.
3366
+ runtime_entity_ids: varint64[]varint
3367
+
3368
+ # CameraShake is sent by the server to make the camera shake client-side. This feature was added for map-
3369
+ # making partners.
3370
+ packet_camera_shake:
3371
+ !id: 0x9f
3372
+ !bound: client
3373
+ # Intensity is the intensity of the shaking. The client limits this value to 4, so anything higher may
3374
+ # not work.
3375
+ intensity: lf32
3376
+ # Duration is the number of seconds the camera will shake for.
3377
+ duration: lf32
3378
+ # Type is the type of shake, and is one of the constants listed above. The different type affects how
3379
+ # the shake looks in game.
3380
+ type: u8
3381
+ # Action is the action to be performed, and is one of the constants listed above. Currently the
3382
+ # different actions will either add or stop shaking the client.
3383
+ action: u8 =>
3384
+ 0: add
3385
+ 1: stop
3386
+
3387
+ # PlayerFog is sent by the server to render the different fogs in the Stack. The types of fog are controlled
3388
+ # by resource packs to change how they are rendered, and the ability to create custom fog.
3389
+ packet_player_fog:
3390
+ !id: 0xa0
3391
+ !bound: client
3392
+ # Stack is a list of fog identifiers to be sent to the client. Examples of fog identifiers are
3393
+ # "minecraft:fog_ocean" and "minecraft:fog_hell".
3394
+ stack: string[]varint
3395
+
3396
+
3397
+ # CorrectPlayerMovePrediction is sent by the server if and only if StartGame.ServerAuthoritativeMovementMode
3398
+ # is set to AuthoritativeMovementModeServerWithRewind. The packet is used to correct movement at a specific
3399
+ # point in time.
3400
+ packet_correct_player_move_prediction:
3401
+ !id: 0xa1
3402
+ !bound: client
3403
+ # Position is the position that the player is supposed to be at at the tick written in the field below.
3404
+ # The client will change its current position based on movement after that tick starting from the
3405
+ # Position.
3406
+ position: vec3f
3407
+ # Delta is the change in position compared to what the client sent as its position at that specific tick.
3408
+ delta: vec3f
3409
+ # OnGround specifies if the player was on the ground at the time of the tick below.
3410
+ on_ground: bool
3411
+ # Tick is the tick of the movement which was corrected by this packet.
3412
+ tick: varint64
3413
+
3414
+ # ItemComponent is sent by the server to attach client-side components to a custom item.
3415
+ packet_item_component:
3416
+ !id: 0xa2
3417
+ !bound: client
3418
+ # `entries` holds a list of all custom items with their respective components set.
3419
+ entries: ItemComponentList
3420
+
3421
+ # FilterText is sent by the both the client and the server. The client sends the packet to the server to
3422
+ # allow the server to filter the text server-side. The server then responds with the same packet and the
3423
+ # safer version of the text.
3424
+ packet_filter_text_packet:
3425
+ !id: 0xa3
3426
+ !bound: both
3427
+ # Text is either the text from the client or the safer version of the text sent by the server.
3428
+ text: string
3429
+ # FromServer indicates if the packet was sent by the server or not.
3430
+ from_server: bool
3431
+
3432
+ # ClientBoundDebugRenderer is sent by the server to spawn an outlined cube on client-side.
3433
+ packet_debug_renderer:
3434
+ !id: 0xa4
3435
+ !bound: client
3436
+ # Type is the type of action. It is one of the constants above.
3437
+ type: li32 =>
3438
+ 1: clear
3439
+ 2: add_cube
3440
+ _: type ?
3441
+ if clear: void
3442
+ if add_cube:
3443
+ # Text is the text that is displayed above the debug.
3444
+ text: string
3445
+ # Position is the position to spawn the debug on.
3446
+ position: vec3f
3447
+ # Red is the red value from the RGBA colour rendered on the debug.
3448
+ red: lf32
3449
+ # Green is the green value from the RGBA colour rendered on the debug.
3450
+ green: lf32
3451
+ # Blue is the blue value from the RGBA colour rendered on the debug.
3452
+ blue: lf32
3453
+ # Alpha is the alpha value from the RGBA colour rendered on the debug.
3454
+ alpha: lf32
3455
+ # Duration is how long the debug will last in the world for. It is measured in milliseconds.
3456
+ duration: li64
3457
+
3458
+ # Sent by the server to synchronize/update entity properties as NBT, an alternative to Set Entity Data.
3459
+ packet_sync_entity_property:
3460
+ !id: 0xa5
3461
+ !bound: client
3462
+ nbt: nbt
3463
+
3464
+ # AddVolumeEntity sends a volume entity's definition and components from server to client.
3465
+ packet_add_volume_entity:
3466
+ !id: 0xa6
3467
+ !bound: client
3468
+ # EntityRuntimeID is the runtime ID of the entity. The runtime ID is unique for each world session, and
3469
+ # entities are generally identified in packets using this runtime ID.
3470
+ runtime_id: varint64
3471
+ # EntityMetadata is a map of entity metadata, which includes flags and data properties that alter in
3472
+ # particular the way the entity looks.
3473
+ nbt: nbt
3474
+ encoding_identifier: string
3475
+ instance_name: string
3476
+ bounds:
3477
+ min: BlockCoordinates
3478
+ max: BlockCoordinates
3479
+ dimension: zigzag32
3480
+ engine_version: string
3481
+
3482
+ # RemoveVolumeEntity indicates a volume entity to be removed from server to client.
3483
+ packet_remove_volume_entity:
3484
+ !id: 0xa7
3485
+ !bound: client
3486
+ # The Runtime Entity ID
3487
+ entity_id: varint64
3488
+
3489
+ # SimulationType is an in-progress packet. We currently do not know the use case.
3490
+ packet_simulation_type:
3491
+ !id: 0xa8
3492
+ # SimulationType is the simulation type selected
3493
+ type: u8 =>
3494
+ 0: game
3495
+ 1: editor
3496
+ 2: test
3497
+ 3: invalid
3498
+
3499
+ # NPCDialogue is a packet that allows the client to display dialog boxes for interacting with NPCs.
3500
+ packet_npc_dialogue:
3501
+ !id: 0xa9
3502
+ !bound: client
3503
+ # ActorUniqueID is the ID of the NPC being requested.
3504
+ entity_id: lu64
3505
+ # ActionType is the type of action for the packet.
3506
+ action_type: varint =>
3507
+ 0: open
3508
+ 1: close
3509
+ # Dialogue is the text that the client should see.
3510
+ dialogue: string
3511
+ # SceneName is the scene the data was pulled from for the client.
3512
+ screen_name: string
3513
+ # NPCName is the name of the NPC to be displayed to the client.
3514
+ npc_name: string
3515
+ # ActionJSON is the JSON string of the buttons/actions the server can perform.
3516
+ action_json: string
3517
+
3518
+ packet_edu_uri_resource_packet:
3519
+ !id: 0xaa
3520
+ resource: EducationSharedResourceURI
3521
+
3522
+ # CreatePhoto is a packet that allows players to export photos from their portfolios into items in their inventory.
3523
+ # This packet only works on the Education Edition version of Minecraft.
3524
+ packet_create_photo:
3525
+ !id: 0xab
3526
+ !bound: client
3527
+ # EntityUniqueID is the unique ID of the entity.
3528
+ entity_unique_id: li64
3529
+ # PhotoName is the name of the photo.
3530
+ photo_name: string
3531
+ # ItemName is the name of the photo as an item.
3532
+ item_name: string
3533
+
3534
+ # UpdateSubChunkBlocks is essentially just UpdateBlock packet, however for a set of blocks in a sub chunk.
3535
+ packet_update_subchunk_blocks:
3536
+ !id: 0xac
3537
+ !bound: client
3538
+ # SubChunkX, SubChunkY, and SubChunkZ help identify the sub chunk.
3539
+ x: zigzag32
3540
+ y: zigzag32
3541
+ z: zigzag32
3542
+ # Blocks contains each updated block change entry.
3543
+ blocks: BlockUpdate[]varint
3544
+ # Extra contains each updated block change entry for the second layer, usually for waterlogged blocks.
3545
+ extra: BlockUpdate[]varint
3546
+
3547
+ packet_photo_info_request:
3548
+ !id: 0xad
3549
+ !bound: server
3550
+ photo_id: zigzag64
3551
+
3552
+ SubChunkEntryWithoutCaching: []lu32
3553
+ dx: i8
3554
+ dy: i8
3555
+ dz: i8
3556
+ result: u8 =>
3557
+ 0: undefined
3558
+ 1: success
3559
+ 2: chunk_not_found
3560
+ 3: invalid_dimension
3561
+ 4: player_not_found
3562
+ 5: y_index_out_of_bounds
3563
+ 6: success_all_air
3564
+ # Payload has the terrain data, if the chunk isn't empty and caching is disabled
3565
+ payload: ByteArray
3566
+ heightmap_type: u8 =>
3567
+ 0: no_data
3568
+ 1: has_data
3569
+ 2: too_high
3570
+ 3: too_low
3571
+ heightmap: heightmap_type ?
3572
+ if has_data: '["buffer", { "count": 256 }]'
3573
+
3574
+ SubChunkEntryWithCaching: []lu32
3575
+ dx: i8
3576
+ dy: i8
3577
+ dz: i8
3578
+ result: u8 =>
3579
+ 0: undefined
3580
+ 1: success
3581
+ 2: chunk_not_found
3582
+ 3: invalid_dimension
3583
+ 4: player_not_found
3584
+ 5: y_index_out_of_bounds
3585
+ 6: success_all_air
3586
+ # Payload has the terrain data, if the chunk isn't empty and caching is disabled
3587
+ payload: result ?
3588
+ if success_all_air: void
3589
+ default: ByteArray
3590
+ heightmap_type: u8 =>
3591
+ 0: no_data
3592
+ 1: has_data
3593
+ 2: too_high
3594
+ 3: too_low
3595
+ heightmap: heightmap_type ?
3596
+ if has_data: '["buffer", { "count": 256 }]'
3597
+ blob_id: lu64
3598
+
3599
+ # SubChunk sends data about multiple sub-chunks around a center point.
3600
+ packet_subchunk:
3601
+ !id: 0xae
3602
+ !bound: client
3603
+ cache_enabled: bool
3604
+ dimension: zigzag32
3605
+ # Origin point
3606
+ origin: vec3i
3607
+ entries: cache_enabled ?
3608
+ if true: SubChunkEntryWithCaching
3609
+ if false: SubChunkEntryWithoutCaching
3610
+
3611
+ packet_subchunk_request:
3612
+ !id: 0xaf
3613
+ !bound: server
3614
+ dimension: zigzag32
3615
+ # Origin point
3616
+ origin: vec3i
3617
+ requests: []lu32
3618
+ dx: i8
3619
+ dy: i8
3620
+ dz: i8
3621
+
3622
+ # ClientStartItemCooldown is sent by the client to the server to initiate a cooldown on an item. The purpose of this
3623
+ # packet isn't entirely clear.
3624
+ packet_client_start_item_cooldown:
3625
+ !id: 0xb0
3626
+ !bound: server
3627
+ category: string
3628
+ # Duration is the duration of ticks the cooldown should last.
3629
+ duration: zigzag32
3630
+
3631
+ # ScriptMessage is used to communicate custom messages from the client to the server, or from the server to the client.
3632
+ # While the name may suggest this packet is used for the discontinued scripting API, it is likely instead for the
3633
+ # GameTest framework.
3634
+ packet_script_message:
3635
+ !id: 0xb1
3636
+ !bound: server
3637
+ # Message ID is the identifier of the message, used by either party to identify the message data sent.
3638
+ message_id: string
3639
+ # Data contains the data of the message.
3640
+ data: string
3641
+
3642
+ # CodeBuilderSource is an Education Edition packet sent by the client to the server to run an operation with a
3643
+ packet_code_builder_source:
3644
+ !id: 0xb2
3645
+ !bound: server
3646
+ # Operation is used to distinguish the operation performed. It is always one of the constants listed above.
3647
+ operation: u8 =>
3648
+ - none
3649
+ - get
3650
+ - set
3651
+ - reset
3652
+ # Category is used to distinguish the category of the operation performed. It is always one of the constants
3653
+ category: u8 =>
3654
+ - none
3655
+ - code_status
3656
+ - instantiation
3657
+ # Value contains extra data about the operation performed. It is always empty unless the operation is
3658
+ value: string
3659
+
3660
+ # TickingAreasLoadStatus is sent by the server to the client to notify the client of a ticking area's loading status.
3661
+ packet_ticking_areas_load_status:
3662
+ !id: 0xb3
3663
+ !bound: client
3664
+ # Preload is true if the server is waiting for the area's preload.
3665
+ preload: bool
3666
+
3667
+ # DimensionData is a packet sent from the server to the client containing information about data-driven dimensions
3668
+ # that the server may have registered. This packet does not seem to be sent by default, rather only being sent when
3669
+ # any data-driven dimensions are registered.
3670
+ packet_dimension_data:
3671
+ !id: 0xb4
3672
+ !bound: client
3673
+ definitions: []varint
3674
+ id: string
3675
+ max_height: zigzag32
3676
+ min_height: zigzag32
3677
+ generator: zigzag32 =>
3678
+ 0: legacy
3679
+ 1: overworld
3680
+ 2: flat
3681
+ 3: nether
3682
+ 4: end
3683
+ 5: void
3684
+
3685
+ # AgentAction is an Education Edition packet sent from the server to the client to return a response to a
3686
+ # previously requested action.
3687
+ packet_agent_action:
3688
+ !id: 0xb5
3689
+ !bound: client
3690
+ request_id: string
3691
+ action_type: zigzag32 =>
3692
+ - none
3693
+ - attack
3694
+ - collect
3695
+ - destroy
3696
+ - detect_redstone
3697
+ - detect_obstacle
3698
+ - drop
3699
+ - drop_all
3700
+ - inspect
3701
+ - inspect_data
3702
+ - inspect_item_count
3703
+ - inspect_item_detail
3704
+ - inspect_item_space
3705
+ - interact
3706
+ - move
3707
+ - place_block
3708
+ - till
3709
+ - transfer_item_to
3710
+ - turn
3711
+ body: string
3712
+
3713
+ # ChangeMobProperty is a packet sent from the server to the client to change one of the properties of a mob client-side.
3714
+ packet_change_mob_property:
3715
+ !id: 0xb6
3716
+ !bound: client
3717
+ # EntityUniqueID is the unique ID of the entity whose property is being changed.
3718
+ entity_unique_id: zigzag64
3719
+ # Property is the name of the property being updated.
3720
+ property: string
3721
+ # BoolValue is set if the property value is a bool type. If the type is not a bool, this field is ignored.
3722
+ bool_value: bool
3723
+ # StringValue is set if the property value is a string type. If the type is not a string, this field is ignored.
3724
+ string_value: string
3725
+ # IntValue is set if the property value is an int type. If the type is not an int, this field is ignored.
3726
+ int_value: zigzag32
3727
+ # FloatValue is set if the property value is a float type. If the type is not a float, this field is ignored.
3728
+ float_value: lf32
3729
+
3730
+ # LessonProgress is a packet sent by the server to the client to inform the client of updated progress on a lesson.
3731
+ # This packet only functions on the Minecraft: Education Edition version of the game.
3732
+ packet_lesson_progress:
3733
+ !id: 0xb7
3734
+ !bound: client
3735
+ # Action is the action the client should perform to show progress. This is one of the constants defined above.
3736
+ action: u8
3737
+ # Score is the score the client should use when displaying the progress.
3738
+ score: zigzag32
3739
+ # Identifier is the identifier of the lesson that is being progressed.
3740
+ identifier: string
3741
+
3742
+ # RequestAbility is a packet sent by the client to the server to request permission for a specific ability from the
3743
+ # server.
3744
+ packet_request_ability:
3745
+ !id: 0xb8
3746
+ !bound: server
3747
+ # Ability is the ability that the client is requesting. This is one of the constants defined above.
3748
+ ability: zigzag32 =>
3749
+ - build
3750
+ - mine
3751
+ - doors_and_switches
3752
+ - open_containers
3753
+ - attack_players
3754
+ - attack_mobs
3755
+ - operator_commands
3756
+ - teleport
3757
+ - invulnerable
3758
+ - flying
3759
+ - may_fly
3760
+ - instant_build
3761
+ - lightning
3762
+ - fly_speed
3763
+ - walk_speed
3764
+ - muted
3765
+ - world_builder
3766
+ - no_clip
3767
+ - ability_count
3768
+ # Value type decides which of the fields you should read/write from
3769
+ value_type: u8 =>
3770
+ 1: bool
3771
+ 2: float
3772
+ # If value type is bool, use this value
3773
+ bool_value: bool
3774
+ # If value type is float, use this value
3775
+ float_val: lf32
3776
+
3777
+ # RequestPermissions is a packet sent from the client to the server to request permissions that the client does not
3778
+ # currently have. It can only be sent by operators and host in vanilla Minecraft.
3779
+ packet_request_permissions:
3780
+ !id: 0xb9
3781
+ !bound: server
3782
+ # EntityUniqueID is the unique ID of the player. The unique ID is unique for the entire world and is
3783
+ # often used in packets. Most servers send an EntityUniqueID equal to the EntityRuntimeID.
3784
+ entity_unique_id: li64
3785
+ # PermissionLevel is the current permission level of the player. Same as constants in AdventureSettings packet.
3786
+ permission_level: PermissionLevel
3787
+ # RequestedPermissions contains the requested permission flags.
3788
+ requested_permissions: RequestPermissions
3789
+
3790
+ RequestPermissions: [ "bitflags",
3791
+ {
3792
+ "type": "lu16",
3793
+ "flags": {
3794
+ "build": 0b1,
3795
+ "mine": 0b10,
3796
+ "doors_and_switches": 0b100,
3797
+ "open_containers": 0b1000,
3798
+ "attack_players": 0b10000,
3799
+ "attack_mobs": 0b100000,
3800
+ "operator": 0b1000000,
3801
+ "teleport": 0b10000000
3802
+ }
3803
+ }
3804
+ ]
3805
+
3806
+ # ToastRequest is a packet sent from the server to the client to display a toast to the top of the screen. These toasts
3807
+ # are the same as the ones seen when, for example, loading a new resource pack or obtaining an achievement.
3808
+ packet_toast_request:
3809
+ !id: 0xba
3810
+ !bound: client
3811
+ # Title is the title of the toast.
3812
+ title: string
3813
+ # Message is the message that the toast may contain alongside the title.
3814
+ message: string
3815
+
3816
+ # UpdateAbilities is a packet sent from the server to the client to update the abilities of the player. It, along with
3817
+ # the UpdateAdventureSettings packet, are replacements of the AdventureSettings packet since v1.19.10.
3818
+ packet_update_abilities:
3819
+ !id: 0xbb
3820
+ !bound: client
3821
+ # EntityUniqueID is the unique ID of the player. The unique ID is a value that remains consistent across
3822
+ # different sessions of the same world, but most servers simply fill the runtime ID of the entity out for
3823
+ # this field.
3824
+ entity_unique_id: li64
3825
+ # PlayerPermissions is the permission level of the player. It is a value from 0-3, with 0 being visitor,
3826
+ # 1 being member, 2 being operator and 3 being custom.
3827
+ permission_level: PermissionLevel
3828
+ # CommandPermissions is a permission level that specifies the kind of commands that the player is
3829
+ # allowed to use. It is one of the CommandPermissionLevel constants in the AdventureSettings packet.
3830
+ command_permission: CommandPermissionLevel
3831
+ # Layers contains all ability layers and their potential values. This should at least have one entry, being the
3832
+ # base layer.
3833
+ abilities: AbilityLayers[]u8
3834
+
3835
+ # UpdateAdventureSettings is a packet sent from the server to the client to update the adventure settings of the player.
3836
+ # It, along with the UpdateAbilities packet, are replacements of the AdventureSettings packet since v1.19.10.
3837
+ packet_update_adventure_settings:
3838
+ !id: 0xbc
3839
+ !bound: client
3840
+ # NoPvM is a boolean indicating whether the player is allowed to fight mobs or not.
3841
+ no_pvm: bool
3842
+ # NoMvP is a boolean indicating whether mobs are allowed to fight the player or not. It is unclear why this is sent
3843
+ # to the client.
3844
+ no_mvp: bool
3845
+ # ImmutableWorld is a boolean indicating whether the player is allowed to modify the world or not.
3846
+ immutable_world: bool
3847
+ # ShowNameTags is a boolean indicating whether player name tags are shown or not.
3848
+ show_name_tags: bool
3849
+ # AutoJump is a boolean indicating whether the player is allowed to jump automatically or not.
3850
+ auto_jump: bool
3851
+
3852
+ # DeathInfo is a packet sent from the server to the client expected to be sent when a player dies. It contains messages
3853
+ # related to the player's death, which are shown on the death screen as of v1.19.10.
3854
+ packet_death_info:
3855
+ !id: 0xbd
3856
+ !bound: client
3857
+ # Cause is the cause of the player's death, such as "suffocation" or "suicide".
3858
+ cause: string
3859
+ # Messages is a list of death messages to be shown on the death screen.
3860
+ messages: string[]varint
3861
+
3862
+ # EditorNetwork is a packet sent from the server to the client and vise-versa to communicate editor-mode related
3863
+ # information. It carries a single compound tag containing the relevant information.
3864
+ packet_editor_network:
3865
+ !id: 0xbe
3866
+ !bound: client
3867
+ # Payload is a network little endian compound tag holding data relevant to the editor.
3868
+ payload: nbt
3869
+
3870
+ # FeatureRegistry is a packet used to notify the client about the world generation features the server is currently
3871
+ # using. This is used in combination with the client-side world generation system introduced in v1.19.20, allowing the
3872
+ # client to completely generate the chunks of the world without having to rely on the server.
3873
+ packet_feature_registry:
3874
+ !id: 0xbf
3875
+ !bound: client
3876
+ # Features is a slice of all registered world generation features.
3877
+ features: []varint
3878
+ name: string
3879
+ options: string
3880
+
3881
+ # ServerStats is a packet sent from the server to the client to update the client on server statistics. It is purely
3882
+ # used for telemetry.
3883
+ packet_server_stats:
3884
+ !id: 0xc0
3885
+ !bound: client
3886
+ server_time: lf32
3887
+ network_time: lf32
3888
+
3889
+ packet_request_network_settings:
3890
+ !id: 0xc1
3891
+ !bound: server
3892
+ client_protocol: i32
3893
+
3894
+ packet_game_test_request:
3895
+ !id: 0xc2
3896
+ !bound: server
3897
+ # MaxTestsPerBatch ...
3898
+ max_tests_per_batch: varint
3899
+ # Repetitions represents the amount of times the test will be run.
3900
+ repetitions: varint
3901
+ # Rotation represents the rotation of the test. It is one of the constants above.
3902
+ rotation: u8 =>
3903
+ - 0deg
3904
+ - 90deg
3905
+ - 180deg
3906
+ - 270deg
3907
+ - 360deg
3908
+ # StopOnError indicates whether the test should immediately stop when an error is encountered.
3909
+ stop_on_error: bool
3910
+ # Position is the position at which the test will be performed.
3911
+ position: BlockCoordinates
3912
+ # TestsPerRow ...
3913
+ tests_per_row: varint
3914
+ # Name represents the name of the test.
3915
+ name: string
3916
+
3917
+ # GameTestResults is a packet sent in response to the GameTestRequest packet, with a boolean indicating whether the
3918
+ # test was successful or not, and an error string if the test failed.
3919
+ packet_game_test_results:
3920
+ !id: 0xc3
3921
+ !bound: client
3922
+ # Succeeded indicates whether the test succeeded or not.
3923
+ succeeded: bool
3924
+ # Error is the error that occurred. If Succeeded is true, this field is empty.
3925
+ error: string
3926
+ # Name represents the name of the test.
3927
+ name: string
3928
+
3929
+ InputLockFlags: [ "bitflags", {
3930
+ "type": "varint",
3931
+ "flags": {
3932
+ "move": 0x02,
3933
+ "jump": 0x04,
3934
+ "sneak": 0x08,
3935
+ "mount": 0x10,
3936
+ "dismount": 0x20,
3937
+ "rotation": 0x40
3938
+ }
3939
+ } ]
3940
+
3941
+ packet_update_client_input_locks:
3942
+ !id: 0xc4
3943
+ !bound: client
3944
+ # Locks is an encoded bitset of all locks that are currently active. The locks are defined in the constants above.
3945
+ locks: InputLockFlags
3946
+ # Position is the server's position of the client at the time the packet was sent. It is unclear what the exact
3947
+ # purpose of this field is.
3948
+ position: vec3f
3949
+
3950
+ # Deprecated: ClientCheatAbility is deprecated as of 1.20.10.
3951
+ packet_client_cheat_ability:
3952
+ !id: 0xc5
3953
+ !bound: client
3954
+ # EntityUniqueID is the unique ID of the player. The unique ID is a value that remains consistent across
3955
+ # different sessions of the same world, but most servers simply fill the runtime ID of the entity out for
3956
+ # this field.
3957
+ entity_unique_id: li64
3958
+ # PlayerPermissions is the permission level of the player. It is a value from 0-3, with 0 being visitor,
3959
+ # 1 being member, 2 being operator and 3 being custom.
3960
+ permission_level: PermissionLevel
3961
+ # CommandPermissions is a permission level that specifies the kind of commands that the player is
3962
+ # allowed to use. It is one of the CommandPermissionLevel constants in the AdventureSettings packet.
3963
+ command_permission: CommandPermissionLevel
3964
+ # Layers contains all ability layers and their potential values. This should at least have one entry, being the
3965
+ # base layer.
3966
+ abilities: AbilityLayers[]u8
3967
+
3968
+ # camera_presets gives the client a list of custom camera presets.
3969
+ packet_camera_presets:
3970
+ !id: 0xc6
3971
+ !bound: client
3972
+ presets: CameraPresets[]varint
3973
+
3974
+ # unlocked_recipes gives the client a list of recipes that have been unlocked, restricting the recipes that appear in
3975
+ # the recipe book.
3976
+ packet_unlocked_recipes:
3977
+ !id: 0xc7
3978
+ !bound: client
3979
+ # new_unlocks determines if new recipes have been unlocked since the packet was last sent.
3980
+ unlock_type: lu32 =>
3981
+ - empty
3982
+ - initially_unlocked
3983
+ - newly_unlocked
3984
+ - remove_unlocked
3985
+ - remove_all_unlocked
3986
+ # Recipes is a list of recipe names that have been unlocked.
3987
+ recipes: string[]varint
3988
+
3989
+ # camera_instruction gives a custom camera specific instructions to operate.
3990
+ packet_camera_instruction:
3991
+ !id: 0x12c
3992
+ !bound: client
3993
+ # Instruction Set is a camera instruction that sets the camera to a specified preset.
3994
+ instruction_set?:
3995
+ # Preset is the index of the preset in the CameraPresets packet sent to the player.
3996
+ runtime_id: li32
3997
+ # Ease represents the easing function that is used by the instruction.
3998
+ ease_data?:
3999
+ type: u8 =>
4000
+ - Linear
4001
+ - Spring
4002
+ - InQuad
4003
+ - OutQuad
4004
+ - InOutQuad
4005
+ - InCubic
4006
+ - OutCubic
4007
+ - InOutCubic
4008
+ - InQuart
4009
+ - OutQuart
4010
+ - InOutQuart
4011
+ - InQuint
4012
+ - OutQuint
4013
+ - InOutQuint
4014
+ - InSine
4015
+ - OutSine
4016
+ - InOutSine
4017
+ - InExpo
4018
+ - OutExpo
4019
+ - InOutExpo
4020
+ - InCirc
4021
+ - OutCirc
4022
+ - InOutCirc
4023
+ - InBounce
4024
+ - OutBounce
4025
+ - InOutBounce
4026
+ - InBack
4027
+ - OutBack
4028
+ - InOutBack
4029
+ - InElastic
4030
+ - OutElastic
4031
+ - InOutElastic
4032
+ duration: lf32
4033
+ position?: vec3f
4034
+ rotation?: vec2f
4035
+ facing?: vec3f
4036
+ default?: bool
4037
+ clear?: bool
4038
+ fade?:
4039
+ fade_in_duration: lf32
4040
+ wait_duration: lf32
4041
+ fade_out_duration: lf32
4042
+ color_rgb: vec3f
4043
+
4044
+
4045
+ packet_compressed_biome_definitions:
4046
+ !id: 0x12d
4047
+ !bound: client
4048
+ # via PMMP:
4049
+ # This packet is only sent by the server when client-side chunk generation is enabled in vanilla. It contains NBT data
4050
+ # for biomes, similar to the BiomeDefinitionListPacket, but with a large amount of extra data for client-side chunk
4051
+ # generation.
4052
+ #
4053
+ # The data is compressed with a cursed home-brewed compression format, and it's a miracle it even works.
4054
+ raw_payload: string
4055
+
4056
+ packet_trim_data:
4057
+ !id: 0x12e
4058
+ !bound: client
4059
+ patterns: []varint
4060
+ item_name: string
4061
+ pattern: string
4062
+ materials: []varint
4063
+ material: string
4064
+ color: string
4065
+ item_name: string
4066
+
4067
+ packet_open_sign:
4068
+ !id: 0x12f
4069
+ !bound: client
4070
+ position: BlockCoordinates
4071
+ is_front: bool
4072
+
4073
+ # agent_animation is an Education Edition packet sent from the server to the client to make an agent perform an animation.
4074
+ packet_agent_animation:
4075
+ !id: 0x130
4076
+ !bound: client
4077
+ # animation is the ID of the animation that the agent should perform. As of its implementation, there are no IDs
4078
+ # that can be used in the regular client.
4079
+ animation: u8 =>
4080
+ 0: arm_swing
4081
+ 1: shrug
4082
+ # entity_runtime_id is the runtime ID of the entity. The runtime ID is unique for each world session, and
4083
+ # entities are generally identified in packets using this runtime ID.
4084
+ entity_runtime_id: varint64
4085
+
4086
+ # RefreshEntitlements is sent by the client to the server to refresh the entitlements of the player.
4087
+ packet_refresh_entitlements:
4088
+ !id: 0x131
4089
+ !bound: server