minecraft-data 3.67.0 → 3.69.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 (159) hide show
  1. package/data.js +147 -52
  2. package/doc/history.md +8 -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 +71 -116
  39. package/minecraft-data/data/bedrock/1.21.2/types.yml +2373 -0
  40. package/minecraft-data/data/bedrock/1.21.20/proto.yml +4263 -0
  41. package/minecraft-data/data/bedrock/1.21.20/protocol.json +12646 -0
  42. package/minecraft-data/data/bedrock/1.21.20/types.yml +2406 -0
  43. package/minecraft-data/data/bedrock/1.21.20/version.json +6 -0
  44. package/minecraft-data/data/bedrock/1.21.30/protocol.json +12689 -0
  45. package/minecraft-data/data/bedrock/1.21.30/version.json +6 -0
  46. package/minecraft-data/data/bedrock/common/protocolVersions.json +12 -0
  47. package/minecraft-data/data/bedrock/common/versions.json +3 -1
  48. package/minecraft-data/data/bedrock/latest/proto.yml +113 -14
  49. package/minecraft-data/data/bedrock/latest/types.yml +44 -11
  50. package/minecraft-data/data/dataPaths.json +148 -53
  51. package/minecraft-data/data/pc/0.30c/proto.yml +138 -0
  52. package/minecraft-data/data/pc/0.30c/protocol.json +6 -6
  53. package/minecraft-data/data/pc/1.10/proto.yml +1101 -0
  54. package/minecraft-data/data/pc/1.10/protocol.json +34 -13
  55. package/minecraft-data/data/pc/1.10-pre1/proto.yml +1101 -0
  56. package/minecraft-data/data/pc/1.10-pre1/protocol.json +34 -13
  57. package/minecraft-data/data/pc/1.11/proto.yml +1103 -0
  58. package/minecraft-data/data/pc/1.11/protocol.json +34 -13
  59. package/minecraft-data/data/pc/1.12/proto.yml +1202 -0
  60. package/minecraft-data/data/pc/1.12/protocol.json +71 -34
  61. package/minecraft-data/data/pc/1.12-pre4/proto.yml +1174 -0
  62. package/minecraft-data/data/pc/1.12-pre4/protocol.json +51 -30
  63. package/minecraft-data/data/pc/1.12.1/proto.yml +1200 -0
  64. package/minecraft-data/data/pc/1.12.1/protocol.json +68 -31
  65. package/minecraft-data/data/pc/1.12.2/proto.yml +1200 -0
  66. package/minecraft-data/data/pc/1.12.2/protocol.json +68 -31
  67. package/minecraft-data/data/pc/1.13/proto.yml +1631 -0
  68. package/minecraft-data/data/pc/1.13/protocol.json +531 -463
  69. package/minecraft-data/data/pc/1.13.1/proto.yml +1632 -0
  70. package/minecraft-data/data/pc/1.13.1/protocol.json +535 -467
  71. package/minecraft-data/data/pc/1.13.2/proto.yml +1633 -0
  72. package/minecraft-data/data/pc/1.13.2/protocol.json +241 -174
  73. package/minecraft-data/data/pc/1.13.2-pre1/proto.yml +1633 -0
  74. package/minecraft-data/data/pc/1.13.2-pre1/protocol.json +241 -174
  75. package/minecraft-data/data/pc/1.13.2-pre2/proto.yml +1633 -0
  76. package/minecraft-data/data/pc/1.13.2-pre2/protocol.json +241 -174
  77. package/minecraft-data/data/pc/1.14/proto.yml +1717 -0
  78. package/minecraft-data/data/pc/1.14/protocol.json +304 -226
  79. package/minecraft-data/data/pc/1.14.1/proto.yml +1717 -0
  80. package/minecraft-data/data/pc/1.14.1/protocol.json +304 -226
  81. package/minecraft-data/data/pc/1.14.3/proto.yml +1718 -0
  82. package/minecraft-data/data/pc/1.14.3/protocol.json +304 -226
  83. package/minecraft-data/data/pc/1.14.4/proto.yml +1726 -0
  84. package/minecraft-data/data/pc/1.14.4/protocol.json +308 -230
  85. package/minecraft-data/data/pc/1.15/proto.yml +1730 -0
  86. package/minecraft-data/data/pc/1.15/protocol.json +315 -234
  87. package/minecraft-data/data/pc/1.15.1/proto.yml +1730 -0
  88. package/minecraft-data/data/pc/1.15.1/protocol.json +315 -234
  89. package/minecraft-data/data/pc/1.15.2/proto.yml +1730 -0
  90. package/minecraft-data/data/pc/1.15.2/protocol.json +315 -234
  91. package/minecraft-data/data/pc/1.16/proto.yml +1762 -0
  92. package/minecraft-data/data/pc/1.16/protocol.json +357 -264
  93. package/minecraft-data/data/pc/1.16-rc1/proto.yml +1762 -0
  94. package/minecraft-data/data/pc/1.16-rc1/protocol.json +357 -264
  95. package/minecraft-data/data/pc/1.16.1/proto.yml +1762 -0
  96. package/minecraft-data/data/pc/1.16.1/protocol.json +357 -264
  97. package/minecraft-data/data/pc/1.16.2/proto.yml +1776 -0
  98. package/minecraft-data/data/pc/1.16.2/protocol.json +354 -260
  99. package/minecraft-data/data/pc/1.17/proto.yml +1796 -0
  100. package/minecraft-data/data/pc/1.17/protocol.json +5 -5
  101. package/minecraft-data/data/pc/1.17.1/proto.yml +1800 -0
  102. package/minecraft-data/data/pc/1.17.1/protocol.json +5 -5
  103. package/minecraft-data/data/pc/1.18/proto.yml +1836 -0
  104. package/minecraft-data/data/pc/1.18/protocol.json +5 -5
  105. package/minecraft-data/data/pc/1.18.2/proto.yml +1836 -0
  106. package/minecraft-data/data/pc/1.18.2/protocol.json +5 -5
  107. package/minecraft-data/data/pc/1.19/proto.yml +1990 -0
  108. package/minecraft-data/data/pc/1.19/protocol.json +5 -5
  109. package/minecraft-data/data/pc/1.19.2/proto.yml +2085 -0
  110. package/minecraft-data/data/pc/1.19.2/protocol.json +5 -5
  111. package/minecraft-data/data/pc/1.19.3/proto.yml +2322 -0
  112. package/minecraft-data/data/pc/1.19.3/protocol.json +215 -119
  113. package/minecraft-data/data/pc/1.19.4/proto.yml +2413 -0
  114. package/minecraft-data/data/pc/1.20/proto.yml +2409 -0
  115. package/minecraft-data/data/pc/1.20.2/proto.yml +2508 -0
  116. package/minecraft-data/data/pc/1.20.2/protocol.json +1 -1
  117. package/minecraft-data/data/pc/1.20.3/protocol.json +1 -1
  118. package/minecraft-data/data/pc/1.7/proto.yml +922 -0
  119. package/minecraft-data/data/pc/1.7/protocol.json +1 -1
  120. package/minecraft-data/data/pc/1.8/proto.yml +1035 -0
  121. package/minecraft-data/data/pc/1.8/protocol.json +28 -8
  122. package/minecraft-data/data/pc/1.9/proto.yml +1109 -0
  123. package/minecraft-data/data/pc/1.9/protocol.json +30 -10
  124. package/minecraft-data/data/pc/1.9.1-pre2/proto.yml +1109 -0
  125. package/minecraft-data/data/pc/1.9.1-pre2/protocol.json +30 -10
  126. package/minecraft-data/data/pc/1.9.2/proto.yml +1109 -0
  127. package/minecraft-data/data/pc/1.9.2/protocol.json +30 -10
  128. package/minecraft-data/data/pc/1.9.4/proto.yml +1102 -0
  129. package/minecraft-data/data/pc/1.9.4/protocol.json +34 -13
  130. package/minecraft-data/data/pc/15w40b/proto.yml +1070 -0
  131. package/minecraft-data/data/pc/15w40b/protocol.json +107 -87
  132. package/minecraft-data/data/pc/16w20a/proto.yml +1102 -0
  133. package/minecraft-data/data/pc/16w20a/protocol.json +34 -13
  134. package/minecraft-data/data/pc/16w35a/proto.yml +1102 -0
  135. package/minecraft-data/data/pc/16w35a/protocol.json +34 -13
  136. package/minecraft-data/data/pc/17w15a/proto.yml +1165 -0
  137. package/minecraft-data/data/pc/17w15a/protocol.json +44 -23
  138. package/minecraft-data/data/pc/17w18b/proto.yml +1163 -0
  139. package/minecraft-data/data/pc/17w18b/protocol.json +52 -31
  140. package/minecraft-data/data/pc/17w50a/proto.yml +1418 -0
  141. package/minecraft-data/data/pc/17w50a/protocol.json +535 -346
  142. package/minecraft-data/data/pc/20w13b/proto.yml +1732 -0
  143. package/minecraft-data/data/pc/20w13b/protocol.json +315 -235
  144. package/minecraft-data/data/pc/21w07a/proto.yml +1785 -0
  145. package/minecraft-data/data/pc/21w07a/protocol.json +408 -295
  146. package/minecraft-data/data/pc/common/protocolVersions.json +64 -0
  147. package/minecraft-data/data/pc/latest/proto.yml +2762 -0
  148. package/minecraft-data/doc/add-data-new-version.md +3 -0
  149. package/minecraft-data/doc/history.md +11 -0
  150. package/minecraft-data/doc/protocol.md +154 -0
  151. package/minecraft-data/tools/js/compileProtocol.js +67 -45
  152. package/minecraft-data/tools/js/convertMcpcProtocolJsonToYaml.js +65 -0
  153. package/minecraft-data/tools/js/incrementVersion.js +63 -48
  154. package/minecraft-data/tools/js/package.json +3 -1
  155. package/minecraft-data/tools/js/test/protocolSync.js +1 -1
  156. package/package.json +3 -3
  157. package/tsconfig.json +1 -1
  158. package/typings/index-template.d.ts +30 -24
  159. package/typings/test-typings.ts +5 -0
