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