minecraft-data 3.67.0 → 3.68.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 (155) hide show
  1. package/data.js +124 -51
  2. package/doc/history.md +4 -0
  3. package/index.d.ts +30 -24
  4. package/minecraft-data/README.md +1 -1
  5. package/minecraft-data/data/bedrock/1.16.201/protocol.json +33 -66
  6. package/minecraft-data/data/bedrock/1.16.210/protocol.json +39 -78
  7. package/minecraft-data/data/bedrock/1.16.220/protocol.json +46 -92
  8. package/minecraft-data/data/bedrock/1.17.0/protocol.json +46 -92
  9. package/minecraft-data/data/bedrock/1.17.10/protocol.json +46 -92
  10. package/minecraft-data/data/bedrock/1.17.30/protocol.json +48 -96
  11. package/minecraft-data/data/bedrock/1.17.40/protocol.json +48 -96
  12. package/minecraft-data/data/bedrock/1.18.0/protocol.json +50 -100
  13. package/minecraft-data/data/bedrock/1.18.11/protocol.json +52 -104
  14. package/minecraft-data/data/bedrock/1.18.30/protocol.json +52 -104
  15. package/minecraft-data/data/bedrock/1.19.1/protocol.json +52 -104
  16. package/minecraft-data/data/bedrock/1.19.10/protocol.json +52 -104
  17. package/minecraft-data/data/bedrock/1.19.20/protocol.json +54 -108
  18. package/minecraft-data/data/bedrock/1.19.21/protocol.json +54 -108
  19. package/minecraft-data/data/bedrock/1.19.30/protocol.json +55 -110
  20. package/minecraft-data/data/bedrock/1.19.40/protocol.json +55 -110
  21. package/minecraft-data/data/bedrock/1.19.50/protocol.json +55 -110
  22. package/minecraft-data/data/bedrock/1.19.60/protocol.json +55 -110
  23. package/minecraft-data/data/bedrock/1.19.62/protocol.json +55 -110
  24. package/minecraft-data/data/bedrock/1.19.70/protocol.json +55 -110
  25. package/minecraft-data/data/bedrock/1.19.80/protocol.json +55 -110
  26. package/minecraft-data/data/bedrock/1.20.0/protocol.json +55 -110
  27. package/minecraft-data/data/bedrock/1.20.10/protocol.json +55 -110
  28. package/minecraft-data/data/bedrock/1.20.30/protocol.json +55 -110
  29. package/minecraft-data/data/bedrock/1.20.40/protocol.json +55 -110
  30. package/minecraft-data/data/bedrock/1.20.50/protocol.json +55 -110
  31. package/minecraft-data/data/bedrock/1.20.61/protocol.json +56 -112
  32. package/minecraft-data/data/bedrock/1.20.71/protocol.json +56 -112
  33. package/minecraft-data/data/bedrock/1.20.80/proto.yml +3 -0
  34. package/minecraft-data/data/bedrock/1.20.80/protocol.json +70 -114
  35. package/minecraft-data/data/bedrock/1.21.0/proto.yml +3 -0
  36. package/minecraft-data/data/bedrock/1.21.0/protocol.json +71 -116
  37. package/minecraft-data/data/bedrock/1.21.2/proto.yml +4195 -0
  38. package/minecraft-data/data/bedrock/1.21.2/protocol.json +58 -116
  39. package/minecraft-data/data/bedrock/1.21.2/types.yml +2373 -0
  40. package/minecraft-data/data/bedrock/1.21.20/protocol.json +12554 -0
  41. package/minecraft-data/data/bedrock/1.21.20/version.json +6 -0
  42. package/minecraft-data/data/bedrock/common/protocolVersions.json +6 -0
  43. package/minecraft-data/data/bedrock/common/versions.json +2 -1
  44. package/minecraft-data/data/bedrock/latest/proto.yml +33 -6
  45. package/minecraft-data/data/bedrock/latest/types.yml +31 -0
  46. package/minecraft-data/data/dataPaths.json +124 -51
  47. package/minecraft-data/data/pc/0.30c/proto.yml +138 -0
  48. package/minecraft-data/data/pc/0.30c/protocol.json +6 -6
  49. package/minecraft-data/data/pc/1.10/proto.yml +1101 -0
  50. package/minecraft-data/data/pc/1.10/protocol.json +34 -13
  51. package/minecraft-data/data/pc/1.10-pre1/proto.yml +1101 -0
  52. package/minecraft-data/data/pc/1.10-pre1/protocol.json +34 -13
  53. package/minecraft-data/data/pc/1.11/proto.yml +1103 -0
  54. package/minecraft-data/data/pc/1.11/protocol.json +34 -13
  55. package/minecraft-data/data/pc/1.12/proto.yml +1202 -0
  56. package/minecraft-data/data/pc/1.12/protocol.json +71 -34
  57. package/minecraft-data/data/pc/1.12-pre4/proto.yml +1174 -0
  58. package/minecraft-data/data/pc/1.12-pre4/protocol.json +51 -30
  59. package/minecraft-data/data/pc/1.12.1/proto.yml +1200 -0
  60. package/minecraft-data/data/pc/1.12.1/protocol.json +68 -31
  61. package/minecraft-data/data/pc/1.12.2/proto.yml +1200 -0
  62. package/minecraft-data/data/pc/1.12.2/protocol.json +68 -31
  63. package/minecraft-data/data/pc/1.13/proto.yml +1631 -0
  64. package/minecraft-data/data/pc/1.13/protocol.json +531 -463
  65. package/minecraft-data/data/pc/1.13.1/proto.yml +1632 -0
  66. package/minecraft-data/data/pc/1.13.1/protocol.json +535 -467
  67. package/minecraft-data/data/pc/1.13.2/proto.yml +1633 -0
  68. package/minecraft-data/data/pc/1.13.2/protocol.json +241 -174
  69. package/minecraft-data/data/pc/1.13.2-pre1/proto.yml +1633 -0
  70. package/minecraft-data/data/pc/1.13.2-pre1/protocol.json +241 -174
  71. package/minecraft-data/data/pc/1.13.2-pre2/proto.yml +1633 -0
  72. package/minecraft-data/data/pc/1.13.2-pre2/protocol.json +241 -174
  73. package/minecraft-data/data/pc/1.14/proto.yml +1717 -0
  74. package/minecraft-data/data/pc/1.14/protocol.json +304 -226
  75. package/minecraft-data/data/pc/1.14.1/proto.yml +1717 -0
  76. package/minecraft-data/data/pc/1.14.1/protocol.json +304 -226
  77. package/minecraft-data/data/pc/1.14.3/proto.yml +1718 -0
  78. package/minecraft-data/data/pc/1.14.3/protocol.json +304 -226
  79. package/minecraft-data/data/pc/1.14.4/proto.yml +1726 -0
  80. package/minecraft-data/data/pc/1.14.4/protocol.json +308 -230
  81. package/minecraft-data/data/pc/1.15/proto.yml +1730 -0
  82. package/minecraft-data/data/pc/1.15/protocol.json +315 -234
  83. package/minecraft-data/data/pc/1.15.1/proto.yml +1730 -0
  84. package/minecraft-data/data/pc/1.15.1/protocol.json +315 -234
  85. package/minecraft-data/data/pc/1.15.2/proto.yml +1730 -0
  86. package/minecraft-data/data/pc/1.15.2/protocol.json +315 -234
  87. package/minecraft-data/data/pc/1.16/proto.yml +1762 -0
  88. package/minecraft-data/data/pc/1.16/protocol.json +357 -264
  89. package/minecraft-data/data/pc/1.16-rc1/proto.yml +1762 -0
  90. package/minecraft-data/data/pc/1.16-rc1/protocol.json +357 -264
  91. package/minecraft-data/data/pc/1.16.1/proto.yml +1762 -0
  92. package/minecraft-data/data/pc/1.16.1/protocol.json +357 -264
  93. package/minecraft-data/data/pc/1.16.2/proto.yml +1776 -0
  94. package/minecraft-data/data/pc/1.16.2/protocol.json +354 -260
  95. package/minecraft-data/data/pc/1.17/proto.yml +1796 -0
  96. package/minecraft-data/data/pc/1.17/protocol.json +5 -5
  97. package/minecraft-data/data/pc/1.17.1/proto.yml +1800 -0
  98. package/minecraft-data/data/pc/1.17.1/protocol.json +5 -5
  99. package/minecraft-data/data/pc/1.18/proto.yml +1836 -0
  100. package/minecraft-data/data/pc/1.18/protocol.json +5 -5
  101. package/minecraft-data/data/pc/1.18.2/proto.yml +1836 -0
  102. package/minecraft-data/data/pc/1.18.2/protocol.json +5 -5
  103. package/minecraft-data/data/pc/1.19/proto.yml +1990 -0
  104. package/minecraft-data/data/pc/1.19/protocol.json +5 -5
  105. package/minecraft-data/data/pc/1.19.2/proto.yml +2085 -0
  106. package/minecraft-data/data/pc/1.19.2/protocol.json +5 -5
  107. package/minecraft-data/data/pc/1.19.3/proto.yml +2322 -0
  108. package/minecraft-data/data/pc/1.19.3/protocol.json +215 -119
  109. package/minecraft-data/data/pc/1.19.4/proto.yml +2413 -0
  110. package/minecraft-data/data/pc/1.20/proto.yml +2409 -0
  111. package/minecraft-data/data/pc/1.20.2/proto.yml +2508 -0
  112. package/minecraft-data/data/pc/1.20.2/protocol.json +1 -1
  113. package/minecraft-data/data/pc/1.20.3/protocol.json +1 -1
  114. package/minecraft-data/data/pc/1.7/proto.yml +922 -0
  115. package/minecraft-data/data/pc/1.7/protocol.json +1 -1
  116. package/minecraft-data/data/pc/1.8/proto.yml +1035 -0
  117. package/minecraft-data/data/pc/1.8/protocol.json +28 -8
  118. package/minecraft-data/data/pc/1.9/proto.yml +1109 -0
  119. package/minecraft-data/data/pc/1.9/protocol.json +30 -10
  120. package/minecraft-data/data/pc/1.9.1-pre2/proto.yml +1109 -0
  121. package/minecraft-data/data/pc/1.9.1-pre2/protocol.json +30 -10
  122. package/minecraft-data/data/pc/1.9.2/proto.yml +1109 -0
  123. package/minecraft-data/data/pc/1.9.2/protocol.json +30 -10
  124. package/minecraft-data/data/pc/1.9.4/proto.yml +1102 -0
  125. package/minecraft-data/data/pc/1.9.4/protocol.json +34 -13
  126. package/minecraft-data/data/pc/15w40b/proto.yml +1070 -0
  127. package/minecraft-data/data/pc/15w40b/protocol.json +107 -87
  128. package/minecraft-data/data/pc/16w20a/proto.yml +1102 -0
  129. package/minecraft-data/data/pc/16w20a/protocol.json +34 -13
  130. package/minecraft-data/data/pc/16w35a/proto.yml +1102 -0
  131. package/minecraft-data/data/pc/16w35a/protocol.json +34 -13
  132. package/minecraft-data/data/pc/17w15a/proto.yml +1165 -0
  133. package/minecraft-data/data/pc/17w15a/protocol.json +44 -23
  134. package/minecraft-data/data/pc/17w18b/proto.yml +1163 -0
  135. package/minecraft-data/data/pc/17w18b/protocol.json +52 -31
  136. package/minecraft-data/data/pc/17w50a/proto.yml +1418 -0
  137. package/minecraft-data/data/pc/17w50a/protocol.json +535 -346
  138. package/minecraft-data/data/pc/20w13b/proto.yml +1732 -0
  139. package/minecraft-data/data/pc/20w13b/protocol.json +315 -235
  140. package/minecraft-data/data/pc/21w07a/proto.yml +1785 -0
  141. package/minecraft-data/data/pc/21w07a/protocol.json +408 -295
  142. package/minecraft-data/data/pc/common/protocolVersions.json +24 -0
  143. package/minecraft-data/data/pc/latest/proto.yml +2762 -0
  144. package/minecraft-data/doc/add-data-new-version.md +3 -0
  145. package/minecraft-data/doc/history.md +4 -0
  146. package/minecraft-data/doc/protocol.md +154 -0
  147. package/minecraft-data/tools/js/compileProtocol.js +67 -45
  148. package/minecraft-data/tools/js/convertMcpcProtocolJsonToYaml.js +65 -0
  149. package/minecraft-data/tools/js/incrementVersion.js +63 -48
  150. package/minecraft-data/tools/js/package.json +3 -1
  151. package/minecraft-data/tools/js/test/protocolSync.js +1 -1
  152. package/package.json +3 -3
  153. package/tsconfig.json +1 -1
  154. package/typings/index-template.d.ts +30 -24
  155. package/typings/test-typings.ts +4 -0
