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