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