@@ -0,0 +1,1200 @@
1
+ !version: 1.12.1
2
+
3
+ ^types:
4
+ varint: native
5
+ varlong: native
6
+ pstring: native
7
+ u16: native
8
+ u8: native
9
+ i64: native
10
+ buffer: native
11
+ i32: native
12
+ i8: native
13
+ bool: native
14
+ i16: native
15
+ f32: native
16
+ f64: native
17
+ UUID: native
18
+ option: native
19
+ entityMetadataLoop: native
20
+ bitfield: native
21
+ container: native
22
+ switch: native
23
+ void: native
24
+ array: native
25
+ restBuffer: native
26
+ nbt: native
27
+ optionalNbt: native
28
+ string: [
29
+ "pstring",
30
+ {
31
+ "countType": "varint"
32
+ }
33
+ ]
34
+ slot:
35
+ blockId: i16
36
+ _: blockId ?
37
+ if -1: void
38
+ default:
39
+ itemCount: i8
40
+ itemDamage: i16
41
+ nbtData: optionalNbt
42
+ position: [
43
+ "bitfield",
44
+ [
45
+ {
46
+ "name": "x",
47
+ "size": 26,
48
+ "signed": true
49
+ },
50
+ {
51
+ "name": "y",
52
+ "size": 12,
53
+ "signed": true
54
+ },
55
+ {
56
+ "name": "z",
57
+ "size": 26,
58
+ "signed": true
59
+ }
60
+ ]
61
+ ]
62
+ entityMetadataItem: $compareTo ?
63
+ if 0: i8
64
+ if 1: varint
65
+ if 2: f32
66
+ if 3: string
67
+ if 4: string
68
+ if 5: slot
69
+ if 6: bool
70
+ if 7:
71
+ pitch: f32
72
+ yaw: f32
73
+ roll: f32
74
+ if 8: position
75
+ if 9: [
76
+ "option",
77
+ "position"
78
+ ]
79
+ if 10: varint
80
+ if 11: [
81
+ "option",
82
+ "UUID"
83
+ ]
84
+ if 12: varint
85
+ if 13: nbt
86
+ entityMetadata: [
87
+ "entityMetadataLoop",
88
+ {
89
+ "endVal": 255,
90
+ "type": [
91
+ "container",
92
+ [
93
+ {
94
+ "anon": true,
95
+ "type": [
96
+ "container",
97
+ [
98
+ {
99
+ "name": "key",
100
+ "type": "u8"
101
+ },
102
+ {
103
+ "name": "type",
104
+ "type": "i8"
105
+ }
106
+ ]
107
+ ]
108
+ },
109
+ {
110
+ "name": "value",
111
+ "type": [
112
+ "entityMetadataItem",
113
+ {
114
+ "compareTo": "type"
115
+ }
116
+ ]
117
+ }
118
+ ]
119
+ ]
120
+ }
121
+ ]
122
+
123
+ ^handshaking.toClient.types:
124
+ packet:
125
+ name: varint =>
126
+ params: ["switch",{"compareTo":"name","fields":{}}]
127
+
128
+ ^handshaking.toServer.types:
129
+ packet_set_protocol:
130
+ protocolVersion: varint
131
+ serverHost: string
132
+ serverPort: u16
133
+ nextState: varint
134
+ packet_legacy_server_list_ping:
135
+ payload: u8
136
+ packet:
137
+ name: varint =>
138
+ 0x00: set_protocol
139
+ 0xfe: legacy_server_list_ping
140
+ params: name ?
141
+ if set_protocol: packet_set_protocol
142
+ if legacy_server_list_ping: packet_legacy_server_list_ping
143
+
144
+ ^status.toClient.types:
145
+ packet_server_info:
146
+ response: string
147
+ packet_ping:
148
+ time: i64
149
+ packet:
150
+ name: varint =>
151
+ 0x00: server_info
152
+ 0x01: ping
153
+ params: name ?
154
+ if server_info: packet_server_info
155
+ if ping: packet_ping
156
+
157
+ ^status.toServer.types:
158
+ packet_ping_start:
159
+ # Empty
160
+ packet_ping:
161
+ time: i64
162
+ packet:
163
+ name: varint =>
164
+ 0x00: ping_start
165
+ 0x01: ping
166
+ params: name ?
167
+ if ping_start: packet_ping_start
168
+ if ping: packet_ping
169
+
170
+ ^login.toClient.types:
171
+ packet_disconnect:
172
+ reason: string
173
+ packet_encryption_begin:
174
+ serverId: string
175
+ publicKey: [
176
+ "buffer",
177
+ {
178
+ "countType": "varint"
179
+ }
180
+ ]
181
+ verifyToken: [
182
+ "buffer",
183
+ {
184
+ "countType": "varint"
185
+ }
186
+ ]
187
+ packet_success:
188
+ uuid: string
189
+ username: string
190
+ packet_compress:
191
+ threshold: varint
192
+ packet:
193
+ name: varint =>
194
+ 0x00: disconnect
195
+ 0x01: encryption_begin
196
+ 0x02: success
197
+ 0x03: compress
198
+ params: name ?
199
+ if disconnect: packet_disconnect
200
+ if encryption_begin: packet_encryption_begin
201
+ if success: packet_success
202
+ if compress: packet_compress
203
+
204
+ ^login.toServer.types:
205
+ packet_login_start:
206
+ username: string
207
+ packet_encryption_begin:
208
+ sharedSecret: [
209
+ "buffer",
210
+ {
211
+ "countType": "varint"
212
+ }
213
+ ]
214
+ verifyToken: [
215
+ "buffer",
216
+ {
217
+ "countType": "varint"
218
+ }
219
+ ]
220
+ packet:
221
+ name: varint =>
222
+ 0x00: login_start
223
+ 0x01: encryption_begin
224
+ params: name ?
225
+ if login_start: packet_login_start
226
+ if encryption_begin: packet_encryption_begin
227
+
228
+ ^play.toClient.types:
229
+ packet_spawn_entity:
230
+ entityId: varint
231
+ objectUUID: UUID
232
+ type: i8
233
+ x: f64
234
+ y: f64
235
+ z: f64
236
+ pitch: i8
237
+ yaw: i8
238
+ objectData: i32
239
+ velocityX: i16
240
+ velocityY: i16
241
+ velocityZ: i16
242
+ packet_spawn_entity_experience_orb:
243
+ entityId: varint
244
+ x: f64
245
+ y: f64
246
+ z: f64
247
+ count: i16
248
+ packet_spawn_entity_weather:
249
+ entityId: varint
250
+ type: i8
251
+ x: f64
252
+ y: f64
253
+ z: f64
254
+ packet_spawn_entity_living:
255
+ entityId: varint
256
+ entityUUID: UUID
257
+ type: varint
258
+ x: f64
259
+ y: f64
260
+ z: f64
261
+ yaw: i8
262
+ pitch: i8
263
+ headPitch: i8
264
+ velocityX: i16
265
+ velocityY: i16
266
+ velocityZ: i16
267
+ metadata: entityMetadata
268
+ packet_spawn_entity_painting:
269
+ entityId: varint
270
+ entityUUID: UUID
271
+ title: string
272
+ location: position
273
+ direction: u8
274
+ packet_named_entity_spawn:
275
+ entityId: varint
276
+ playerUUID: UUID
277
+ x: f64
278
+ y: f64
279
+ z: f64
280
+ yaw: i8
281
+ pitch: i8
282
+ metadata: entityMetadata
283
+ packet_animation:
284
+ entityId: varint
285
+ animation: u8
286
+ packet_statistics:
287
+ entries: []varint
288
+ name: string
289
+ value: varint
290
+ packet_advancements:
291
+ reset: bool
292
+ advancementMapping: []varint
293
+ key: string
294
+ value:
295
+ parentId?: string
296
+ displayData?:
297
+ title: string
298
+ description: string
299
+ icon: slot
300
+ frameType: varint
301
+ flags: [
302
+ "bitfield",
303
+ [
304
+ {
305
+ "name": "_unused",
306
+ "size": 29,
307
+ "signed": false
308
+ },
309
+ {
310
+ "name": "hidden",
311
+ "size": 1,
312
+ "signed": false
313
+ },
314
+ {
315
+ "name": "show_toast",
316
+ "size": 1,
317
+ "signed": false
318
+ },
319
+ {
320
+ "name": "has_background_texture",
321
+ "size": 1,
322
+ "signed": false
323
+ }
324
+ ]
325
+ ]
326
+ backgroundTexture: flags/has_background_texture ?
327
+ if 1: string
328
+ default: void
329
+ xCord: f32
330
+ yCord: f32
331
+ criteria: []varint
332
+ key: string
333
+ value: void
334
+ requirements: []varint
335
+ _: string[]varint
336
+ identifiers: string[]varint
337
+ progressMapping: []varint
338
+ key: string
339
+ value: []varint
340
+ criterionIdentifier: string
341
+ criterionProgress?: i64
342
+ packet_block_break_animation:
343
+ entityId: varint
344
+ location: position
345
+ destroyStage: i8
346
+ packet_tile_entity_data:
347
+ location: position
348
+ action: u8
349
+ nbtData: optionalNbt
350
+ packet_block_action:
351
+ location: position
352
+ byte1: u8
353
+ byte2: u8
354
+ blockId: varint
355
+ packet_block_change:
356
+ location: position
357
+ type: varint
358
+ packet_boss_bar:
359
+ entityUUID: UUID
360
+ action: varint
361
+ title: action ?
362
+ if 0: string
363
+ if 3: string
364
+ default: void
365
+ health: action ?
366
+ if 0: f32
367
+ if 2: f32
368
+ default: void
369
+ color: action ?
370
+ if 0: varint
371
+ if 4: varint
372
+ default: void
373
+ dividers: action ?
374
+ if 0: varint
375
+ if 4: varint
376
+ default: void
377
+ flags: action ?
378
+ if 0: u8
379
+ if 5: u8
380
+ default: void
381
+ packet_difficulty:
382
+ difficulty: u8
383
+ packet_tab_complete:
384
+ matches: string[]varint
385
+ packet_chat:
386
+ message: string
387
+ position: i8
388
+ packet_multi_block_change:
389
+ chunkX: i32
390
+ chunkZ: i32
391
+ records: []varint
392
+ horizontalPos: u8
393
+ y: u8
394
+ blockId: varint
395
+ packet_transaction:
396
+ windowId: i8
397
+ action: i16
398
+ accepted: bool
399
+ packet_close_window:
400
+ windowId: u8
401
+ packet_open_window:
402
+ windowId: u8
403
+ inventoryType: string
404
+ windowTitle: string
405
+ slotCount: u8
406
+ entityId: inventoryType ?
407
+ if EntityHorse: i32
408
+ default: void
409
+ packet_window_items:
410
+ windowId: u8
411
+ items: slot[]i16
412
+ packet_craft_progress_bar:
413
+ windowId: u8
414
+ property: i16
415
+ value: i16
416
+ packet_set_slot:
417
+ windowId: i8
418
+ slot: i16
419
+ item: slot
420
+ packet_set_cooldown:
421
+ itemID: varint
422
+ cooldownTicks: varint
423
+ packet_custom_payload:
424
+ channel: string
425
+ data: restBuffer
426
+ packet_named_sound_effect:
427
+ soundName: string
428
+ soundCategory: varint
429
+ x: i32
430
+ y: i32
431
+ z: i32
432
+ volume: f32
433
+ pitch: f32
434
+ packet_kick_disconnect:
435
+ reason: string
436
+ packet_entity_status:
437
+ entityId: i32
438
+ entityStatus: i8
439
+ packet_explosion:
440
+ x: f32
441
+ y: f32
442
+ z: f32
443
+ radius: f32
444
+ affectedBlockOffsets: []i32
445
+ x: i8
446
+ y: i8
447
+ z: i8
448
+ playerMotionX: f32
449
+ playerMotionY: f32
450
+ playerMotionZ: f32
451
+ packet_unload_chunk:
452
+ chunkX: i32
453
+ chunkZ: i32
454
+ packet_game_state_change:
455
+ reason: u8
456
+ gameMode: f32
457
+ packet_keep_alive:
458
+ keepAliveId: varint
459
+ packet_map_chunk:
460
+ x: i32
461
+ z: i32
462
+ groundUp: bool
463
+ bitMap: varint
464
+ chunkData: [
465
+ "buffer",
466
+ {
467
+ "countType": "varint"
468
+ }
469
+ ]
470
+ blockEntities: nbt[]varint
471
+ packet_world_event:
472
+ effectId: i32
473
+ location: position
474
+ data: i32
475
+ global: bool
476
+ packet_world_particles:
477
+ particleId: i32
478
+ longDistance: bool
479
+ x: f32
480
+ y: f32
481
+ z: f32
482
+ offsetX: f32
483
+ offsetY: f32
484
+ offsetZ: f32
485
+ particleData: f32
486
+ particles: i32
487
+ data: particleId ?
488
+ if 36: varint[]$2
489
+ if 37: varint[]$1
490
+ if 38: varint[]$1
491
+ default: void
492
+ packet_login:
493
+ entityId: i32
494
+ gameMode: u8
495
+ dimension: i32
496
+ difficulty: u8
497
+ maxPlayers: u8
498
+ levelType: string
499
+ reducedDebugInfo: bool
500
+ packet_map:
501
+ itemDamage: varint
502
+ scale: i8
503
+ trackingPosition: bool
504
+ icons: []varint
505
+ directionAndType: i8
506
+ x: i8
507
+ z: i8
508
+ columns: i8
509
+ rows: columns ?
510
+ if 0: void
511
+ default: i8
512
+ x: columns ?
513
+ if 0: void
514
+ default: i8
515
+ y: columns ?
516
+ if 0: void
517
+ default: i8
518
+ data: columns ?
519
+ if 0: void
520
+ default: [
521
+ "buffer",
522
+ {
523
+ "countType": "varint"
524
+ }
525
+ ]
526
+ packet_rel_entity_move:
527
+ entityId: varint
528
+ dX: i16
529
+ dY: i16
530
+ dZ: i16
531
+ onGround: bool
532
+ packet_entity_move_look:
533
+ entityId: varint
534
+ dX: i16
535
+ dY: i16
536
+ dZ: i16
537
+ yaw: i8
538
+ pitch: i8
539
+ onGround: bool
540
+ packet_entity_look:
541
+ entityId: varint
542
+ yaw: i8
543
+ pitch: i8
544
+ onGround: bool
545
+ packet_entity:
546
+ entityId: varint
547
+ packet_vehicle_move:
548
+ x: f64
549
+ y: f64
550
+ z: f64
551
+ yaw: f32
552
+ pitch: f32
553
+ packet_open_sign_entity:
554
+ location: position
555
+ packet_craft_recipe_response:
556
+ windowId: i8
557
+ recipe: varint
558
+ packet_abilities:
559
+ flags: i8
560
+ flyingSpeed: f32
561
+ walkingSpeed: f32
562
+ packet_combat_event:
563
+ event: varint
564
+ duration: event ?
565
+ if 1: varint
566
+ default: void
567
+ playerId: event ?
568
+ if 2: varint
569
+ default: void
570
+ entityId: event ?
571
+ if 1: i32
572
+ if 2: i32
573
+ default: void
574
+ message: event ?
575
+ if 2: string
576
+ default: void
577
+ packet_player_info:
578
+ action: varint
579
+ data: []varint
580
+ UUID: UUID
581
+ name: ../action ?
582
+ if 0: string
583
+ default: void
584
+ properties: ../action ?
585
+ if 0: []varint
586
+ name: string
587
+ value: string
588
+ signature?: string
589
+ default: void
590
+ gamemode: ../action ?
591
+ if 0: varint
592
+ if 1: varint
593
+ default: void
594
+ ping: ../action ?
595
+ if 0: varint
596
+ if 2: varint
597
+ default: void
598
+ displayName: ../action ?
599
+ if 0: [
600
+ "option",
601
+ "string"
602
+ ]
603
+ if 3: [
604
+ "option",
605
+ "string"
606
+ ]
607
+ default: void
608
+ packet_position:
609
+ x: f64
610
+ y: f64
611
+ z: f64
612
+ yaw: f32
613
+ pitch: f32
614
+ flags: i8
615
+ teleportId: varint
616
+ packet_bed:
617
+ entityId: varint
618
+ location: position
619
+ packet_unlock_recipes:
620
+ action: varint
621
+ craftingBookOpen: bool
622
+ filteringCraftable: bool
623
+ recipes1: varint[]varint
624
+ recipes2: action ?
625
+ if 0: varint[]varint
626
+ default: void
627
+ packet_entity_destroy:
628
+ entityIds: varint[]varint
629
+ packet_remove_entity_effect:
630
+ entityId: varint
631
+ effectId: i8
632
+ packet_resource_pack_send:
633
+ url: string
634
+ hash: string
635
+ packet_respawn:
636
+ dimension: i32
637
+ difficulty: u8
638
+ gamemode: u8
639
+ levelType: string
640
+ packet_entity_head_rotation:
641
+ entityId: varint
642
+ headYaw: i8
643
+ packet_world_border:
644
+ action: varint
645
+ radius: action ?
646
+ if 0: f64
647
+ default: void
648
+ x: action ?
649
+ if 2: f64
650
+ if 3: f64
651
+ default: void
652
+ z: action ?
653
+ if 2: f64
654
+ if 3: f64
655
+ default: void
656
+ old_radius: action ?
657
+ if 1: f64
658
+ if 3: f64
659
+ default: void
660
+ new_radius: action ?
661
+ if 1: f64
662
+ if 3: f64
663
+ default: void
664
+ speed: action ?
665
+ if 1: varlong
666
+ if 3: varlong
667
+ default: void
668
+ portalBoundary: action ?
669
+ if 3: varint
670
+ default: void
671
+ warning_time: action ?
672
+ if 3: varint
673
+ if 4: varint
674
+ default: void
675
+ warning_blocks: action ?
676
+ if 3: varint
677
+ if 5: varint
678
+ default: void
679
+ packet_camera:
680
+ cameraId: varint
681
+ packet_held_item_slot:
682
+ slot: i8
683
+ packet_scoreboard_display_objective:
684
+ position: i8
685
+ name: string
686
+ packet_entity_metadata:
687
+ entityId: varint
688
+ metadata: entityMetadata
689
+ packet_attach_entity:
690
+ entityId: i32
691
+ vehicleId: i32
692
+ packet_entity_velocity:
693
+ entityId: varint
694
+ velocityX: i16
695
+ velocityY: i16
696
+ velocityZ: i16
697
+ packet_entity_equipment:
698
+ entityId: varint
699
+ slot: varint
700
+ item: slot
701
+ packet_experience:
702
+ experienceBar: f32
703
+ level: varint
704
+ totalExperience: varint
705
+ packet_update_health:
706
+ health: f32
707
+ food: varint
708
+ foodSaturation: f32
709
+ packet_scoreboard_objective:
710
+ name: string
711
+ action: i8
712
+ displayText: action ?
713
+ if 0: string
714
+ if 2: string
715
+ default: void
716
+ type: action ?
717
+ if 0: string
718
+ if 2: string
719
+ default: void
720
+ packet_set_passengers:
721
+ entityId: varint
722
+ passengers: varint[]varint
723
+ packet_teams:
724
+ team: string
725
+ mode: i8
726
+ name: mode ?
727
+ if 0: string
728
+ if 2: string
729
+ default: void
730
+ prefix: mode ?
731
+ if 0: string
732
+ if 2: string
733
+ default: void
734
+ suffix: mode ?
735
+ if 0: string
736
+ if 2: string
737
+ default: void
738
+ friendlyFire: mode ?
739
+ if 0: i8
740
+ if 2: i8
741
+ default: void
742
+ nameTagVisibility: mode ?
743
+ if 0: string
744
+ if 2: string
745
+ default: void
746
+ collisionRule: mode ?
747
+ if 0: string
748
+ if 2: string
749
+ default: void
750
+ color: mode ?
751
+ if 0: i8
752
+ if 2: i8
753
+ default: void
754
+ players: mode ?
755
+ if 0: string[]varint
756
+ if 3: string[]varint
757
+ if 4: string[]varint
758
+ default: void
759
+ packet_scoreboard_score:
760
+ itemName: string
761
+ action: varint
762
+ scoreName: string
763
+ value: action ?
764
+ if 1: void
765
+ default: varint
766
+ packet_spawn_position:
767
+ location: position
768
+ packet_update_time:
769
+ age: i64
770
+ time: i64
771
+ packet_title:
772
+ action: varint
773
+ text: action ?
774
+ if 0: string
775
+ if 1: string
776
+ if 2: string
777
+ default: void
778
+ fadeIn: action ?
779
+ if 3: i32
780
+ default: void
781
+ stay: action ?
782
+ if 3: i32
783
+ default: void
784
+ fadeOut: action ?
785
+ if 3: i32
786
+ default: void
787
+ packet_sound_effect:
788
+ soundId: varint
789
+ soundCategory: varint
790
+ x: i32
791
+ y: i32
792
+ z: i32
793
+ volume: f32
794
+ pitch: f32
795
+ packet_playerlist_header:
796
+ header: string
797
+ footer: string
798
+ packet_collect:
799
+ collectedEntityId: varint
800
+ collectorEntityId: varint
801
+ pickupItemCount: varint
802
+ packet_entity_teleport:
803
+ entityId: varint
804
+ x: f64
805
+ y: f64
806
+ z: f64
807
+ yaw: i8
808
+ pitch: i8
809
+ onGround: bool
810
+ packet_entity_update_attributes:
811
+ entityId: varint
812
+ properties: []i32
813
+ key: string
814
+ value: f64
815
+ modifiers: []varint
816
+ uuid: UUID
817
+ amount: f64
818
+ operation: i8
819
+ packet_entity_effect:
820
+ entityId: varint
821
+ effectId: i8
822
+ amplifier: i8
823
+ duration: varint
824
+ hideParticles: i8
825
+ packet_select_advancement_tab:
826
+ id?: string
827
+ packet:
828
+ name: varint =>
829
+ 0x00: spawn_entity
830
+ 0x01: spawn_entity_experience_orb
831
+ 0x02: spawn_entity_weather
832
+ 0x03: spawn_entity_living
833
+ 0x04: spawn_entity_painting
834
+ 0x05: named_entity_spawn
835
+ 0x06: animation
836
+ 0x07: statistics
837
+ 0x08: block_break_animation
838
+ 0x09: tile_entity_data
839
+ 0x0a: block_action
840
+ 0x0b: block_change
841
+ 0x0c: boss_bar
842
+ 0x0d: difficulty
843
+ 0x0e: tab_complete
844
+ 0x0f: chat
845
+ 0x10: multi_block_change
846
+ 0x11: transaction
847
+ 0x12: close_window
848
+ 0x13: open_window
849
+ 0x14: window_items
850
+ 0x15: craft_progress_bar
851
+ 0x16: set_slot
852
+ 0x17: set_cooldown
853
+ 0x18: custom_payload
854
+ 0x19: named_sound_effect
855
+ 0x1a: kick_disconnect
856
+ 0x1b: entity_status
857
+ 0x1c: explosion
858
+ 0x1d: unload_chunk
859
+ 0x1e: game_state_change
860
+ 0x1f: keep_alive
861
+ 0x20: map_chunk
862
+ 0x21: world_event
863
+ 0x22: world_particles
864
+ 0x23: login
865
+ 0x24: map
866
+ 0x25: entity
867
+ 0x26: rel_entity_move
868
+ 0x27: entity_move_look
869
+ 0x28: entity_look
870
+ 0x29: vehicle_move
871
+ 0x2a: open_sign_entity
872
+ 0x2b: craft_recipe_response
873
+ 0x2c: abilities
874
+ 0x2d: combat_event
875
+ 0x2e: player_info
876
+ 0x2f: position
877
+ 0x30: bed
878
+ 0x31: unlock_recipes
879
+ 0x32: entity_destroy
880
+ 0x33: remove_entity_effect
881
+ 0x34: resource_pack_send
882
+ 0x35: respawn
883
+ 0x36: entity_head_rotation
884
+ 0x37: select_advancement_tab
885
+ 0x38: world_border
886
+ 0x39: camera
887
+ 0x3a: held_item_slot
888
+ 0x3b: scoreboard_display_objective
889
+ 0x3c: entity_metadata
890
+ 0x3d: attach_entity
891
+ 0x3e: entity_velocity
892
+ 0x3f: entity_equipment
893
+ 0x40: experience
894
+ 0x41: update_health
895
+ 0x42: scoreboard_objective
896
+ 0x43: set_passengers
897
+ 0x44: teams
898
+ 0x45: scoreboard_score
899
+ 0x46: spawn_position
900
+ 0x47: update_time
901
+ 0x48: title
902
+ 0x49: sound_effect
903
+ 0x4a: playerlist_header
904
+ 0x4b: collect
905
+ 0x4c: entity_teleport
906
+ 0x4d: advancements
907
+ 0x4e: entity_update_attributes
908
+ 0x4f: entity_effect
909
+ params: name ?
910
+ if spawn_entity: packet_spawn_entity
911
+ if spawn_entity_experience_orb: packet_spawn_entity_experience_orb
912
+ if spawn_entity_weather: packet_spawn_entity_weather
913
+ if spawn_entity_living: packet_spawn_entity_living
914
+ if spawn_entity_painting: packet_spawn_entity_painting
915
+ if named_entity_spawn: packet_named_entity_spawn
916
+ if animation: packet_animation
917
+ if statistics: packet_statistics
918
+ if advancements: packet_advancements
919
+ if block_break_animation: packet_block_break_animation
920
+ if tile_entity_data: packet_tile_entity_data
921
+ if block_action: packet_block_action
922
+ if block_change: packet_block_change
923
+ if boss_bar: packet_boss_bar
924
+ if difficulty: packet_difficulty
925
+ if tab_complete: packet_tab_complete
926
+ if chat: packet_chat
927
+ if multi_block_change: packet_multi_block_change
928
+ if transaction: packet_transaction
929
+ if close_window: packet_close_window
930
+ if open_window: packet_open_window
931
+ if window_items: packet_window_items
932
+ if craft_progress_bar: packet_craft_progress_bar
933
+ if set_slot: packet_set_slot
934
+ if set_cooldown: packet_set_cooldown
935
+ if custom_payload: packet_custom_payload
936
+ if named_sound_effect: packet_named_sound_effect
937
+ if kick_disconnect: packet_kick_disconnect
938
+ if entity_status: packet_entity_status
939
+ if explosion: packet_explosion
940
+ if unload_chunk: packet_unload_chunk
941
+ if game_state_change: packet_game_state_change
942
+ if keep_alive: packet_keep_alive
943
+ if map_chunk: packet_map_chunk
944
+ if world_event: packet_world_event
945
+ if world_particles: packet_world_particles
946
+ if login: packet_login
947
+ if map: packet_map
948
+ if rel_entity_move: packet_rel_entity_move
949
+ if entity_move_look: packet_entity_move_look
950
+ if entity_look: packet_entity_look
951
+ if entity: packet_entity
952
+ if vehicle_move: packet_vehicle_move
953
+ if open_sign_entity: packet_open_sign_entity
954
+ if craft_recipe_response: packet_craft_recipe_response
955
+ if abilities: packet_abilities
956
+ if combat_event: packet_combat_event
957
+ if player_info: packet_player_info
958
+ if position: packet_position
959
+ if bed: packet_bed
960
+ if unlock_recipes: packet_unlock_recipes
961
+ if entity_destroy: packet_entity_destroy
962
+ if remove_entity_effect: packet_remove_entity_effect
963
+ if resource_pack_send: packet_resource_pack_send
964
+ if respawn: packet_respawn
965
+ if entity_update_attributes: packet_entity_update_attributes
966
+ if world_border: packet_world_border
967
+ if camera: packet_camera
968
+ if held_item_slot: packet_held_item_slot
969
+ if scoreboard_display_objective: packet_scoreboard_display_objective
970
+ if entity_metadata: packet_entity_metadata
971
+ if attach_entity: packet_attach_entity
972
+ if entity_velocity: packet_entity_velocity
973
+ if entity_equipment: packet_entity_equipment
974
+ if experience: packet_experience
975
+ if update_health: packet_update_health
976
+ if scoreboard_objective: packet_scoreboard_objective
977
+ if set_passengers: packet_set_passengers
978
+ if teams: packet_teams
979
+ if scoreboard_score: packet_scoreboard_score
980
+ if spawn_position: packet_spawn_position
981
+ if update_time: packet_update_time
982
+ if title: packet_title
983
+ if sound_effect: packet_sound_effect
984
+ if playerlist_header: packet_playerlist_header
985
+ if collect: packet_collect
986
+ if entity_teleport: packet_entity_teleport
987
+ if entity_head_rotation: packet_entity_head_rotation
988
+ if entity_effect: packet_entity_effect
989
+ if select_advancement_tab: packet_select_advancement_tab
990
+
991
+ ^play.toServer.types:
992
+ packet_teleport_confirm:
993
+ teleportId: varint
994
+ packet_tab_complete:
995
+ text: string
996
+ assumeCommand: bool
997
+ lookedAtBlock?: position
998
+ packet_chat:
999
+ message: string
1000
+ packet_client_command:
1001
+ actionId: varint
1002
+ packet_settings:
1003
+ locale: string
1004
+ viewDistance: i8
1005
+ chatFlags: varint
1006
+ chatColors: bool
1007
+ skinParts: u8
1008
+ mainHand: varint
1009
+ packet_transaction:
1010
+ windowId: i8
1011
+ action: i16
1012
+ accepted: bool
1013
+ packet_enchant_item:
1014
+ windowId: i8
1015
+ enchantment: i8
1016
+ packet_window_click:
1017
+ windowId: u8
1018
+ slot: i16
1019
+ mouseButton: i8
1020
+ action: i16
1021
+ mode: i8
1022
+ item: slot
1023
+ packet_close_window:
1024
+ windowId: u8
1025
+ packet_custom_payload:
1026
+ channel: string
1027
+ data: restBuffer
1028
+ packet_use_entity:
1029
+ target: varint
1030
+ mouse: varint
1031
+ x: mouse ?
1032
+ if 2: f32
1033
+ default: void
1034
+ y: mouse ?
1035
+ if 2: f32
1036
+ default: void
1037
+ z: mouse ?
1038
+ if 2: f32
1039
+ default: void
1040
+ hand: mouse ?
1041
+ if 0: varint
1042
+ if 2: varint
1043
+ default: void
1044
+ packet_keep_alive:
1045
+ keepAliveId: varint
1046
+ packet_position:
1047
+ x: f64
1048
+ y: f64
1049
+ z: f64
1050
+ onGround: bool
1051
+ packet_position_look:
1052
+ x: f64
1053
+ y: f64
1054
+ z: f64
1055
+ yaw: f32
1056
+ pitch: f32
1057
+ onGround: bool
1058
+ packet_look:
1059
+ yaw: f32
1060
+ pitch: f32
1061
+ onGround: bool
1062
+ packet_flying:
1063
+ onGround: bool
1064
+ packet_vehicle_move:
1065
+ x: f64
1066
+ y: f64
1067
+ z: f64
1068
+ yaw: f32
1069
+ pitch: f32
1070
+ packet_steer_boat:
1071
+ leftPaddle: bool
1072
+ rightPaddle: bool
1073
+ packet_craft_recipe_request:
1074
+ windowId: i8
1075
+ recipe: varint
1076
+ makeAll: bool
1077
+ packet_abilities:
1078
+ flags: i8
1079
+ flyingSpeed: f32
1080
+ walkingSpeed: f32
1081
+ packet_block_dig:
1082
+ status: varint
1083
+ location: position
1084
+ face: i8
1085
+ packet_entity_action:
1086
+ entityId: varint
1087
+ actionId: varint
1088
+ jumpBoost: varint
1089
+ packet_steer_vehicle:
1090
+ sideways: f32
1091
+ forward: f32
1092
+ jump: u8
1093
+ packet_crafting_book_data:
1094
+ type: varint
1095
+ _: type ?
1096
+ if 0:
1097
+ displayedRecipe: i32
1098
+ if 1:
1099
+ craftingBookOpen: bool
1100
+ craftingFilter: bool
1101
+ packet_resource_pack_receive:
1102
+ result: varint
1103
+ packet_held_item_slot:
1104
+ slotId: i16
1105
+ packet_set_creative_slot:
1106
+ slot: i16
1107
+ item: slot
1108
+ packet_update_sign:
1109
+ location: position
1110
+ text1: string
1111
+ text2: string
1112
+ text3: string
1113
+ text4: string
1114
+ packet_arm_animation:
1115
+ hand: varint
1116
+ packet_spectate:
1117
+ target: UUID
1118
+ packet_block_place:
1119
+ location: position
1120
+ direction: varint
1121
+ hand: varint
1122
+ cursorX: f32
1123
+ cursorY: f32
1124
+ cursorZ: f32
1125
+ packet_use_item:
1126
+ hand: varint
1127
+ packet_advancement_tab:
1128
+ action: varint
1129
+ tabId: action ?
1130
+ if 0: string
1131
+ if 1: void
1132
+ packet:
1133
+ name: varint =>
1134
+ 0x00: teleport_confirm
1135
+ 0x01: tab_complete
1136
+ 0x02: chat
1137
+ 0x03: client_command
1138
+ 0x04: settings
1139
+ 0x05: transaction
1140
+ 0x06: enchant_item
1141
+ 0x07: window_click
1142
+ 0x08: close_window
1143
+ 0x09: custom_payload
1144
+ 0x0a: use_entity
1145
+ 0x0b: keep_alive
1146
+ 0x0c: flying
1147
+ 0x0d: position
1148
+ 0x0e: position_look
1149
+ 0x0f: look
1150
+ 0x10: vehicle_move
1151
+ 0x11: steer_boat
1152
+ 0x12: craft_recipe_request
1153
+ 0x13: abilities
1154
+ 0x14: block_dig
1155
+ 0x15: entity_action
1156
+ 0x16: steer_vehicle
1157
+ 0x17: crafting_book_data
1158
+ 0x18: resource_pack_receive
1159
+ 0x19: advancement_tab
1160
+ 0x1a: held_item_slot
1161
+ 0x1b: set_creative_slot
1162
+ 0x1c: update_sign
1163
+ 0x1d: arm_animation
1164
+ 0x1e: spectate
1165
+ 0x1f: block_place
1166
+ 0x20: use_item
1167
+ params: name ?
1168
+ if teleport_confirm: packet_teleport_confirm
1169
+ if tab_complete: packet_tab_complete
1170
+ if chat: packet_chat
1171
+ if client_command: packet_client_command
1172
+ if settings: packet_settings
1173
+ if transaction: packet_transaction
1174
+ if enchant_item: packet_enchant_item
1175
+ if window_click: packet_window_click
1176
+ if close_window: packet_close_window
1177
+ if custom_payload: packet_custom_payload
1178
+ if use_entity: packet_use_entity
1179
+ if keep_alive: packet_keep_alive
1180
+ if position: packet_position
1181
+ if position_look: packet_position_look
1182
+ if look: packet_look
1183
+ if flying: packet_flying
1184
+ if vehicle_move: packet_vehicle_move
1185
+ if steer_boat: packet_steer_boat
1186
+ if craft_recipe_request: packet_craft_recipe_request
1187
+ if abilities: packet_abilities
1188
+ if block_dig: packet_block_dig
1189
+ if entity_action: packet_entity_action
1190
+ if steer_vehicle: packet_steer_vehicle
1191
+ if crafting_book_data: packet_crafting_book_data
1192
+ if resource_pack_receive: packet_resource_pack_receive
1193
+ if held_item_slot: packet_held_item_slot
1194
+ if set_creative_slot: packet_set_creative_slot
1195
+ if update_sign: packet_update_sign
1196
+ if arm_animation: packet_arm_animation
1197
+ if spectate: packet_spectate
1198
+ if block_place: packet_block_place
1199
+ if use_item: packet_use_item
1200
+ if advancement_tab: packet_advancement_tab