@@ -0,0 +1,922 @@
1
+ !version: 1.7
2
+
3
+ ^types:
4
+ varint: native
5
+ pstring: native
6
+ u16: native
7
+ u8: native
8
+ i64: native
9
+ buffer: native
10
+ i32: native
11
+ i8: native
12
+ bool: native
13
+ i16: native
14
+ f32: native
15
+ f64: native
16
+ UUID: native
17
+ option: native
18
+ entityMetadataLoop: native
19
+ bitfield: native
20
+ container: native
21
+ switch: native
22
+ void: native
23
+ array: native
24
+ restBuffer: native
25
+ nbt: native
26
+ compressedNbt: native
27
+ string: [
28
+ "pstring",
29
+ {
30
+ "countType": "varint"
31
+ }
32
+ ]
33
+ slot:
34
+ blockId: i16
35
+ _: blockId ?
36
+ if -1: void
37
+ default:
38
+ itemCount: i8
39
+ itemDamage: i16
40
+ nbtData: compressedNbt
41
+ position_iii:
42
+ x: i32
43
+ y: i32
44
+ z: i32
45
+ position_isi:
46
+ x: i32
47
+ y: i16
48
+ z: i32
49
+ position_ibi:
50
+ x: i32
51
+ y: u8
52
+ z: i32
53
+ entityMetadataItem: $compareTo ?
54
+ if 0: i8
55
+ if 1: i16
56
+ if 2: i32
57
+ if 3: f32
58
+ if 4: string
59
+ if 5: slot
60
+ if 6:
61
+ x: i32
62
+ y: i32
63
+ z: i32
64
+ if 7:
65
+ pitch: f32
66
+ yaw: f32
67
+ roll: f32
68
+ entityMetadata: [
69
+ "entityMetadataLoop",
70
+ {
71
+ "endVal": 127,
72
+ "type": [
73
+ "container",
74
+ [
75
+ {
76
+ "anon": true,
77
+ "type": [
78
+ "bitfield",
79
+ [
80
+ {
81
+ "name": "type",
82
+ "size": 3,
83
+ "signed": false
84
+ },
85
+ {
86
+ "name": "key",
87
+ "size": 5,
88
+ "signed": false
89
+ }
90
+ ]
91
+ ]
92
+ },
93
+ {
94
+ "name": "value",
95
+ "type": [
96
+ "entityMetadataItem",
97
+ {
98
+ "compareTo": "type"
99
+ }
100
+ ]
101
+ }
102
+ ]
103
+ ]
104
+ }
105
+ ]
106
+
107
+ ^handshaking.toClient.types:
108
+ packet:
109
+ name: varint =>
110
+ params: ["switch",{"compareTo":"name","fields":{}}]
111
+
112
+ ^handshaking.toServer.types:
113
+ packet_set_protocol:
114
+ protocolVersion: varint
115
+ serverHost: string
116
+ serverPort: u16
117
+ nextState: varint
118
+ packet_legacy_server_list_ping:
119
+ payload: u8
120
+ packet:
121
+ name: varint =>
122
+ 0x00: set_protocol
123
+ 0xfe: legacy_server_list_ping
124
+ params: name ?
125
+ if set_protocol: packet_set_protocol
126
+ if legacy_server_list_ping: packet_legacy_server_list_ping
127
+
128
+ ^status.toClient.types:
129
+ packet_server_info:
130
+ response: string
131
+ packet_ping:
132
+ time: i64
133
+ packet:
134
+ name: varint =>
135
+ 0x00: server_info
136
+ 0x01: ping
137
+ params: name ?
138
+ if server_info: packet_server_info
139
+ if ping: packet_ping
140
+
141
+ ^status.toServer.types:
142
+ packet_ping_start:
143
+ # Empty
144
+ packet_ping:
145
+ time: i64
146
+ packet:
147
+ name: varint =>
148
+ 0x00: ping_start
149
+ 0x01: ping
150
+ params: name ?
151
+ if ping_start: packet_ping_start
152
+ if ping: packet_ping
153
+
154
+ ^login.toClient.types:
155
+ packet_disconnect:
156
+ reason: string
157
+ packet_encryption_begin:
158
+ serverId: string
159
+ publicKey: [
160
+ "buffer",
161
+ {
162
+ "countType": "i16"
163
+ }
164
+ ]
165
+ verifyToken: [
166
+ "buffer",
167
+ {
168
+ "countType": "i16"
169
+ }
170
+ ]
171
+ packet_success:
172
+ uuid: string
173
+ username: string
174
+ packet:
175
+ name: varint =>
176
+ 0x00: disconnect
177
+ 0x01: encryption_begin
178
+ 0x02: success
179
+ params: name ?
180
+ if disconnect: packet_disconnect
181
+ if encryption_begin: packet_encryption_begin
182
+ if success: packet_success
183
+
184
+ ^login.toServer.types:
185
+ packet_login_start:
186
+ username: string
187
+ packet_encryption_begin:
188
+ sharedSecret: [
189
+ "buffer",
190
+ {
191
+ "countType": "i16"
192
+ }
193
+ ]
194
+ verifyToken: [
195
+ "buffer",
196
+ {
197
+ "countType": "i16"
198
+ }
199
+ ]
200
+ packet:
201
+ name: varint =>
202
+ 0x00: login_start
203
+ 0x01: encryption_begin
204
+ params: name ?
205
+ if login_start: packet_login_start
206
+ if encryption_begin: packet_encryption_begin
207
+
208
+ ^play.toClient.types:
209
+ packet_keep_alive:
210
+ keepAliveId: i32
211
+ packet_login:
212
+ entityId: i32
213
+ gameMode: u8
214
+ dimension: i8
215
+ difficulty: u8
216
+ maxPlayers: u8
217
+ levelType: string
218
+ packet_chat:
219
+ message: string
220
+ packet_update_time:
221
+ age: i64
222
+ time: i64
223
+ packet_entity_equipment:
224
+ entityId: i32
225
+ slot: i16
226
+ item: slot
227
+ packet_spawn_position:
228
+ location: position_iii
229
+ packet_update_health:
230
+ health: f32
231
+ food: i16
232
+ foodSaturation: f32
233
+ packet_respawn:
234
+ dimension: i32
235
+ difficulty: u8
236
+ gamemode: u8
237
+ levelType: string
238
+ packet_position:
239
+ x: f64
240
+ y: f64
241
+ z: f64
242
+ yaw: f32
243
+ pitch: f32
244
+ onGround: bool
245
+ packet_held_item_slot:
246
+ slot: i8
247
+ packet_bed:
248
+ entityId: i32
249
+ location: position_ibi
250
+ packet_animation:
251
+ entityId: varint
252
+ animation: u8
253
+ packet_named_entity_spawn:
254
+ entityId: varint
255
+ playerUUID: string
256
+ playerName: string
257
+ data: []varint
258
+ name: string
259
+ value: string
260
+ signature: string
261
+ x: i32
262
+ y: i32
263
+ z: i32
264
+ yaw: i8
265
+ pitch: i8
266
+ currentItem: i16
267
+ metadata: entityMetadata
268
+ packet_collect:
269
+ collectedEntityId: i32
270
+ collectorEntityId: i32
271
+ packet_spawn_entity:
272
+ entityId: varint
273
+ type: i8
274
+ x: i32
275
+ y: i32
276
+ z: i32
277
+ pitch: i8
278
+ yaw: i8
279
+ objectData:
280
+ intField: i32
281
+ velocityX: intField ?
282
+ if 0: void
283
+ default: i16
284
+ velocityY: intField ?
285
+ if 0: void
286
+ default: i16
287
+ velocityZ: intField ?
288
+ if 0: void
289
+ default: i16
290
+ packet_spawn_entity_living:
291
+ entityId: varint
292
+ type: u8
293
+ x: i32
294
+ y: i32
295
+ z: i32
296
+ yaw: i8
297
+ pitch: i8
298
+ headPitch: i8
299
+ velocityX: i16
300
+ velocityY: i16
301
+ velocityZ: i16
302
+ metadata: entityMetadata
303
+ packet_spawn_entity_painting:
304
+ entityId: varint
305
+ title: string
306
+ location: position_iii
307
+ direction: i32
308
+ packet_spawn_entity_experience_orb:
309
+ entityId: varint
310
+ x: i32
311
+ y: i32
312
+ z: i32
313
+ count: i16
314
+ packet_entity_velocity:
315
+ entityId: i32
316
+ velocityX: i16
317
+ velocityY: i16
318
+ velocityZ: i16
319
+ packet_entity_destroy:
320
+ entityIds: i32[]i8
321
+ packet_entity:
322
+ entityId: i32
323
+ packet_rel_entity_move:
324
+ entityId: i32
325
+ dX: i8
326
+ dY: i8
327
+ dZ: i8
328
+ packet_entity_look:
329
+ entityId: i32
330
+ yaw: i8
331
+ pitch: i8
332
+ packet_entity_move_look:
333
+ entityId: i32
334
+ dX: i8
335
+ dY: i8
336
+ dZ: i8
337
+ yaw: i8
338
+ pitch: i8
339
+ packet_entity_teleport:
340
+ entityId: i32
341
+ x: i32
342
+ y: i32
343
+ z: i32
344
+ yaw: i8
345
+ pitch: i8
346
+ packet_entity_head_rotation:
347
+ entityId: i32
348
+ headYaw: i8
349
+ packet_entity_status:
350
+ entityId: i32
351
+ entityStatus: i8
352
+ packet_attach_entity:
353
+ entityId: i32
354
+ vehicleId: i32
355
+ leash: bool
356
+ packet_entity_metadata:
357
+ entityId: i32
358
+ metadata: entityMetadata
359
+ packet_entity_effect:
360
+ entityId: i32
361
+ effectId: i8
362
+ amplifier: i8
363
+ duration: i16
364
+ packet_remove_entity_effect:
365
+ entityId: i32
366
+ effectId: i8
367
+ packet_experience:
368
+ experienceBar: f32
369
+ level: i16
370
+ totalExperience: i16
371
+ packet_update_attributes:
372
+ entityId: i32
373
+ properties: []i32
374
+ key: string
375
+ value: f64
376
+ modifiers: []i16
377
+ uuid: UUID
378
+ amount: f64
379
+ operation: i8
380
+ packet_map_chunk:
381
+ x: i32
382
+ z: i32
383
+ groundUp: bool
384
+ bitMap: u16
385
+ addBitMap: u16
386
+ compressedChunkData: [
387
+ "buffer",
388
+ {
389
+ "countType": "i32"
390
+ }
391
+ ]
392
+ packet_multi_block_change:
393
+ chunkX: i32
394
+ chunkZ: i32
395
+ recordCount: [
396
+ "count",
397
+ {
398
+ "type": "i16",
399
+ "countFor": "records"
400
+ }
401
+ ]
402
+ dataLength: i32
403
+ records: []$recordCount
404
+ _: [
405
+ "bitfield",
406
+ [
407
+ {
408
+ "name": "metadata",
409
+ "size": 4,
410
+ "signed": false
411
+ },
412
+ {
413
+ "name": "blockId",
414
+ "size": 12,
415
+ "signed": false
416
+ }
417
+ ]
418
+ ]
419
+ y: u8
420
+ _: [
421
+ "bitfield",
422
+ [
423
+ {
424
+ "name": "z",
425
+ "size": 4,
426
+ "signed": false
427
+ },
428
+ {
429
+ "name": "x",
430
+ "size": 4,
431
+ "signed": false
432
+ }
433
+ ]
434
+ ]
435
+ packet_block_change:
436
+ location: position_ibi
437
+ type: varint
438
+ metadata: u8
439
+ packet_block_action:
440
+ location: position_isi
441
+ byte1: u8
442
+ byte2: u8
443
+ blockId: varint
444
+ packet_block_break_animation:
445
+ entityId: varint
446
+ location: position_iii
447
+ destroyStage: i8
448
+ packet_map_chunk_bulk:
449
+ chunkColumnCount: [
450
+ "count",
451
+ {
452
+ "type": "i16",
453
+ "countFor": "meta"
454
+ }
455
+ ]
456
+ dataLength: [
457
+ "count",
458
+ {
459
+ "type": "i32",
460
+ "countFor": "compressedChunkData"
461
+ }
462
+ ]
463
+ skyLightSent: bool
464
+ compressedChunkData: [
465
+ "buffer",
466
+ {
467
+ "count": "dataLength"
468
+ }
469
+ ]
470
+ meta: []$chunkColumnCount
471
+ x: i32
472
+ z: i32
473
+ bitMap: u16
474
+ addBitMap: u16
475
+ packet_explosion:
476
+ x: f32
477
+ y: f32
478
+ z: f32
479
+ radius: f32
480
+ affectedBlockOffsets: []i32
481
+ x: i8
482
+ y: i8
483
+ z: i8
484
+ playerMotionX: f32
485
+ playerMotionY: f32
486
+ playerMotionZ: f32
487
+ packet_world_event:
488
+ effectId: i32
489
+ location: position_ibi
490
+ data: i32
491
+ global: bool
492
+ packet_named_sound_effect:
493
+ soundName: string
494
+ x: i32
495
+ y: i32
496
+ z: i32
497
+ volume: f32
498
+ pitch: u8
499
+ packet_world_particles:
500
+ particleName: string
501
+ x: f32
502
+ y: f32
503
+ z: f32
504
+ offsetX: f32
505
+ offsetY: f32
506
+ offsetZ: f32
507
+ particleData: f32
508
+ particles: i32
509
+ packet_game_state_change:
510
+ reason: u8
511
+ gameMode: f32
512
+ packet_spawn_entity_weather:
513
+ entityId: varint
514
+ type: i8
515
+ x: i32
516
+ y: i32
517
+ z: i32
518
+ packet_open_window:
519
+ windowId: u8
520
+ inventoryType: u8
521
+ windowTitle: string
522
+ slotCount: u8
523
+ useProvidedTitle: bool
524
+ entityId: inventoryType ?
525
+ if 11: i32
526
+ default: void
527
+ packet_close_window:
528
+ windowId: u8
529
+ packet_set_slot:
530
+ windowId: i8
531
+ slot: i16
532
+ item: slot
533
+ packet_window_items:
534
+ windowId: u8
535
+ items: slot[]i16
536
+ packet_craft_progress_bar:
537
+ windowId: u8
538
+ property: i16
539
+ value: i16
540
+ packet_transaction:
541
+ windowId: u8
542
+ action: i16
543
+ accepted: bool
544
+ packet_update_sign:
545
+ location: position_isi
546
+ text1: string
547
+ text2: string
548
+ text3: string
549
+ text4: string
550
+ packet_map:
551
+ itemDamage: varint
552
+ data: [
553
+ "buffer",
554
+ {
555
+ "countType": "i16"
556
+ }
557
+ ]
558
+ packet_tile_entity_data:
559
+ location: position_isi
560
+ action: u8
561
+ nbtData: compressedNbt
562
+ packet_open_sign_entity:
563
+ location: position_iii
564
+ packet_statistics:
565
+ entries: []varint
566
+ name: string
567
+ value: varint
568
+ packet_player_info:
569
+ playerName: string
570
+ online: bool
571
+ ping: i16
572
+ packet_abilities:
573
+ flags: i8
574
+ flyingSpeed: f32
575
+ walkingSpeed: f32
576
+ packet_tab_complete:
577
+ matches: string[]varint
578
+ packet_scoreboard_objective:
579
+ name: string
580
+ displayText: string
581
+ action: i8
582
+ packet_scoreboard_score:
583
+ itemName: string
584
+ action: i8
585
+ scoreName: action ?
586
+ if 1: void
587
+ default: string
588
+ value: action ?
589
+ if 1: void
590
+ default: i32
591
+ packet_scoreboard_display_objective:
592
+ position: i8
593
+ name: string
594
+ packet_scoreboard_team:
595
+ team: string
596
+ mode: i8
597
+ name: mode ?
598
+ if 0: string
599
+ if 2: string
600
+ default: void
601
+ prefix: mode ?
602
+ if 0: string
603
+ if 2: string
604
+ default: void
605
+ suffix: mode ?
606
+ if 0: string
607
+ if 2: string
608
+ default: void
609
+ friendlyFire: mode ?
610
+ if 0: i8
611
+ if 2: i8
612
+ default: void
613
+ players: mode ?
614
+ if 0: string[]i16
615
+ if 3: string[]i16
616
+ if 4: string[]i16
617
+ default: void
618
+ packet_custom_payload:
619
+ channel: string
620
+ data: [
621
+ "buffer",
622
+ {
623
+ "countType": "i16"
624
+ }
625
+ ]
626
+ packet_kick_disconnect:
627
+ reason: string
628
+ packet:
629
+ name: varint =>
630
+ 0x00: keep_alive
631
+ 0x01: login
632
+ 0x02: chat
633
+ 0x03: update_time
634
+ 0x04: entity_equipment
635
+ 0x05: spawn_position
636
+ 0x06: update_health
637
+ 0x07: respawn
638
+ 0x08: position
639
+ 0x09: held_item_slot
640
+ 0x0a: bed
641
+ 0x0b: animation
642
+ 0x0c: named_entity_spawn
643
+ 0x0d: collect
644
+ 0x0e: spawn_entity
645
+ 0x0f: spawn_entity_living
646
+ 0x10: spawn_entity_painting
647
+ 0x11: spawn_entity_experience_orb
648
+ 0x12: entity_velocity
649
+ 0x13: entity_destroy
650
+ 0x14: entity
651
+ 0x15: rel_entity_move
652
+ 0x16: entity_look
653
+ 0x17: entity_move_look
654
+ 0x18: entity_teleport
655
+ 0x19: entity_head_rotation
656
+ 0x1a: entity_status
657
+ 0x1b: attach_entity
658
+ 0x1c: entity_metadata
659
+ 0x1d: entity_effect
660
+ 0x1e: remove_entity_effect
661
+ 0x1f: experience
662
+ 0x20: update_attributes
663
+ 0x21: map_chunk
664
+ 0x22: multi_block_change
665
+ 0x23: block_change
666
+ 0x24: block_action
667
+ 0x25: block_break_animation
668
+ 0x26: map_chunk_bulk
669
+ 0x27: explosion
670
+ 0x28: world_event
671
+ 0x29: named_sound_effect
672
+ 0x2a: world_particles
673
+ 0x2b: game_state_change
674
+ 0x2c: spawn_entity_weather
675
+ 0x2d: open_window
676
+ 0x2e: close_window
677
+ 0x2f: set_slot
678
+ 0x30: window_items
679
+ 0x31: craft_progress_bar
680
+ 0x32: transaction
681
+ 0x33: update_sign
682
+ 0x34: map
683
+ 0x35: tile_entity_data
684
+ 0x36: open_sign_entity
685
+ 0x37: statistics
686
+ 0x38: player_info
687
+ 0x39: abilities
688
+ 0x3a: tab_complete
689
+ 0x3b: scoreboard_objective
690
+ 0x3c: scoreboard_score
691
+ 0x3d: scoreboard_display_objective
692
+ 0x3e: scoreboard_team
693
+ 0x3f: custom_payload
694
+ 0x40: kick_disconnect
695
+ params: name ?
696
+ if keep_alive: packet_keep_alive
697
+ if login: packet_login
698
+ if chat: packet_chat
699
+ if update_time: packet_update_time
700
+ if entity_equipment: packet_entity_equipment
701
+ if spawn_position: packet_spawn_position
702
+ if update_health: packet_update_health
703
+ if respawn: packet_respawn
704
+ if position: packet_position
705
+ if held_item_slot: packet_held_item_slot
706
+ if bed: packet_bed
707
+ if animation: packet_animation
708
+ if named_entity_spawn: packet_named_entity_spawn
709
+ if collect: packet_collect
710
+ if spawn_entity: packet_spawn_entity
711
+ if spawn_entity_living: packet_spawn_entity_living
712
+ if spawn_entity_painting: packet_spawn_entity_painting
713
+ if spawn_entity_experience_orb: packet_spawn_entity_experience_orb
714
+ if entity_velocity: packet_entity_velocity
715
+ if entity_destroy: packet_entity_destroy
716
+ if entity: packet_entity
717
+ if rel_entity_move: packet_rel_entity_move
718
+ if entity_look: packet_entity_look
719
+ if entity_move_look: packet_entity_move_look
720
+ if entity_teleport: packet_entity_teleport
721
+ if entity_head_rotation: packet_entity_head_rotation
722
+ if entity_status: packet_entity_status
723
+ if attach_entity: packet_attach_entity
724
+ if entity_metadata: packet_entity_metadata
725
+ if entity_effect: packet_entity_effect
726
+ if remove_entity_effect: packet_remove_entity_effect
727
+ if experience: packet_experience
728
+ if update_attributes: packet_update_attributes
729
+ if map_chunk: packet_map_chunk
730
+ if multi_block_change: packet_multi_block_change
731
+ if block_change: packet_block_change
732
+ if block_action: packet_block_action
733
+ if block_break_animation: packet_block_break_animation
734
+ if map_chunk_bulk: packet_map_chunk_bulk
735
+ if explosion: packet_explosion
736
+ if world_event: packet_world_event
737
+ if named_sound_effect: packet_named_sound_effect
738
+ if world_particles: packet_world_particles
739
+ if game_state_change: packet_game_state_change
740
+ if spawn_entity_weather: packet_spawn_entity_weather
741
+ if open_window: packet_open_window
742
+ if close_window: packet_close_window
743
+ if set_slot: packet_set_slot
744
+ if window_items: packet_window_items
745
+ if craft_progress_bar: packet_craft_progress_bar
746
+ if transaction: packet_transaction
747
+ if update_sign: packet_update_sign
748
+ if map: packet_map
749
+ if tile_entity_data: packet_tile_entity_data
750
+ if open_sign_entity: packet_open_sign_entity
751
+ if statistics: packet_statistics
752
+ if player_info: packet_player_info
753
+ if abilities: packet_abilities
754
+ if tab_complete: packet_tab_complete
755
+ if scoreboard_objective: packet_scoreboard_objective
756
+ if scoreboard_score: packet_scoreboard_score
757
+ if scoreboard_display_objective: packet_scoreboard_display_objective
758
+ if scoreboard_team: packet_scoreboard_team
759
+ if custom_payload: packet_custom_payload
760
+ if kick_disconnect: packet_kick_disconnect
761
+
762
+ ^play.toServer.types:
763
+ packet_keep_alive:
764
+ keepAliveId: i32
765
+ packet_chat:
766
+ message: string
767
+ packet_use_entity:
768
+ target: i32
769
+ mouse: i8
770
+ x: mouse ?
771
+ if 2: f32
772
+ default: void
773
+ y: mouse ?
774
+ if 2: f32
775
+ default: void
776
+ z: mouse ?
777
+ if 2: f32
778
+ default: void
779
+ packet_flying:
780
+ onGround: bool
781
+ packet_position:
782
+ x: f64
783
+ stance: f64
784
+ y: f64
785
+ z: f64
786
+ onGround: bool
787
+ packet_look:
788
+ yaw: f32
789
+ pitch: f32
790
+ onGround: bool
791
+ packet_position_look:
792
+ x: f64
793
+ stance: f64
794
+ y: f64
795
+ z: f64
796
+ yaw: f32
797
+ pitch: f32
798
+ onGround: bool
799
+ packet_block_dig:
800
+ status: i8
801
+ location: position_ibi
802
+ face: i8
803
+ packet_block_place:
804
+ location: position_ibi
805
+ direction: i8
806
+ heldItem: slot
807
+ cursorX: i8
808
+ cursorY: i8
809
+ cursorZ: i8
810
+ packet_held_item_slot:
811
+ slotId: i16
812
+ packet_arm_animation:
813
+ entityId: i32
814
+ animation: i8
815
+ packet_entity_action:
816
+ entityId: i32
817
+ actionId: i8
818
+ jumpBoost: i32
819
+ packet_steer_vehicle:
820
+ sideways: f32
821
+ forward: f32
822
+ jump: bool
823
+ unmount: bool
824
+ packet_close_window:
825
+ windowId: u8
826
+ packet_window_click:
827
+ windowId: i8
828
+ slot: i16
829
+ mouseButton: i8
830
+ action: i16
831
+ mode: i8
832
+ item: slot
833
+ packet_transaction:
834
+ windowId: i8
835
+ action: i16
836
+ accepted: bool
837
+ packet_set_creative_slot:
838
+ slot: i16
839
+ item: slot
840
+ packet_enchant_item:
841
+ windowId: i8
842
+ enchantment: i8
843
+ packet_update_sign:
844
+ location: position_isi
845
+ text1: string
846
+ text2: string
847
+ text3: string
848
+ text4: string
849
+ packet_abilities:
850
+ flags: i8
851
+ flyingSpeed: f32
852
+ walkingSpeed: f32
853
+ packet_tab_complete:
854
+ text: string
855
+ packet_settings:
856
+ locale: string
857
+ viewDistance: i8
858
+ chatFlags: i8
859
+ chatColors: bool
860
+ difficulty: u8
861
+ showCape: bool
862
+ packet_client_command:
863
+ payload: i8
864
+ packet_custom_payload:
865
+ channel: string
866
+ data: [
867
+ "buffer",
868
+ {
869
+ "countType": "i16"
870
+ }
871
+ ]
872
+ packet:
873
+ name: varint =>
874
+ 0x00: keep_alive
875
+ 0x01: chat
876
+ 0x02: use_entity
877
+ 0x03: flying
878
+ 0x04: position
879
+ 0x05: look
880
+ 0x06: position_look
881
+ 0x07: block_dig
882
+ 0x08: block_place
883
+ 0x09: held_item_slot
884
+ 0x0a: arm_animation
885
+ 0x0b: entity_action
886
+ 0x0c: steer_vehicle
887
+ 0x0d: close_window
888
+ 0x0e: window_click
889
+ 0x0f: transaction
890
+ 0x10: set_creative_slot
891
+ 0x11: enchant_item
892
+ 0x12: update_sign
893
+ 0x13: abilities
894
+ 0x14: tab_complete
895
+ 0x15: settings
896
+ 0x16: client_command
897
+ 0x17: custom_payload
898
+ params: name ?
899
+ if keep_alive: packet_keep_alive
900
+ if chat: packet_chat
901
+ if use_entity: packet_use_entity
902
+ if flying: packet_flying
903
+ if position: packet_position
904
+ if look: packet_look
905
+ if position_look: packet_position_look
906
+ if block_dig: packet_block_dig
907
+ if block_place: packet_block_place
908
+ if held_item_slot: packet_held_item_slot
909
+ if arm_animation: packet_arm_animation
910
+ if entity_action: packet_entity_action
911
+ if steer_vehicle: packet_steer_vehicle
912
+ if close_window: packet_close_window
913
+ if window_click: packet_window_click
914
+ if transaction: packet_transaction
915
+ if set_creative_slot: packet_set_creative_slot
916
+ if enchant_item: packet_enchant_item
917
+ if update_sign: packet_update_sign
918
+ if abilities: packet_abilities
919
+ if tab_complete: packet_tab_complete
920
+ if settings: packet_settings
921
+ if client_command: packet_client_command
922
+ if custom_payload: packet_custom_payload