@vaitosoi/minejs 0.5.1 → 0.6.1

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 (77) hide show
  1. package/README.md +25 -9
  2. package/assets/minecraft/26.2/components.json +113 -0
  3. package/assets/minecraft/26.2/packets.json +8 -28
  4. package/assets/minecraft/26.3/packets.json +4957 -0
  5. package/assets/minecraft/versionMapping.json +16 -0
  6. package/dist/binary/decoder.d.ts +35 -0
  7. package/dist/binary/decoder.d.ts.map +1 -1
  8. package/dist/binary/decoder.js +665 -2
  9. package/dist/binary/decoder.js.map +1 -1
  10. package/dist/binary/encoder.d.ts +3 -3
  11. package/dist/binary/encoder.d.ts.map +1 -1
  12. package/dist/binary/encoder.js +4 -4
  13. package/dist/binary/encoder.js.map +1 -1
  14. package/dist/client/client.d.ts +178 -22
  15. package/dist/client/client.d.ts.map +1 -1
  16. package/dist/client/client.js +132 -13
  17. package/dist/client/client.js.map +1 -1
  18. package/dist/net/tcp.d.ts +6 -9
  19. package/dist/net/tcp.d.ts.map +1 -1
  20. package/dist/net/tcp.js +16 -19
  21. package/dist/net/tcp.js.map +1 -1
  22. package/dist/packet/listener.d.ts +6 -1
  23. package/dist/packet/listener.d.ts.map +1 -1
  24. package/dist/packet/listener.js +220 -60
  25. package/dist/packet/listener.js.map +1 -1
  26. package/dist/packet/sender.d.ts +4 -1
  27. package/dist/packet/sender.d.ts.map +1 -1
  28. package/dist/packet/sender.js +30 -4
  29. package/dist/packet/sender.js.map +1 -1
  30. package/dist/physics/aabb.d.ts.map +1 -1
  31. package/dist/physics/aabb.js +17 -9
  32. package/dist/physics/aabb.js.map +1 -1
  33. package/dist/physics/direction.js +2 -2
  34. package/dist/physics/direction.js.map +1 -1
  35. package/dist/physics/player.js +1 -5
  36. package/dist/physics/player.js.map +1 -1
  37. package/dist/version/codec.d.ts.map +1 -1
  38. package/dist/version/codec.js +63 -14
  39. package/dist/version/codec.js.map +1 -1
  40. package/dist/version/registry.d.ts +26 -5
  41. package/dist/version/registry.d.ts.map +1 -1
  42. package/dist/version/registry.js +78 -18
  43. package/dist/version/registry.js.map +1 -1
  44. package/dist/world/block.d.ts +54 -10
  45. package/dist/world/block.d.ts.map +1 -1
  46. package/dist/world/block.js +78 -32
  47. package/dist/world/block.js.map +1 -1
  48. package/dist/world/container.d.ts +106 -0
  49. package/dist/world/container.d.ts.map +1 -0
  50. package/dist/world/container.js +240 -0
  51. package/dist/world/container.js.map +1 -0
  52. package/dist/world/entity.d.ts +3 -0
  53. package/dist/world/entity.d.ts.map +1 -1
  54. package/dist/world/entity.js +3 -0
  55. package/dist/world/entity.js.map +1 -1
  56. package/dist/world/state.d.ts +11 -5
  57. package/dist/world/state.d.ts.map +1 -1
  58. package/dist/world/state.js +11 -0
  59. package/dist/world/state.js.map +1 -1
  60. package/package.json +2 -2
  61. package/src/binary/decoder.ts +691 -2
  62. package/src/binary/encoder.ts +8 -9
  63. package/src/client/client.ts +234 -34
  64. package/src/net/tcp.ts +27 -22
  65. package/src/packet/listener.ts +275 -76
  66. package/src/packet/sender.ts +42 -7
  67. package/src/physics/aabb.ts +18 -9
  68. package/src/physics/direction.ts +2 -2
  69. package/src/physics/player.ts +5 -5
  70. package/src/version/codec.ts +56 -14
  71. package/src/version/registry.ts +92 -18
  72. package/src/world/block.ts +83 -39
  73. package/src/world/container.ts +180 -0
  74. package/src/world/entity.ts +3 -0
  75. package/src/world/state.ts +21 -6
  76. package/test/client/index.ts +56 -21
  77. package/test/client/registry.json +1735 -0
@@ -0,0 +1,4957 @@
1
+ {
2
+ "handshaking": {
3
+ "clientbound": {},
4
+ "serverbound": {
5
+ "0x0": {
6
+ "name": "intention",
7
+ "id": 0,
8
+ "structure": {
9
+ "protocol_version": {
10
+ "type": "var_int"
11
+ },
12
+ "server_address": {
13
+ "type": "string",
14
+ "length": 255
15
+ },
16
+ "server_port": {
17
+ "type": "unsigned_short"
18
+ },
19
+ "intent": {
20
+ "type": "enum",
21
+ "subType": {
22
+ "type": "var_int"
23
+ }
24
+ }
25
+ }
26
+ }
27
+ }
28
+ },
29
+ "status": {
30
+ "clientbound": {
31
+ "0x0": {
32
+ "name": "status_response",
33
+ "id": 0,
34
+ "structure": {
35
+ "json_response": {
36
+ "type": "string",
37
+ "length": 32767
38
+ }
39
+ }
40
+ },
41
+ "0x1": {
42
+ "name": "pong_response",
43
+ "id": 1,
44
+ "structure": {
45
+ "timestamp": {
46
+ "type": "long"
47
+ }
48
+ }
49
+ }
50
+ },
51
+ "serverbound": {
52
+ "0x0": {
53
+ "name": "status_request",
54
+ "id": 0,
55
+ "structure": {}
56
+ },
57
+ "0x1": {
58
+ "name": "ping_request",
59
+ "id": 1,
60
+ "structure": {
61
+ "timestamp": {
62
+ "type": "long"
63
+ }
64
+ }
65
+ }
66
+ }
67
+ },
68
+ "login": {
69
+ "clientbound": {
70
+ "0x0": {
71
+ "name": "login_disconnect",
72
+ "id": 0,
73
+ "structure": {
74
+ "reason": {
75
+ "type": "json_text"
76
+ }
77
+ }
78
+ },
79
+ "0x1": {
80
+ "name": "hello",
81
+ "id": 1,
82
+ "structure": {
83
+ "server_id": {
84
+ "type": "string",
85
+ "length": 20
86
+ },
87
+ "public_key": {
88
+ "type": "prefixed_array",
89
+ "subType": {
90
+ "type": "byte"
91
+ }
92
+ },
93
+ "verify_token": {
94
+ "type": "prefixed_array",
95
+ "subType": {
96
+ "type": "byte"
97
+ }
98
+ },
99
+ "should_authenticate": {
100
+ "type": "boolean"
101
+ }
102
+ }
103
+ },
104
+ "0x2": {
105
+ "name": "login_finished",
106
+ "id": 2,
107
+ "structure": {
108
+ "profile": {
109
+ "type": "game_profile"
110
+ },
111
+ "session_id": {
112
+ "type": "uuid"
113
+ }
114
+ }
115
+ },
116
+ "0x3": {
117
+ "name": "login_compression",
118
+ "id": 3,
119
+ "structure": {
120
+ "threshold": {
121
+ "type": "var_int"
122
+ }
123
+ }
124
+ },
125
+ "0x4": {
126
+ "name": "custom_query",
127
+ "id": 4,
128
+ "structure": {
129
+ "message_id": {
130
+ "type": "var_int"
131
+ },
132
+ "channel": {
133
+ "type": "string"
134
+ },
135
+ "data": {
136
+ "type": "varies"
137
+ }
138
+ }
139
+ },
140
+ "0x5": {
141
+ "name": "cookie_request",
142
+ "id": 5,
143
+ "structure": {
144
+ "key": {
145
+ "type": "string"
146
+ }
147
+ }
148
+ }
149
+ },
150
+ "serverbound": {
151
+ "0x0": {
152
+ "name": "hello",
153
+ "id": 0,
154
+ "structure": {
155
+ "name": {
156
+ "type": "string",
157
+ "length": 16
158
+ },
159
+ "player_uuid": {
160
+ "type": "uuid"
161
+ }
162
+ }
163
+ },
164
+ "0x1": {
165
+ "name": "key",
166
+ "id": 1,
167
+ "structure": {
168
+ "shared_secret": {
169
+ "type": "prefixed_array",
170
+ "subType": {
171
+ "type": "byte"
172
+ }
173
+ },
174
+ "verify_token": {
175
+ "type": "prefixed_array",
176
+ "subType": {
177
+ "type": "byte"
178
+ }
179
+ }
180
+ }
181
+ },
182
+ "0x2": {
183
+ "name": "custom_query_answer",
184
+ "id": 2,
185
+ "structure": {
186
+ "message_id": {
187
+ "type": "var_int"
188
+ },
189
+ "data": {
190
+ "type": "prefixed_optional",
191
+ "subType": {
192
+ "type": "varies"
193
+ }
194
+ }
195
+ }
196
+ },
197
+ "0x3": {
198
+ "name": "login_acknowledged",
199
+ "id": 3,
200
+ "structure": {}
201
+ },
202
+ "0x4": {
203
+ "name": "cookie_response",
204
+ "id": 4,
205
+ "structure": {
206
+ "key": {
207
+ "type": "string"
208
+ },
209
+ "payload": {
210
+ "type": "prefixed_optional",
211
+ "subType": {
212
+ "type": "prefixed_array",
213
+ "length": 5120,
214
+ "subType": {
215
+ "type": "byte"
216
+ }
217
+ }
218
+ }
219
+ }
220
+ }
221
+ }
222
+ },
223
+ "configuration": {
224
+ "clientbound": {
225
+ "0x0": {
226
+ "name": "cookie_request",
227
+ "id": 0,
228
+ "structure": {
229
+ "key": {
230
+ "type": "string"
231
+ }
232
+ }
233
+ },
234
+ "0x1": {
235
+ "name": "custom_payload",
236
+ "id": 1,
237
+ "structure": {
238
+ "channel": {
239
+ "type": "string"
240
+ },
241
+ "data": {
242
+ "type": "varies"
243
+ }
244
+ }
245
+ },
246
+ "0x2": {
247
+ "name": "disconnect",
248
+ "id": 2,
249
+ "structure": {
250
+ "reason": {
251
+ "type": "nbt"
252
+ }
253
+ }
254
+ },
255
+ "0x3": {
256
+ "name": "finish_configuration",
257
+ "id": 3,
258
+ "structure": {}
259
+ },
260
+ "0x4": {
261
+ "name": "keep_alive",
262
+ "id": 4,
263
+ "structure": {
264
+ "keep_alive_id": {
265
+ "type": "long"
266
+ }
267
+ }
268
+ },
269
+ "0x5": {
270
+ "name": "ping",
271
+ "id": 5,
272
+ "structure": {
273
+ "id": {
274
+ "type": "int"
275
+ }
276
+ }
277
+ },
278
+ "0x6": {
279
+ "name": "reset_chat",
280
+ "id": 6,
281
+ "structure": {}
282
+ },
283
+ "0x7": {
284
+ "name": "registry_data",
285
+ "id": 7,
286
+ "structure": {
287
+ "registry_id": {
288
+ "type": "string"
289
+ },
290
+ "entries": {
291
+ "type": "prefixed_array",
292
+ "subType": {
293
+ "type": "object",
294
+ "fields": {
295
+ "entry_id": {
296
+ "type": "string"
297
+ },
298
+ "data": {
299
+ "type": "prefixed_optional",
300
+ "subType": {
301
+ "type": "nbt"
302
+ }
303
+ }
304
+ }
305
+ }
306
+ }
307
+ }
308
+ },
309
+ "0x8": {
310
+ "name": "resource_pack_pop",
311
+ "id": 8,
312
+ "structure": {
313
+ "uuid": {
314
+ "type": "prefixed_optional",
315
+ "subType": {
316
+ "type": "uuid"
317
+ }
318
+ }
319
+ }
320
+ },
321
+ "0x9": {
322
+ "name": "resource_pack_push",
323
+ "id": 9,
324
+ "structure": {
325
+ "uuid": {
326
+ "type": "uuid"
327
+ },
328
+ "url": {
329
+ "type": "string",
330
+ "length": 32767
331
+ },
332
+ "hash": {
333
+ "type": "string",
334
+ "length": 40
335
+ },
336
+ "forced": {
337
+ "type": "boolean"
338
+ },
339
+ "prompt_message": {
340
+ "type": "prefixed_optional",
341
+ "subType": {
342
+ "type": "nbt"
343
+ }
344
+ }
345
+ }
346
+ },
347
+ "0xA": {
348
+ "name": "post_effects",
349
+ "id": 10,
350
+ "structure": {
351
+ "post_effects": {
352
+ "type": "prefixed_array",
353
+ "subType": {
354
+ "type": "string"
355
+ }
356
+ }
357
+ }
358
+ },
359
+ "0xB": {
360
+ "name": "store_cookie",
361
+ "id": 11,
362
+ "structure": {
363
+ "key": {
364
+ "type": "string"
365
+ },
366
+ "payload": {
367
+ "type": "prefixed_array",
368
+ "length": 5120,
369
+ "subType": {
370
+ "type": "byte"
371
+ }
372
+ }
373
+ }
374
+ },
375
+ "0xC": {
376
+ "name": "transfer",
377
+ "id": 12,
378
+ "structure": {
379
+ "host": {
380
+ "type": "string",
381
+ "length": 32767
382
+ },
383
+ "port": {
384
+ "type": "var_int"
385
+ }
386
+ }
387
+ },
388
+ "0xD": {
389
+ "name": "update_enabled_features",
390
+ "id": 13,
391
+ "structure": {
392
+ "feature_flags": {
393
+ "type": "prefixed_array",
394
+ "subType": {
395
+ "type": "string"
396
+ }
397
+ }
398
+ }
399
+ },
400
+ "0xE": {
401
+ "name": "update_tags",
402
+ "id": 14,
403
+ "structure": {
404
+ "tagged_registries": {
405
+ "type": "prefixed_array",
406
+ "subType": {
407
+ "type": "object",
408
+ "fields": {
409
+ "registry": {
410
+ "type": "string"
411
+ },
412
+ "tags": {
413
+ "type": "prefixed_array",
414
+ "subType": {
415
+ "type": "not_implemented",
416
+ "comment": "Tag"
417
+ }
418
+ }
419
+ }
420
+ }
421
+ }
422
+ }
423
+ },
424
+ "0xF": {
425
+ "name": "select_known_packs",
426
+ "id": 15,
427
+ "structure": {
428
+ "known_packs": {
429
+ "type": "prefixed_array",
430
+ "subType": {
431
+ "type": "object",
432
+ "fields": {
433
+ "namespace": {
434
+ "type": "string",
435
+ "length": 32767
436
+ },
437
+ "id": {
438
+ "type": "string",
439
+ "length": 32767
440
+ },
441
+ "version": {
442
+ "type": "string",
443
+ "length": 32767
444
+ }
445
+ }
446
+ }
447
+ }
448
+ }
449
+ },
450
+ "0x10": {
451
+ "name": "custom_report_details",
452
+ "id": 16,
453
+ "structure": {
454
+ "details": {
455
+ "type": "prefixed_array",
456
+ "subType": {
457
+ "type": "object",
458
+ "fields": {
459
+ "title": {
460
+ "type": "string",
461
+ "length": 128
462
+ },
463
+ "description": {
464
+ "type": "string",
465
+ "length": 4096
466
+ }
467
+ }
468
+ }
469
+ }
470
+ }
471
+ },
472
+ "0x11": {
473
+ "name": "server_links",
474
+ "id": 17,
475
+ "structure": {
476
+ "links": {
477
+ "type": "prefixed_array",
478
+ "subType": {
479
+ "type": "object",
480
+ "fields": {
481
+ "label": {
482
+ "type": "not_implemented",
483
+ "comment": "Either VarInt Enum or Text Component"
484
+ },
485
+ "url": {
486
+ "type": "string"
487
+ }
488
+ }
489
+ }
490
+ }
491
+ }
492
+ },
493
+ "0x12": {
494
+ "name": "clear_dialog",
495
+ "id": 18,
496
+ "structure": {}
497
+ },
498
+ "0x13": {
499
+ "name": "show_dialog",
500
+ "id": 19,
501
+ "structure": {
502
+ "dialog": {
503
+ "type": "nbt"
504
+ }
505
+ }
506
+ },
507
+ "0x14": {
508
+ "name": "code_of_conduct",
509
+ "id": 20,
510
+ "structure": {
511
+ "code_of_conduct": {
512
+ "type": "string"
513
+ }
514
+ }
515
+ }
516
+ },
517
+ "serverbound": {
518
+ "0x0": {
519
+ "name": "client_information",
520
+ "id": 0,
521
+ "structure": {
522
+ "locale": {
523
+ "type": "string",
524
+ "length": 16
525
+ },
526
+ "view_distance": {
527
+ "type": "byte"
528
+ },
529
+ "chat_mode": {
530
+ "type": "enum",
531
+ "subType": {
532
+ "type": "var_int"
533
+ }
534
+ },
535
+ "chat_colors": {
536
+ "type": "boolean"
537
+ },
538
+ "displayed_skin_parts": {
539
+ "type": "unsigned_byte"
540
+ },
541
+ "main_hand": {
542
+ "type": "enum",
543
+ "subType": {
544
+ "type": "var_int"
545
+ }
546
+ },
547
+ "enable_text_filtering": {
548
+ "type": "boolean"
549
+ },
550
+ "allow_server_listings": {
551
+ "type": "boolean"
552
+ },
553
+ "particle_status": {
554
+ "type": "enum",
555
+ "subType": {
556
+ "type": "var_int"
557
+ }
558
+ }
559
+ }
560
+ },
561
+ "0x1": {
562
+ "name": "cookie_response",
563
+ "id": 1,
564
+ "structure": {
565
+ "key": {
566
+ "type": "string"
567
+ },
568
+ "payload": {
569
+ "type": "prefixed_optional",
570
+ "subType": {
571
+ "type": "prefixed_array",
572
+ "length": 5120,
573
+ "subType": {
574
+ "type": "byte"
575
+ }
576
+ }
577
+ }
578
+ }
579
+ },
580
+ "0x2": {
581
+ "name": "custom_payload",
582
+ "id": 2,
583
+ "structure": {
584
+ "channel": {
585
+ "type": "string"
586
+ },
587
+ "data": {
588
+ "type": "varies"
589
+ }
590
+ }
591
+ },
592
+ "0x3": {
593
+ "name": "finish_configuration",
594
+ "id": 3,
595
+ "structure": {}
596
+ },
597
+ "0x4": {
598
+ "name": "keep_alive",
599
+ "id": 4,
600
+ "structure": {
601
+ "keep_alive_id": {
602
+ "type": "long"
603
+ }
604
+ }
605
+ },
606
+ "0x5": {
607
+ "name": "pong",
608
+ "id": 5,
609
+ "structure": {
610
+ "id": {
611
+ "type": "int"
612
+ }
613
+ }
614
+ },
615
+ "0x6": {
616
+ "name": "resource_pack",
617
+ "id": 6,
618
+ "structure": {
619
+ "uuid": {
620
+ "type": "uuid"
621
+ },
622
+ "result": {
623
+ "type": "enum",
624
+ "subType": {
625
+ "type": "var_int"
626
+ }
627
+ }
628
+ }
629
+ },
630
+ "0x7": {
631
+ "name": "select_known_packs",
632
+ "id": 7,
633
+ "structure": {
634
+ "known_packs": {
635
+ "type": "prefixed_array",
636
+ "subType": {
637
+ "type": "object",
638
+ "fields": {
639
+ "namespace": {
640
+ "type": "string",
641
+ "length": 32767
642
+ },
643
+ "id": {
644
+ "type": "string",
645
+ "length": 32767
646
+ },
647
+ "version": {
648
+ "type": "string",
649
+ "length": 32767
650
+ }
651
+ }
652
+ }
653
+ }
654
+ }
655
+ },
656
+ "0x8": {
657
+ "name": "custom_click_action",
658
+ "id": 8,
659
+ "structure": {
660
+ "id": {
661
+ "type": "string"
662
+ },
663
+ "payload_size": {
664
+ "type": "var_int"
665
+ },
666
+ "payload": {
667
+ "type": "nbt"
668
+ }
669
+ }
670
+ },
671
+ "0x9": {
672
+ "name": "accept_code_of_conduct",
673
+ "id": 9,
674
+ "structure": {}
675
+ }
676
+ }
677
+ },
678
+ "play": {
679
+ "clientbound": {
680
+ "0x0": {
681
+ "name": "bundle_delimiter",
682
+ "id": 0,
683
+ "structure": {}
684
+ },
685
+ "0x1": {
686
+ "name": "add_entity",
687
+ "id": 1,
688
+ "structure": {
689
+ "entity_id": {
690
+ "type": "var_int"
691
+ },
692
+ "entity_uuid": {
693
+ "type": "uuid"
694
+ },
695
+ "type": {
696
+ "type": "var_int"
697
+ },
698
+ "x": {
699
+ "type": "double"
700
+ },
701
+ "y": {
702
+ "type": "double"
703
+ },
704
+ "z": {
705
+ "type": "double"
706
+ },
707
+ "velocity": {
708
+ "type": "lpvec3"
709
+ },
710
+ "pitch": {
711
+ "type": "angle"
712
+ },
713
+ "yaw": {
714
+ "type": "angle"
715
+ },
716
+ "head_yaw": {
717
+ "type": "angle"
718
+ },
719
+ "data": {
720
+ "type": "var_int"
721
+ }
722
+ }
723
+ },
724
+ "0x2": {
725
+ "name": "animate",
726
+ "id": 2,
727
+ "structure": {
728
+ "entity_id": {
729
+ "type": "var_int"
730
+ },
731
+ "animation": {
732
+ "type": "unsigned_byte"
733
+ }
734
+ }
735
+ },
736
+ "0x3": {
737
+ "name": "award_stats",
738
+ "id": 3,
739
+ "structure": {
740
+ "statistics": {
741
+ "type": "prefixed_array",
742
+ "subType": {
743
+ "type": "object",
744
+ "fields": {
745
+ "category_id": {
746
+ "type": "var_int"
747
+ },
748
+ "statistic_id": {
749
+ "type": "var_int"
750
+ },
751
+ "value": {
752
+ "type": "var_int"
753
+ }
754
+ }
755
+ }
756
+ }
757
+ }
758
+ },
759
+ "0x4": {
760
+ "name": "block_changed_ack",
761
+ "id": 4,
762
+ "structure": {
763
+ "sequence_id": {
764
+ "type": "var_int"
765
+ }
766
+ }
767
+ },
768
+ "0x5": {
769
+ "name": "block_destruction",
770
+ "id": 5,
771
+ "structure": {
772
+ "entity_id": {
773
+ "type": "var_int"
774
+ },
775
+ "location": {
776
+ "type": "position"
777
+ },
778
+ "destroy_stage": {
779
+ "type": "unsigned_byte"
780
+ }
781
+ }
782
+ },
783
+ "0x6": {
784
+ "name": "block_entity_data",
785
+ "id": 6,
786
+ "structure": {
787
+ "location": {
788
+ "type": "position"
789
+ },
790
+ "type": {
791
+ "type": "var_int"
792
+ },
793
+ "nbt_data": {
794
+ "type": "nbt"
795
+ }
796
+ }
797
+ },
798
+ "0x7": {
799
+ "name": "block_event",
800
+ "id": 7,
801
+ "structure": {
802
+ "location": {
803
+ "type": "position"
804
+ },
805
+ "action_id_byte_1": {
806
+ "type": "unsigned_byte"
807
+ },
808
+ "action_parameter_byte_2": {
809
+ "type": "unsigned_byte"
810
+ },
811
+ "block_type": {
812
+ "type": "var_int"
813
+ }
814
+ }
815
+ },
816
+ "0x8": {
817
+ "name": "block_update",
818
+ "id": 8,
819
+ "structure": {
820
+ "location": {
821
+ "type": "position"
822
+ },
823
+ "block_id": {
824
+ "type": "var_int"
825
+ }
826
+ }
827
+ },
828
+ "0xA": {
829
+ "name": "change_difficulty",
830
+ "id": 10,
831
+ "structure": {
832
+ "difficulty": {
833
+ "type": "enum",
834
+ "subType": {
835
+ "type": "unsigned_byte"
836
+ }
837
+ },
838
+ "difficulty_locked": {
839
+ "type": "boolean"
840
+ }
841
+ }
842
+ },
843
+ "0xB": {
844
+ "name": "chunk_batch_finished",
845
+ "id": 11,
846
+ "structure": {
847
+ "batch_size": {
848
+ "type": "var_int"
849
+ }
850
+ }
851
+ },
852
+ "0xC": {
853
+ "name": "chunk_batch_start",
854
+ "id": 12,
855
+ "structure": {}
856
+ },
857
+ "0xD": {
858
+ "name": "chunks_biomes",
859
+ "id": 13,
860
+ "structure": {
861
+ "chunk_biome_data": {
862
+ "type": "prefixed_array",
863
+ "subType": {
864
+ "type": "object",
865
+ "fields": {
866
+ "chunk_z": {
867
+ "type": "int"
868
+ },
869
+ "chunk_x": {
870
+ "type": "int"
871
+ },
872
+ "data": {
873
+ "type": "prefixed_array",
874
+ "subType": {
875
+ "type": "byte"
876
+ }
877
+ }
878
+ }
879
+ }
880
+ }
881
+ }
882
+ },
883
+ "0xE": {
884
+ "name": "clear_titles",
885
+ "id": 14,
886
+ "structure": {
887
+ "reset": {
888
+ "type": "boolean"
889
+ }
890
+ }
891
+ },
892
+ "0xF": {
893
+ "name": "command_suggestions",
894
+ "id": 15,
895
+ "structure": {
896
+ "id": {
897
+ "type": "var_int"
898
+ },
899
+ "start": {
900
+ "type": "var_int"
901
+ },
902
+ "length": {
903
+ "type": "var_int"
904
+ },
905
+ "matches": {
906
+ "type": "prefixed_array",
907
+ "subType": {
908
+ "type": "object",
909
+ "fields": {
910
+ "match": {
911
+ "type": "string",
912
+ "length": 32767
913
+ },
914
+ "tooltip": {
915
+ "type": "prefixed_optional",
916
+ "subType": {
917
+ "type": "nbt"
918
+ }
919
+ }
920
+ }
921
+ }
922
+ }
923
+ }
924
+ },
925
+ "0x10": {
926
+ "name": "commands",
927
+ "id": 16,
928
+ "structure": {
929
+ "nodes": {
930
+ "type": "prefixed_array",
931
+ "subType": {
932
+ "type": "not_implemented",
933
+ "comment": "Node"
934
+ }
935
+ },
936
+ "root_index": {
937
+ "type": "var_int"
938
+ }
939
+ }
940
+ },
941
+ "0x11": {
942
+ "name": "container_close",
943
+ "id": 17,
944
+ "structure": {
945
+ "window_id": {
946
+ "type": "var_int"
947
+ }
948
+ }
949
+ },
950
+ "0x12": {
951
+ "name": "container_set_content",
952
+ "id": 18,
953
+ "structure": {
954
+ "window_id": {
955
+ "type": "var_int"
956
+ },
957
+ "state_id": {
958
+ "type": "var_int"
959
+ },
960
+ "slot_data": {
961
+ "type": "prefixed_array",
962
+ "subType": {
963
+ "type": "slot"
964
+ }
965
+ },
966
+ "carried_item": {
967
+ "type": "slot"
968
+ }
969
+ }
970
+ },
971
+ "0x13": {
972
+ "name": "container_set_data",
973
+ "id": 19,
974
+ "structure": {
975
+ "window_id": {
976
+ "type": "var_int"
977
+ },
978
+ "property": {
979
+ "type": "short"
980
+ },
981
+ "value": {
982
+ "type": "short"
983
+ }
984
+ }
985
+ },
986
+ "0x14": {
987
+ "name": "container_set_slot",
988
+ "id": 20,
989
+ "structure": {
990
+ "window_id": {
991
+ "type": "var_int"
992
+ },
993
+ "state_id": {
994
+ "type": "var_int"
995
+ },
996
+ "slot": {
997
+ "type": "short"
998
+ },
999
+ "slot_data": {
1000
+ "type": "slot"
1001
+ }
1002
+ }
1003
+ },
1004
+ "0x15": {
1005
+ "name": "cookie_request",
1006
+ "id": 21,
1007
+ "structure": {
1008
+ "key": {
1009
+ "type": "string"
1010
+ }
1011
+ }
1012
+ },
1013
+ "0x16": {
1014
+ "name": "cooldown",
1015
+ "id": 22,
1016
+ "structure": {
1017
+ "cooldown_group": {
1018
+ "type": "string"
1019
+ },
1020
+ "cooldown_ticks": {
1021
+ "type": "var_int"
1022
+ }
1023
+ }
1024
+ },
1025
+ "0x17": {
1026
+ "name": "custom_chat_completions",
1027
+ "id": 23,
1028
+ "structure": {
1029
+ "action": {
1030
+ "type": "enum",
1031
+ "subType": {
1032
+ "type": "var_int"
1033
+ }
1034
+ },
1035
+ "entries": {
1036
+ "type": "prefixed_array",
1037
+ "subType": {
1038
+ "type": "string",
1039
+ "length": 32767
1040
+ }
1041
+ }
1042
+ }
1043
+ },
1044
+ "0x18": {
1045
+ "name": "custom_payload",
1046
+ "id": 24,
1047
+ "structure": {
1048
+ "channel": {
1049
+ "type": "string"
1050
+ },
1051
+ "data": {
1052
+ "type": "varies"
1053
+ }
1054
+ }
1055
+ },
1056
+ "0x19": {
1057
+ "name": "damage_event",
1058
+ "id": 25,
1059
+ "structure": {
1060
+ "entity_id": {
1061
+ "type": "var_int"
1062
+ },
1063
+ "source_type_id": {
1064
+ "type": "var_int"
1065
+ },
1066
+ "source_cause_id": {
1067
+ "type": "var_int"
1068
+ },
1069
+ "source_direct_id": {
1070
+ "type": "var_int"
1071
+ },
1072
+ "source_position": {
1073
+ "type": "prefixed_optional",
1074
+ "subType": {
1075
+ "type": "object",
1076
+ "fields": {
1077
+ "x": {
1078
+ "type": "double"
1079
+ },
1080
+ "y": {
1081
+ "type": "double"
1082
+ },
1083
+ "z": {
1084
+ "type": "double"
1085
+ }
1086
+ }
1087
+ }
1088
+ }
1089
+ }
1090
+ },
1091
+ "0x1A": {
1092
+ "name": "debug_block_value",
1093
+ "id": 26,
1094
+ "structure": {
1095
+ "location": {
1096
+ "type": "position"
1097
+ },
1098
+ "update": {
1099
+ "type": "not_implemented",
1100
+ "comment": "Debug Subscription Update"
1101
+ }
1102
+ }
1103
+ },
1104
+ "0x1B": {
1105
+ "name": "debug_chunk_value",
1106
+ "id": 27,
1107
+ "structure": {
1108
+ "chunk_z": {
1109
+ "type": "int"
1110
+ },
1111
+ "chunk_x": {
1112
+ "type": "int"
1113
+ },
1114
+ "update": {
1115
+ "type": "not_implemented",
1116
+ "comment": "Debug Subscription Update"
1117
+ }
1118
+ }
1119
+ },
1120
+ "0x1C": {
1121
+ "name": "debug_entity_value",
1122
+ "id": 28,
1123
+ "structure": {
1124
+ "entity_id": {
1125
+ "type": "var_int"
1126
+ },
1127
+ "update": {
1128
+ "type": "not_implemented",
1129
+ "comment": "Debug Subscription Update"
1130
+ }
1131
+ }
1132
+ },
1133
+ "0x1D": {
1134
+ "name": "debug_event",
1135
+ "id": 29,
1136
+ "structure": {
1137
+ "event": {
1138
+ "type": "not_implemented",
1139
+ "comment": "Debug Subscription Event"
1140
+ }
1141
+ }
1142
+ },
1143
+ "0x1E": {
1144
+ "name": "debug_sample",
1145
+ "id": 30,
1146
+ "structure": {
1147
+ "sample": {
1148
+ "type": "prefixed_array",
1149
+ "subType": {
1150
+ "type": "long"
1151
+ }
1152
+ },
1153
+ "sample_type": {
1154
+ "type": "enum",
1155
+ "subType": {
1156
+ "type": "var_int"
1157
+ }
1158
+ }
1159
+ }
1160
+ },
1161
+ "0x1F": {
1162
+ "name": "delete_chat",
1163
+ "id": 31,
1164
+ "structure": {
1165
+ "message_id": {
1166
+ "type": "var_int"
1167
+ },
1168
+ "signature": {
1169
+ "type": "prefixed_optional",
1170
+ "subType": {
1171
+ "type": "array",
1172
+ "length": 256,
1173
+ "subType": {
1174
+ "type": "byte"
1175
+ }
1176
+ }
1177
+ }
1178
+ }
1179
+ },
1180
+ "0x20": {
1181
+ "name": "disconnect",
1182
+ "id": 32,
1183
+ "structure": {
1184
+ "reason": {
1185
+ "type": "nbt"
1186
+ }
1187
+ }
1188
+ },
1189
+ "0x21": {
1190
+ "name": "disguised_chat",
1191
+ "id": 33,
1192
+ "structure": {
1193
+ "message": {
1194
+ "type": "nbt"
1195
+ },
1196
+ "chat_type": {
1197
+ "type": "id_or_x",
1198
+ "subType": {
1199
+ "type": "chat_type"
1200
+ }
1201
+ },
1202
+ "sender_name": {
1203
+ "type": "nbt"
1204
+ },
1205
+ "target_name": {
1206
+ "type": "prefixed_optional",
1207
+ "subType": {
1208
+ "type": "nbt"
1209
+ }
1210
+ }
1211
+ }
1212
+ },
1213
+ "0x22": {
1214
+ "name": "entity_event",
1215
+ "id": 34,
1216
+ "structure": {
1217
+ "entity_id": {
1218
+ "type": "int"
1219
+ },
1220
+ "entity_status": {
1221
+ "type": "enum",
1222
+ "subType": {
1223
+ "type": "byte"
1224
+ }
1225
+ }
1226
+ }
1227
+ },
1228
+ "0x23": {
1229
+ "name": "entity_position_sync",
1230
+ "id": 35,
1231
+ "structure": {
1232
+ "entity_id": {
1233
+ "type": "var_int"
1234
+ },
1235
+ "position_path_type": {
1236
+ "type": "enum",
1237
+ "subType": {
1238
+ "type": "var_int"
1239
+ }
1240
+ },
1241
+ "linear": {
1242
+ "type": "switch",
1243
+ "dependsOn": "position_path_type",
1244
+ "cases": [
1245
+ [
1246
+ 0,
1247
+ {
1248
+ "type": "object",
1249
+ "fields": {
1250
+ "x": {
1251
+ "type": "double"
1252
+ },
1253
+ "y": {
1254
+ "type": "double"
1255
+ },
1256
+ "z": {
1257
+ "type": "double"
1258
+ }
1259
+ }
1260
+ }
1261
+ ]
1262
+ ]
1263
+ },
1264
+ "stepped": {
1265
+ "type": "switch",
1266
+ "dependsOn": "position_path_type",
1267
+ "cases": [
1268
+ [
1269
+ 1,
1270
+ {
1271
+ "type": "prefixed_array",
1272
+ "subType": {
1273
+ "type": "object",
1274
+ "fields": {
1275
+ "x": {
1276
+ "type": "double"
1277
+ },
1278
+ "y": {
1279
+ "type": "double"
1280
+ },
1281
+ "z": {
1282
+ "type": "double"
1283
+ },
1284
+ "tick_offset": {
1285
+ "type": "var_int"
1286
+ }
1287
+ }
1288
+ }
1289
+ }
1290
+ ]
1291
+ ]
1292
+ },
1293
+ "yaw": {
1294
+ "type": "float"
1295
+ },
1296
+ "pitch": {
1297
+ "type": "float"
1298
+ },
1299
+ "on_ground": {
1300
+ "type": "boolean"
1301
+ }
1302
+ }
1303
+ },
1304
+ "0x24": {
1305
+ "name": "explode",
1306
+ "id": 36,
1307
+ "structure": {
1308
+ "x": {
1309
+ "type": "double"
1310
+ },
1311
+ "y": {
1312
+ "type": "double"
1313
+ },
1314
+ "z": {
1315
+ "type": "double"
1316
+ },
1317
+ "radius": {
1318
+ "type": "float"
1319
+ },
1320
+ "block_count": {
1321
+ "type": "int"
1322
+ },
1323
+ "player_delta_velocity": {
1324
+ "type": "prefixed_optional",
1325
+ "subType": {
1326
+ "type": "object",
1327
+ "fields": {
1328
+ "x": {
1329
+ "type": "double"
1330
+ },
1331
+ "y": {
1332
+ "type": "double"
1333
+ },
1334
+ "z": {
1335
+ "type": "double"
1336
+ }
1337
+ }
1338
+ }
1339
+ },
1340
+ "explosion_particle_id": {
1341
+ "type": "var_int"
1342
+ },
1343
+ "explosion_particle_data": {
1344
+ "type": "varies"
1345
+ },
1346
+ "explosion_sound": {
1347
+ "type": "id_or_x",
1348
+ "subType": {
1349
+ "type": "not_implemented",
1350
+ "comment": "Sound Event"
1351
+ }
1352
+ },
1353
+ "block_particle_alternatives": {
1354
+ "type": "prefixed_array",
1355
+ "subType": {
1356
+ "type": "object",
1357
+ "fields": {
1358
+ "particle_id": {
1359
+ "type": "var_int"
1360
+ },
1361
+ "particle_data": {
1362
+ "type": "varies"
1363
+ },
1364
+ "scaling": {
1365
+ "type": "float"
1366
+ },
1367
+ "speed": {
1368
+ "type": "float"
1369
+ },
1370
+ "weight": {
1371
+ "type": "var_int"
1372
+ }
1373
+ }
1374
+ }
1375
+ },
1376
+ "play_sound": {
1377
+ "type": "boolean"
1378
+ }
1379
+ }
1380
+ },
1381
+ "0x25": {
1382
+ "name": "add_transient_block",
1383
+ "id": 37,
1384
+ "structure": {
1385
+ "location": {
1386
+ "type": "position"
1387
+ },
1388
+ "block_state": {
1389
+ "type": "var_int"
1390
+ }
1391
+ }
1392
+ },
1393
+ "0x26": {
1394
+ "name": "forget_level_chunk",
1395
+ "id": 38,
1396
+ "structure": {
1397
+ "chunk_z": {
1398
+ "type": "int"
1399
+ },
1400
+ "chunk_x": {
1401
+ "type": "int"
1402
+ }
1403
+ }
1404
+ },
1405
+ "0x27": {
1406
+ "name": "game_event",
1407
+ "id": 39,
1408
+ "structure": {
1409
+ "event": {
1410
+ "type": "unsigned_byte"
1411
+ },
1412
+ "value": {
1413
+ "type": "float"
1414
+ }
1415
+ }
1416
+ },
1417
+ "0x28": {
1418
+ "name": "game_rule_values",
1419
+ "id": 40,
1420
+ "structure": {
1421
+ "rules": {
1422
+ "type": "prefixed_array",
1423
+ "subType": {
1424
+ "type": "object",
1425
+ "fields": {
1426
+ "name": {
1427
+ "type": "string"
1428
+ },
1429
+ "value": {
1430
+ "type": "string",
1431
+ "length": 32767
1432
+ }
1433
+ }
1434
+ }
1435
+ }
1436
+ }
1437
+ },
1438
+ "0x29": {
1439
+ "name": "game_test_highlight_pos",
1440
+ "id": 41,
1441
+ "structure": {
1442
+ "absolute_location": {
1443
+ "type": "position"
1444
+ },
1445
+ "relative_location": {
1446
+ "type": "position"
1447
+ }
1448
+ }
1449
+ },
1450
+ "0x2A": {
1451
+ "name": "mount_screen_open",
1452
+ "id": 42,
1453
+ "structure": {
1454
+ "window_id": {
1455
+ "type": "var_int"
1456
+ },
1457
+ "inventory_columns_count": {
1458
+ "type": "var_int"
1459
+ },
1460
+ "entity_id": {
1461
+ "type": "int"
1462
+ }
1463
+ }
1464
+ },
1465
+ "0x2B": {
1466
+ "name": "hurt_animation",
1467
+ "id": 43,
1468
+ "structure": {
1469
+ "entity_id": {
1470
+ "type": "var_int"
1471
+ },
1472
+ "yaw": {
1473
+ "type": "float"
1474
+ }
1475
+ }
1476
+ },
1477
+ "0x2C": {
1478
+ "name": "initialize_border",
1479
+ "id": 44,
1480
+ "structure": {
1481
+ "center_x": {
1482
+ "type": "double"
1483
+ },
1484
+ "center_z": {
1485
+ "type": "double"
1486
+ },
1487
+ "old_diameter": {
1488
+ "type": "double"
1489
+ },
1490
+ "new_diameter": {
1491
+ "type": "double"
1492
+ },
1493
+ "speed": {
1494
+ "type": "var_long"
1495
+ },
1496
+ "portal_teleport_boundary": {
1497
+ "type": "var_int"
1498
+ },
1499
+ "warning_blocks": {
1500
+ "type": "var_int"
1501
+ },
1502
+ "warning_time": {
1503
+ "type": "var_int"
1504
+ }
1505
+ }
1506
+ },
1507
+ "0x2D": {
1508
+ "name": "keep_alive",
1509
+ "id": 45,
1510
+ "structure": {
1511
+ "keep_alive_id": {
1512
+ "type": "long"
1513
+ }
1514
+ }
1515
+ },
1516
+ "0x2E": {
1517
+ "name": "level_chunk_with_light",
1518
+ "id": 46,
1519
+ "structure": {
1520
+ "chunk_x": {
1521
+ "type": "int"
1522
+ },
1523
+ "chunk_z": {
1524
+ "type": "int"
1525
+ },
1526
+ "heightmaps": {
1527
+ "type": "prefixed_array",
1528
+ "subType": {
1529
+ "type": "heightmap"
1530
+ }
1531
+ },
1532
+ "data": {
1533
+ "type": "prefixed_array",
1534
+ "subType": {
1535
+ "type": "byte"
1536
+ }
1537
+ },
1538
+ "block_entities": {
1539
+ "type": "prefixed_array",
1540
+ "subType": {
1541
+ "type": "object",
1542
+ "fields": {
1543
+ "packed_xz": {
1544
+ "type": "unsigned_byte"
1545
+ },
1546
+ "y": {
1547
+ "type": "short"
1548
+ },
1549
+ "type": {
1550
+ "type": "var_int"
1551
+ },
1552
+ "data": {
1553
+ "type": "nbt"
1554
+ }
1555
+ }
1556
+ }
1557
+ },
1558
+ "light": {
1559
+ "type": "not_implemented",
1560
+ "comment": "Light Data"
1561
+ }
1562
+ }
1563
+ },
1564
+ "0x2F": {
1565
+ "name": "level_event",
1566
+ "id": 47,
1567
+ "structure": {
1568
+ "event": {
1569
+ "type": "int"
1570
+ },
1571
+ "location": {
1572
+ "type": "position"
1573
+ },
1574
+ "data": {
1575
+ "type": "int"
1576
+ },
1577
+ "disable_relative_volume": {
1578
+ "type": "boolean"
1579
+ }
1580
+ }
1581
+ },
1582
+ "0x30": {
1583
+ "name": "level_particles",
1584
+ "id": 48,
1585
+ "structure": {
1586
+ "particle_id": {
1587
+ "type": "var_int"
1588
+ },
1589
+ "data": {
1590
+ "type": "varies"
1591
+ },
1592
+ "override_limiter": {
1593
+ "type": "boolean"
1594
+ },
1595
+ "always_visible": {
1596
+ "type": "boolean"
1597
+ },
1598
+ "x": {
1599
+ "type": "double"
1600
+ },
1601
+ "y": {
1602
+ "type": "double"
1603
+ },
1604
+ "z": {
1605
+ "type": "double"
1606
+ },
1607
+ "x_distance": {
1608
+ "type": "float"
1609
+ },
1610
+ "y_distance": {
1611
+ "type": "float"
1612
+ },
1613
+ "z_distance": {
1614
+ "type": "float"
1615
+ },
1616
+ "x_max_speed": {
1617
+ "type": "float"
1618
+ },
1619
+ "y_max_speed": {
1620
+ "type": "float"
1621
+ },
1622
+ "z_max_speed": {
1623
+ "type": "float"
1624
+ },
1625
+ "particle_count": {
1626
+ "type": "var_int"
1627
+ },
1628
+ "randomization_type": {
1629
+ "type": "enum",
1630
+ "subType": {
1631
+ "type": "var_int"
1632
+ }
1633
+ }
1634
+ }
1635
+ },
1636
+ "0x31": {
1637
+ "name": "light_update",
1638
+ "id": 49,
1639
+ "structure": {
1640
+ "chunk_x": {
1641
+ "type": "var_int"
1642
+ },
1643
+ "chunk_z": {
1644
+ "type": "var_int"
1645
+ },
1646
+ "data": {
1647
+ "type": "not_implemented",
1648
+ "comment": "Light Data"
1649
+ }
1650
+ }
1651
+ },
1652
+ "0x32": {
1653
+ "name": "login",
1654
+ "id": 50,
1655
+ "structure": {
1656
+ "entity_id": {
1657
+ "type": "int"
1658
+ },
1659
+ "is_hardcore": {
1660
+ "type": "boolean"
1661
+ },
1662
+ "dimension_names": {
1663
+ "type": "prefixed_array",
1664
+ "subType": {
1665
+ "type": "string"
1666
+ }
1667
+ },
1668
+ "max_players": {
1669
+ "type": "var_int"
1670
+ },
1671
+ "view_distance": {
1672
+ "type": "var_int"
1673
+ },
1674
+ "simulation_distance": {
1675
+ "type": "var_int"
1676
+ },
1677
+ "reduced_debug_info": {
1678
+ "type": "boolean"
1679
+ },
1680
+ "enable_respawn_screen": {
1681
+ "type": "boolean"
1682
+ },
1683
+ "do_limited_crafting": {
1684
+ "type": "boolean"
1685
+ },
1686
+ "dimension_type": {
1687
+ "type": "var_int"
1688
+ },
1689
+ "dimension_name": {
1690
+ "type": "string"
1691
+ },
1692
+ "hashed_seed": {
1693
+ "type": "long"
1694
+ },
1695
+ "game_mode": {
1696
+ "type": "enum",
1697
+ "subType": {
1698
+ "type": "var_int"
1699
+ }
1700
+ },
1701
+ "previous_game_mode": {
1702
+ "type": "prefixed_optional",
1703
+ "subType": {
1704
+ "type": "enum",
1705
+ "subType": {
1706
+ "type": "var_int"
1707
+ }
1708
+ }
1709
+ },
1710
+ "is_debug": {
1711
+ "type": "boolean"
1712
+ },
1713
+ "is_flat": {
1714
+ "type": "boolean"
1715
+ },
1716
+ "has_death_location": {
1717
+ "type": "boolean"
1718
+ },
1719
+ "death_dimension_name": {
1720
+ "type": "switch",
1721
+ "dependsOn": "has_death_location",
1722
+ "cases": [
1723
+ [
1724
+ true,
1725
+ {
1726
+ "type": "string"
1727
+ }
1728
+ ]
1729
+ ]
1730
+ },
1731
+ "death_location": {
1732
+ "type": "switch",
1733
+ "dependsOn": "has_death_location",
1734
+ "cases": [
1735
+ [
1736
+ true,
1737
+ {
1738
+ "type": "position"
1739
+ }
1740
+ ]
1741
+ ]
1742
+ },
1743
+ "portal_cooldown": {
1744
+ "type": "var_int"
1745
+ },
1746
+ "sea_level": {
1747
+ "type": "var_int"
1748
+ },
1749
+ "online_mode": {
1750
+ "type": "boolean"
1751
+ },
1752
+ "enforces_secure_chat": {
1753
+ "type": "boolean"
1754
+ }
1755
+ }
1756
+ },
1757
+ "0x33": {
1758
+ "name": "low_disk_space_warning",
1759
+ "id": 51,
1760
+ "structure": {}
1761
+ },
1762
+ "0x34": {
1763
+ "name": "map_item_data",
1764
+ "id": 52,
1765
+ "structure": {
1766
+ "map_id": {
1767
+ "type": "var_int"
1768
+ },
1769
+ "scale": {
1770
+ "type": "byte"
1771
+ },
1772
+ "locked": {
1773
+ "type": "boolean"
1774
+ },
1775
+ "color_patch": {
1776
+ "type": "unsigned_byte",
1777
+ "subType": {
1778
+ "type": "object",
1779
+ "fields": {
1780
+ "columns": {
1781
+ "type": "not_implemented",
1782
+ "comment": "Number of columns updated"
1783
+ },
1784
+ "rows": {
1785
+ "type": "prefixed_optional",
1786
+ "subType": {
1787
+ "type": "unsigned_byte"
1788
+ }
1789
+ },
1790
+ "x": {
1791
+ "type": "prefixed_optional",
1792
+ "subType": {
1793
+ "type": "unsigned_byte"
1794
+ }
1795
+ },
1796
+ "z": {
1797
+ "type": "prefixed_optional",
1798
+ "subType": {
1799
+ "type": "unsigned_byte"
1800
+ }
1801
+ },
1802
+ "data": {
1803
+ "type": "prefixed_optional",
1804
+ "subType": {
1805
+ "type": "prefixed_array",
1806
+ "subType": {
1807
+ "type": "unsigned_byte"
1808
+ }
1809
+ }
1810
+ }
1811
+ }
1812
+ }
1813
+ }
1814
+ }
1815
+ },
1816
+ "0x35": {
1817
+ "name": "merchant_offers",
1818
+ "id": 53,
1819
+ "structure": {
1820
+ "window_id": {
1821
+ "type": "var_int"
1822
+ },
1823
+ "trades": {
1824
+ "type": "prefixed_array",
1825
+ "subType": {
1826
+ "type": "object",
1827
+ "fields": {
1828
+ "input_item_1": {
1829
+ "type": "not_implemented",
1830
+ "comment": "Trade Item"
1831
+ },
1832
+ "output_item": {
1833
+ "type": "slot"
1834
+ },
1835
+ "input_item_2": {
1836
+ "type": "prefixed_optional",
1837
+ "subType": {
1838
+ "type": "not_implemented",
1839
+ "comment": "Trade Item"
1840
+ }
1841
+ },
1842
+ "trade_disabled": {
1843
+ "type": "boolean"
1844
+ },
1845
+ "number_of_trade_uses": {
1846
+ "type": "int"
1847
+ },
1848
+ "maximum_number_of_trade_uses": {
1849
+ "type": "int"
1850
+ },
1851
+ "xp": {
1852
+ "type": "int"
1853
+ },
1854
+ "special_price": {
1855
+ "type": "int"
1856
+ },
1857
+ "price_multiplier": {
1858
+ "type": "float"
1859
+ },
1860
+ "demand": {
1861
+ "type": "int"
1862
+ }
1863
+ }
1864
+ }
1865
+ },
1866
+ "villager_level": {
1867
+ "type": "var_int"
1868
+ },
1869
+ "experience": {
1870
+ "type": "var_int"
1871
+ },
1872
+ "is_regular_villager": {
1873
+ "type": "boolean"
1874
+ },
1875
+ "can_restock": {
1876
+ "type": "boolean"
1877
+ }
1878
+ }
1879
+ },
1880
+ "0x36": {
1881
+ "name": "move_entity_pos",
1882
+ "id": 54,
1883
+ "structure": {
1884
+ "entity_id": {
1885
+ "type": "var_int"
1886
+ },
1887
+ "properties": {
1888
+ "type": "var_int"
1889
+ },
1890
+ "step_count": {
1891
+ "type": "infer",
1892
+ "function": "shift_right",
1893
+ "args": [
1894
+ "properties",
1895
+ 1
1896
+ ]
1897
+ },
1898
+ "step": {
1899
+ "type": "switch",
1900
+ "dependsOn": "step_count",
1901
+ "cases": [
1902
+ [
1903
+ 0,
1904
+ {
1905
+ "type": "object",
1906
+ "fields": {
1907
+ "delta_x": {
1908
+ "type": "short"
1909
+ },
1910
+ "delta_y": {
1911
+ "type": "short"
1912
+ },
1913
+ "delta_z": {
1914
+ "type": "short"
1915
+ }
1916
+ }
1917
+ }
1918
+ ]
1919
+ ]
1920
+ },
1921
+ "steps": {
1922
+ "type": "switch",
1923
+ "dependsOn": "step_count",
1924
+ "cases": [
1925
+ [
1926
+ 0,
1927
+ {
1928
+ "type": "null"
1929
+ }
1930
+ ]
1931
+ ],
1932
+ "default": {
1933
+ "type": "prefixed_array",
1934
+ "subType": {
1935
+ "type": "object",
1936
+ "fields": {
1937
+ "tick_offset": {
1938
+ "type": "var_int"
1939
+ },
1940
+ "delta_x": {
1941
+ "type": "short"
1942
+ },
1943
+ "delta_y": {
1944
+ "type": "short"
1945
+ },
1946
+ "delta_z": {
1947
+ "type": "short"
1948
+ }
1949
+ }
1950
+ }
1951
+ }
1952
+ }
1953
+ }
1954
+ },
1955
+ "0x37": {
1956
+ "name": "move_entity_pos_rot",
1957
+ "id": 55,
1958
+ "structure": {
1959
+ "entity_id": {
1960
+ "type": "var_int"
1961
+ },
1962
+ "properties": {
1963
+ "type": "var_int"
1964
+ },
1965
+ "step_count": {
1966
+ "type": "infer",
1967
+ "function": "shift_right",
1968
+ "args": [
1969
+ "properties",
1970
+ 1
1971
+ ]
1972
+ },
1973
+ "step": {
1974
+ "type": "switch",
1975
+ "dependsOn": "step_count",
1976
+ "cases": [
1977
+ [
1978
+ 0,
1979
+ {
1980
+ "type": "object",
1981
+ "fields": {
1982
+ "delta_x": {
1983
+ "type": "short"
1984
+ },
1985
+ "delta_y": {
1986
+ "type": "short"
1987
+ },
1988
+ "delta_z": {
1989
+ "type": "short"
1990
+ }
1991
+ }
1992
+ }
1993
+ ]
1994
+ ]
1995
+ },
1996
+ "steps": {
1997
+ "type": "switch",
1998
+ "dependsOn": "step_count",
1999
+ "cases": [
2000
+ [
2001
+ 0,
2002
+ {
2003
+ "type": "null"
2004
+ }
2005
+ ]
2006
+ ],
2007
+ "default": {
2008
+ "type": "prefixed_array",
2009
+ "subType": {
2010
+ "type": "object",
2011
+ "fields": {
2012
+ "tick_offset": {
2013
+ "type": "var_int"
2014
+ },
2015
+ "delta_x": {
2016
+ "type": "short"
2017
+ },
2018
+ "delta_y": {
2019
+ "type": "short"
2020
+ },
2021
+ "delta_z": {
2022
+ "type": "short"
2023
+ }
2024
+ }
2025
+ }
2026
+ }
2027
+ },
2028
+ "yaw": {
2029
+ "type": "angle"
2030
+ },
2031
+ "pitch": {
2032
+ "type": "angle"
2033
+ }
2034
+ }
2035
+ },
2036
+ "0x38": {
2037
+ "name": "move_minecart_along_track",
2038
+ "id": 56,
2039
+ "structure": {
2040
+ "entity_id": {
2041
+ "type": "var_int"
2042
+ },
2043
+ "steps": {
2044
+ "type": "prefixed_array",
2045
+ "subType": {
2046
+ "type": "object",
2047
+ "fields": {
2048
+ "x": {
2049
+ "type": "double"
2050
+ },
2051
+ "y": {
2052
+ "type": "double"
2053
+ },
2054
+ "z": {
2055
+ "type": "double"
2056
+ },
2057
+ "velocity_x": {
2058
+ "type": "double"
2059
+ },
2060
+ "velocity_y": {
2061
+ "type": "double"
2062
+ },
2063
+ "velocity_z": {
2064
+ "type": "double"
2065
+ },
2066
+ "yaw": {
2067
+ "type": "angle"
2068
+ },
2069
+ "pitch": {
2070
+ "type": "angle"
2071
+ },
2072
+ "weight": {
2073
+ "type": "float"
2074
+ }
2075
+ }
2076
+ }
2077
+ }
2078
+ }
2079
+ },
2080
+ "0x39": {
2081
+ "name": "move_entity_rot",
2082
+ "id": 57,
2083
+ "structure": {
2084
+ "entity_id": {
2085
+ "type": "var_int"
2086
+ },
2087
+ "on_ground": {
2088
+ "type": "boolean"
2089
+ },
2090
+ "yaw": {
2091
+ "type": "angle"
2092
+ },
2093
+ "pitch": {
2094
+ "type": "angle"
2095
+ }
2096
+ }
2097
+ },
2098
+ "0x3A": {
2099
+ "name": "move_vehicle",
2100
+ "id": 58,
2101
+ "structure": {
2102
+ "x": {
2103
+ "type": "double"
2104
+ },
2105
+ "y": {
2106
+ "type": "double"
2107
+ },
2108
+ "z": {
2109
+ "type": "double"
2110
+ },
2111
+ "yaw": {
2112
+ "type": "float"
2113
+ },
2114
+ "pitch": {
2115
+ "type": "float"
2116
+ }
2117
+ }
2118
+ },
2119
+ "0x3B": {
2120
+ "name": "open_book",
2121
+ "id": 59,
2122
+ "structure": {
2123
+ "hand": {
2124
+ "type": "enum",
2125
+ "subType": {
2126
+ "type": "var_int"
2127
+ }
2128
+ }
2129
+ }
2130
+ },
2131
+ "0x3C": {
2132
+ "name": "open_screen",
2133
+ "id": 60,
2134
+ "structure": {
2135
+ "window_id": {
2136
+ "type": "var_int"
2137
+ },
2138
+ "window_type": {
2139
+ "type": "var_int"
2140
+ },
2141
+ "window_title": {
2142
+ "type": "nbt"
2143
+ }
2144
+ }
2145
+ },
2146
+ "0x3D": {
2147
+ "name": "open_sign_editor",
2148
+ "id": 61,
2149
+ "structure": {
2150
+ "location": {
2151
+ "type": "position"
2152
+ },
2153
+ "text_slot": {
2154
+ "type": "enum",
2155
+ "subType": {
2156
+ "type": "var_int"
2157
+ }
2158
+ }
2159
+ }
2160
+ },
2161
+ "0x3E": {
2162
+ "name": "ping",
2163
+ "id": 62,
2164
+ "structure": {
2165
+ "id": {
2166
+ "type": "int"
2167
+ }
2168
+ }
2169
+ },
2170
+ "0x3F": {
2171
+ "name": "pong_response",
2172
+ "id": 63,
2173
+ "structure": {}
2174
+ },
2175
+ "0x40": {
2176
+ "name": "place_ghost_recipe",
2177
+ "id": 64,
2178
+ "structure": {
2179
+ "window_id": {
2180
+ "type": "var_int"
2181
+ },
2182
+ "recipe_display": {
2183
+ "type": "not_implemented",
2184
+ "comment": "Recipe Display"
2185
+ }
2186
+ }
2187
+ },
2188
+ "0x41": {
2189
+ "name": "player_abilities",
2190
+ "id": 65,
2191
+ "structure": {
2192
+ "flags": {
2193
+ "type": "byte"
2194
+ },
2195
+ "flying_speed": {
2196
+ "type": "float"
2197
+ },
2198
+ "field_of_view_modifier": {
2199
+ "type": "float"
2200
+ }
2201
+ }
2202
+ },
2203
+ "0x42": {
2204
+ "name": "player_chat",
2205
+ "id": 66,
2206
+ "structure": {
2207
+ "global_index": {
2208
+ "type": "var_int"
2209
+ },
2210
+ "sender": {
2211
+ "type": "uuid"
2212
+ },
2213
+ "index": {
2214
+ "type": "var_int"
2215
+ },
2216
+ "message_signature_bytes": {
2217
+ "type": "prefixed_optional",
2218
+ "subType": {
2219
+ "type": "array",
2220
+ "length": 256,
2221
+ "subType": {
2222
+ "type": "byte"
2223
+ }
2224
+ }
2225
+ },
2226
+ "message": {
2227
+ "type": "string",
2228
+ "length": 256
2229
+ },
2230
+ "timestamp": {
2231
+ "type": "long"
2232
+ },
2233
+ "salt": {
2234
+ "type": "long"
2235
+ },
2236
+ "message_id": {
2237
+ "type": "var_int"
2238
+ },
2239
+ "signature": {
2240
+ "type": "prefixed_optional",
2241
+ "subType": {
2242
+ "type": "array",
2243
+ "length": 256,
2244
+ "subType": {
2245
+ "type": "byte"
2246
+ }
2247
+ }
2248
+ },
2249
+ "unsigned_content": {
2250
+ "type": "prefixed_optional",
2251
+ "subType": {
2252
+ "type": "nbt"
2253
+ }
2254
+ },
2255
+ "filter_type": {
2256
+ "type": "enum",
2257
+ "subType": {
2258
+ "type": "var_int"
2259
+ }
2260
+ },
2261
+ "filter_type_bits": {
2262
+ "type": "prefixed_optional",
2263
+ "subType": {
2264
+ "type": "bitset"
2265
+ }
2266
+ },
2267
+ "chat_type": {
2268
+ "type": "id_or_x",
2269
+ "subType": {
2270
+ "type": "chat_type"
2271
+ }
2272
+ },
2273
+ "sender_name": {
2274
+ "type": "nbt"
2275
+ },
2276
+ "target_name": {
2277
+ "type": "prefixed_optional",
2278
+ "subType": {
2279
+ "type": "nbt"
2280
+ }
2281
+ }
2282
+ }
2283
+ },
2284
+ "0x43": {
2285
+ "name": "player_combat_end",
2286
+ "id": 67,
2287
+ "structure": {
2288
+ "duration": {
2289
+ "type": "var_int"
2290
+ }
2291
+ }
2292
+ },
2293
+ "0x44": {
2294
+ "name": "player_combat_enter",
2295
+ "id": 68,
2296
+ "structure": {}
2297
+ },
2298
+ "0x45": {
2299
+ "name": "player_combat_kill",
2300
+ "id": 69,
2301
+ "structure": {
2302
+ "player_id": {
2303
+ "type": "var_int"
2304
+ },
2305
+ "message": {
2306
+ "type": "nbt"
2307
+ }
2308
+ }
2309
+ },
2310
+ "0x46": {
2311
+ "name": "player_info_remove",
2312
+ "id": 70,
2313
+ "structure": {
2314
+ "uui_ds": {
2315
+ "type": "prefixed_array",
2316
+ "subType": {
2317
+ "type": "uuid"
2318
+ }
2319
+ }
2320
+ }
2321
+ },
2322
+ "0x47": {
2323
+ "name": "player_info_update",
2324
+ "id": 71,
2325
+ "structure": {
2326
+ "actions": {
2327
+ "type": "unsigned_byte"
2328
+ },
2329
+ "players": {
2330
+ "type": "prefixed_array",
2331
+ "subType": {
2332
+ "type": "object",
2333
+ "fields": {
2334
+ "uuid": {
2335
+ "type": "uuid"
2336
+ },
2337
+ "player_actions": {
2338
+ "type": "not_implemented",
2339
+ "comment": "Array of Player Actions"
2340
+ }
2341
+ }
2342
+ }
2343
+ }
2344
+ }
2345
+ },
2346
+ "0x48": {
2347
+ "name": "player_look_at",
2348
+ "id": 72,
2349
+ "structure": {
2350
+ "feet_eyes": {
2351
+ "type": "enum",
2352
+ "subType": {
2353
+ "type": "var_int"
2354
+ }
2355
+ },
2356
+ "target_x": {
2357
+ "type": "double"
2358
+ },
2359
+ "target_y": {
2360
+ "type": "double"
2361
+ },
2362
+ "target_z": {
2363
+ "type": "double"
2364
+ },
2365
+ "is_entity": {
2366
+ "type": "boolean"
2367
+ },
2368
+ "entity_id": {
2369
+ "type": "prefixed_optional",
2370
+ "subType": {
2371
+ "type": "var_int"
2372
+ }
2373
+ },
2374
+ "entity_feet_eyes": {
2375
+ "type": "prefixed_optional",
2376
+ "subType": {
2377
+ "type": "enum",
2378
+ "subType": {
2379
+ "type": "var_int"
2380
+ }
2381
+ }
2382
+ }
2383
+ }
2384
+ },
2385
+ "0x49": {
2386
+ "name": "player_position",
2387
+ "id": 73,
2388
+ "structure": {
2389
+ "teleport_id": {
2390
+ "type": "var_int"
2391
+ },
2392
+ "x": {
2393
+ "type": "double"
2394
+ },
2395
+ "y": {
2396
+ "type": "double"
2397
+ },
2398
+ "z": {
2399
+ "type": "double"
2400
+ },
2401
+ "velocity_x": {
2402
+ "type": "double"
2403
+ },
2404
+ "velocity_y": {
2405
+ "type": "double"
2406
+ },
2407
+ "velocity_z": {
2408
+ "type": "double"
2409
+ },
2410
+ "yaw": {
2411
+ "type": "float"
2412
+ },
2413
+ "pitch": {
2414
+ "type": "float"
2415
+ },
2416
+ "flags": {
2417
+ "type": "teleport_flag"
2418
+ }
2419
+ }
2420
+ },
2421
+ "0x4A": {
2422
+ "name": "player_rotation",
2423
+ "id": 74,
2424
+ "structure": {
2425
+ "yaw": {
2426
+ "type": "float"
2427
+ },
2428
+ "relative_yaw": {
2429
+ "type": "boolean"
2430
+ },
2431
+ "pitch": {
2432
+ "type": "float"
2433
+ },
2434
+ "relative_pitch": {
2435
+ "type": "boolean"
2436
+ }
2437
+ }
2438
+ },
2439
+ "0x4B": {
2440
+ "name": "recipe_book_add",
2441
+ "id": 75,
2442
+ "structure": {
2443
+ "recipes": {
2444
+ "type": "prefixed_array",
2445
+ "subType": {
2446
+ "type": "object",
2447
+ "fields": {
2448
+ "recipe_id": {
2449
+ "type": "var_int"
2450
+ },
2451
+ "display": {
2452
+ "type": "not_implemented",
2453
+ "comment": "Recipe Display"
2454
+ },
2455
+ "group_id": {
2456
+ "type": "var_int"
2457
+ },
2458
+ "category_id": {
2459
+ "type": "var_int"
2460
+ },
2461
+ "ingredients": {
2462
+ "type": "prefixed_optional",
2463
+ "subType": {
2464
+ "type": "prefixed_array",
2465
+ "subType": {
2466
+ "type": "not_implemented",
2467
+ "comment": "ID Set"
2468
+ }
2469
+ }
2470
+ },
2471
+ "flags": {
2472
+ "type": "byte"
2473
+ }
2474
+ }
2475
+ }
2476
+ },
2477
+ "replace": {
2478
+ "type": "boolean"
2479
+ }
2480
+ }
2481
+ },
2482
+ "0x4C": {
2483
+ "name": "recipe_book_remove",
2484
+ "id": 76,
2485
+ "structure": {
2486
+ "recipes": {
2487
+ "type": "prefixed_array",
2488
+ "subType": {
2489
+ "type": "var_int"
2490
+ }
2491
+ }
2492
+ }
2493
+ },
2494
+ "0x4D": {
2495
+ "name": "recipe_book_settings",
2496
+ "id": 77,
2497
+ "structure": {
2498
+ "crafting_recipe_book_open": {
2499
+ "type": "boolean"
2500
+ },
2501
+ "crafting_recipe_book_filter_active": {
2502
+ "type": "boolean"
2503
+ },
2504
+ "smelting_recipe_book_open": {
2505
+ "type": "boolean"
2506
+ },
2507
+ "smelting_recipe_book_filter_active": {
2508
+ "type": "boolean"
2509
+ },
2510
+ "blast_furnace_recipe_book_open": {
2511
+ "type": "boolean"
2512
+ },
2513
+ "blast_furnace_recipe_book_filter_active": {
2514
+ "type": "boolean"
2515
+ },
2516
+ "smoker_recipe_book_open": {
2517
+ "type": "boolean"
2518
+ },
2519
+ "smoker_recipe_book_filter_active": {
2520
+ "type": "boolean"
2521
+ }
2522
+ }
2523
+ },
2524
+ "0x4E": {
2525
+ "name": "remove_entities",
2526
+ "id": 78,
2527
+ "structure": {
2528
+ "entity_ids": {
2529
+ "type": "prefixed_array",
2530
+ "subType": {
2531
+ "type": "var_int"
2532
+ }
2533
+ }
2534
+ }
2535
+ },
2536
+ "0x4F": {
2537
+ "name": "remove_mob_effect",
2538
+ "id": 79,
2539
+ "structure": {
2540
+ "entity_id": {
2541
+ "type": "var_int"
2542
+ },
2543
+ "effect_id": {
2544
+ "type": "var_int"
2545
+ }
2546
+ }
2547
+ },
2548
+ "0x50": {
2549
+ "name": "reset_score",
2550
+ "id": 80,
2551
+ "structure": {
2552
+ "entity_name": {
2553
+ "type": "string",
2554
+ "length": 32767
2555
+ },
2556
+ "objective_name": {
2557
+ "type": "prefixed_optional",
2558
+ "subType": {
2559
+ "type": "string",
2560
+ "length": 32767
2561
+ }
2562
+ }
2563
+ }
2564
+ },
2565
+ "0x51": {
2566
+ "name": "resource_pack_pop",
2567
+ "id": 81,
2568
+ "structure": {
2569
+ "uuid": {
2570
+ "type": "prefixed_optional",
2571
+ "subType": {
2572
+ "type": "uuid"
2573
+ }
2574
+ }
2575
+ }
2576
+ },
2577
+ "0x52": {
2578
+ "name": "resource_pack_push",
2579
+ "id": 82,
2580
+ "structure": {
2581
+ "uuid": {
2582
+ "type": "uuid"
2583
+ },
2584
+ "url": {
2585
+ "type": "string",
2586
+ "length": 32767
2587
+ },
2588
+ "hash": {
2589
+ "type": "string",
2590
+ "length": 40
2591
+ },
2592
+ "forced": {
2593
+ "type": "boolean"
2594
+ },
2595
+ "prompt_message": {
2596
+ "type": "prefixed_optional",
2597
+ "subType": {
2598
+ "type": "nbt"
2599
+ }
2600
+ }
2601
+ }
2602
+ },
2603
+ "0x53": {
2604
+ "name": "post_effects",
2605
+ "id": 83,
2606
+ "structure": {
2607
+ "post_effects": {
2608
+ "type": "prefixed_array",
2609
+ "subType": {
2610
+ "type": "string"
2611
+ }
2612
+ }
2613
+ }
2614
+ },
2615
+ "0x54": {
2616
+ "name": "respawn",
2617
+ "id": 84,
2618
+ "structure": {
2619
+ "dimension_type": {
2620
+ "type": "var_int"
2621
+ },
2622
+ "dimension_name": {
2623
+ "type": "string"
2624
+ },
2625
+ "hashed_seed": {
2626
+ "type": "long"
2627
+ },
2628
+ "game_mode": {
2629
+ "type": "enum",
2630
+ "subType": {
2631
+ "type": "var_int"
2632
+ }
2633
+ },
2634
+ "previous_game_mode": {
2635
+ "type": "enum",
2636
+ "subType": {
2637
+ "type": "var_int"
2638
+ }
2639
+ },
2640
+ "is_debug": {
2641
+ "type": "boolean"
2642
+ },
2643
+ "is_flat": {
2644
+ "type": "boolean"
2645
+ },
2646
+ "has_death_location": {
2647
+ "type": "boolean"
2648
+ },
2649
+ "death_dimension_name": {
2650
+ "type": "prefixed_optional",
2651
+ "subType": {
2652
+ "type": "string"
2653
+ }
2654
+ },
2655
+ "death_location": {
2656
+ "type": "prefixed_optional",
2657
+ "subType": {
2658
+ "type": "position"
2659
+ }
2660
+ },
2661
+ "portal_cooldown": {
2662
+ "type": "var_int"
2663
+ },
2664
+ "sea_level": {
2665
+ "type": "var_int"
2666
+ },
2667
+ "data_kept": {
2668
+ "type": "byte"
2669
+ }
2670
+ }
2671
+ },
2672
+ "0x55": {
2673
+ "name": "rotate_head",
2674
+ "id": 85,
2675
+ "structure": {
2676
+ "entity_id": {
2677
+ "type": "var_int"
2678
+ },
2679
+ "head_yaw": {
2680
+ "type": "angle"
2681
+ }
2682
+ }
2683
+ },
2684
+ "0x56": {
2685
+ "name": "section_blocks_update",
2686
+ "id": 86,
2687
+ "structure": {
2688
+ "chunk_section_position": {
2689
+ "type": "long"
2690
+ },
2691
+ "blocks": {
2692
+ "type": "prefixed_array",
2693
+ "subType": {
2694
+ "type": "var_long"
2695
+ }
2696
+ }
2697
+ }
2698
+ },
2699
+ "0x57": {
2700
+ "name": "select_advancements_tab",
2701
+ "id": 87,
2702
+ "structure": {
2703
+ "identifier": {
2704
+ "type": "prefixed_optional",
2705
+ "subType": {
2706
+ "type": "string"
2707
+ }
2708
+ }
2709
+ }
2710
+ },
2711
+ "0x58": {
2712
+ "name": "server_data",
2713
+ "id": 88,
2714
+ "structure": {
2715
+ "motd": {
2716
+ "type": "nbt"
2717
+ },
2718
+ "icon": {
2719
+ "type": "prefixed_optional",
2720
+ "subType": {
2721
+ "type": "prefixed_array",
2722
+ "subType": {
2723
+ "type": "byte"
2724
+ }
2725
+ }
2726
+ }
2727
+ }
2728
+ },
2729
+ "0x59": {
2730
+ "name": "set_action_bar_text",
2731
+ "id": 89,
2732
+ "structure": {
2733
+ "action_bar_text": {
2734
+ "type": "nbt"
2735
+ }
2736
+ }
2737
+ },
2738
+ "0x5A": {
2739
+ "name": "set_border_center",
2740
+ "id": 90,
2741
+ "structure": {
2742
+ "x": {
2743
+ "type": "double"
2744
+ },
2745
+ "z": {
2746
+ "type": "double"
2747
+ }
2748
+ }
2749
+ },
2750
+ "0x5B": {
2751
+ "name": "set_border_lerp_size",
2752
+ "id": 91,
2753
+ "structure": {
2754
+ "old_diameter": {
2755
+ "type": "double"
2756
+ },
2757
+ "new_diameter": {
2758
+ "type": "double"
2759
+ },
2760
+ "speed": {
2761
+ "type": "var_long"
2762
+ }
2763
+ }
2764
+ },
2765
+ "0x5C": {
2766
+ "name": "set_border_size",
2767
+ "id": 92,
2768
+ "structure": {
2769
+ "diameter": {
2770
+ "type": "double"
2771
+ }
2772
+ }
2773
+ },
2774
+ "0x5D": {
2775
+ "name": "set_border_warning_delay",
2776
+ "id": 93,
2777
+ "structure": {
2778
+ "warning_time": {
2779
+ "type": "var_int"
2780
+ }
2781
+ }
2782
+ },
2783
+ "0x5E": {
2784
+ "name": "set_border_warning_distance",
2785
+ "id": 94,
2786
+ "structure": {
2787
+ "warning_blocks": {
2788
+ "type": "var_int"
2789
+ }
2790
+ }
2791
+ },
2792
+ "0x5F": {
2793
+ "name": "set_camera",
2794
+ "id": 95,
2795
+ "structure": {
2796
+ "camera_id": {
2797
+ "type": "var_int"
2798
+ }
2799
+ }
2800
+ },
2801
+ "0x60": {
2802
+ "name": "set_chunk_cache_center",
2803
+ "id": 96,
2804
+ "structure": {
2805
+ "chunk_x": {
2806
+ "type": "var_int"
2807
+ },
2808
+ "chunk_z": {
2809
+ "type": "var_int"
2810
+ }
2811
+ }
2812
+ },
2813
+ "0x61": {
2814
+ "name": "set_chunk_cache_radius",
2815
+ "id": 97,
2816
+ "structure": {
2817
+ "view_distance": {
2818
+ "type": "var_int"
2819
+ }
2820
+ }
2821
+ },
2822
+ "0x62": {
2823
+ "name": "set_cursor_item",
2824
+ "id": 98,
2825
+ "structure": {
2826
+ "carried_item": {
2827
+ "type": "slot"
2828
+ }
2829
+ }
2830
+ },
2831
+ "0x63": {
2832
+ "name": "set_default_spawn_position",
2833
+ "id": 99,
2834
+ "structure": {
2835
+ "dimension_name": {
2836
+ "type": "string"
2837
+ },
2838
+ "location": {
2839
+ "type": "position"
2840
+ },
2841
+ "yaw": {
2842
+ "type": "float"
2843
+ },
2844
+ "pitch": {
2845
+ "type": "float"
2846
+ }
2847
+ }
2848
+ },
2849
+ "0x64": {
2850
+ "name": "set_display_objective",
2851
+ "id": 100,
2852
+ "structure": {
2853
+ "position": {
2854
+ "type": "var_int"
2855
+ },
2856
+ "score_name": {
2857
+ "type": "string",
2858
+ "length": 32767
2859
+ }
2860
+ }
2861
+ },
2862
+ "0x65": {
2863
+ "name": "set_entity_data",
2864
+ "id": 101,
2865
+ "structure": {
2866
+ "entity_id": {
2867
+ "type": "var_int"
2868
+ },
2869
+ "metadata": {
2870
+ "type": "not_implemented",
2871
+ "comment": "Entity Metadata"
2872
+ }
2873
+ }
2874
+ },
2875
+ "0x66": {
2876
+ "name": "set_entity_link",
2877
+ "id": 102,
2878
+ "structure": {
2879
+ "attached_entity_id": {
2880
+ "type": "int"
2881
+ },
2882
+ "holding_entity_id": {
2883
+ "type": "int"
2884
+ }
2885
+ }
2886
+ },
2887
+ "0x67": {
2888
+ "name": "set_entity_motion",
2889
+ "id": 103,
2890
+ "structure": {
2891
+ "entity_id": {
2892
+ "type": "var_int"
2893
+ },
2894
+ "velocity": {
2895
+ "type": "lpvec3"
2896
+ }
2897
+ }
2898
+ },
2899
+ "0x68": {
2900
+ "name": "set_equipment",
2901
+ "id": 104,
2902
+ "structure": {
2903
+ "entity_id": {
2904
+ "type": "var_int"
2905
+ },
2906
+ "equipment": {
2907
+ "type": "not_implemented",
2908
+ "subType": {
2909
+ "type": "object",
2910
+ "fields": {
2911
+ "slot": {
2912
+ "type": "enum",
2913
+ "subType": {
2914
+ "type": "byte"
2915
+ }
2916
+ },
2917
+ "item": {
2918
+ "type": "slot"
2919
+ }
2920
+ }
2921
+ }
2922
+ }
2923
+ }
2924
+ },
2925
+ "0x69": {
2926
+ "name": "set_experience",
2927
+ "id": 105,
2928
+ "structure": {
2929
+ "experience_bar": {
2930
+ "type": "float"
2931
+ },
2932
+ "level": {
2933
+ "type": "var_int"
2934
+ },
2935
+ "total_experience": {
2936
+ "type": "var_int"
2937
+ }
2938
+ }
2939
+ },
2940
+ "0x6A": {
2941
+ "name": "set_health",
2942
+ "id": 106,
2943
+ "structure": {
2944
+ "health": {
2945
+ "type": "float"
2946
+ },
2947
+ "food": {
2948
+ "type": "var_int"
2949
+ },
2950
+ "food_saturation": {
2951
+ "type": "float"
2952
+ }
2953
+ }
2954
+ },
2955
+ "0x6B": {
2956
+ "name": "set_held_slot",
2957
+ "id": 107,
2958
+ "structure": {
2959
+ "slot": {
2960
+ "type": "var_int"
2961
+ }
2962
+ }
2963
+ },
2964
+ "0x6D": {
2965
+ "name": "set_passengers",
2966
+ "id": 109,
2967
+ "structure": {
2968
+ "entity_id": {
2969
+ "type": "var_int"
2970
+ },
2971
+ "passengers": {
2972
+ "type": "prefixed_array",
2973
+ "subType": {
2974
+ "type": "var_int"
2975
+ }
2976
+ }
2977
+ }
2978
+ },
2979
+ "0x6E": {
2980
+ "name": "set_player_inventory",
2981
+ "id": 110,
2982
+ "structure": {
2983
+ "slot": {
2984
+ "type": "var_int"
2985
+ },
2986
+ "slot_data": {
2987
+ "type": "slot"
2988
+ }
2989
+ }
2990
+ },
2991
+ "0x6F": {
2992
+ "name": "set_player_team",
2993
+ "id": 111,
2994
+ "structure": {
2995
+ "team_name": {
2996
+ "type": "string",
2997
+ "length": 32767
2998
+ },
2999
+ "method": {
3000
+ "type": "byte"
3001
+ },
3002
+ "0_create_team": {
3003
+ "type": "nbt",
3004
+ "subType": {
3005
+ "type": "object",
3006
+ "fields": {
3007
+ "team_display_name": {
3008
+ "type": "not_implemented",
3009
+ "comment": ""
3010
+ },
3011
+ "team_prefix": {
3012
+ "type": "nbt"
3013
+ },
3014
+ "team_suffix": {
3015
+ "type": "nbt"
3016
+ },
3017
+ "name_tag_visibility": {
3018
+ "type": "enum",
3019
+ "subType": {
3020
+ "type": "var_int"
3021
+ }
3022
+ },
3023
+ "collision_rule": {
3024
+ "type": "enum",
3025
+ "subType": {
3026
+ "type": "var_int"
3027
+ }
3028
+ },
3029
+ "team_color": {
3030
+ "type": "enum",
3031
+ "subType": {
3032
+ "type": "var_int"
3033
+ }
3034
+ },
3035
+ "friendly_flags": {
3036
+ "type": "byte"
3037
+ },
3038
+ "entities": {
3039
+ "type": "prefixed_array",
3040
+ "subType": {
3041
+ "type": "string",
3042
+ "length": 32767
3043
+ }
3044
+ }
3045
+ }
3046
+ }
3047
+ },
3048
+ "no_fields": {
3049
+ "type": "not_implemented",
3050
+ "comment": "no fields"
3051
+ },
3052
+ "2_update_team_info": {
3053
+ "type": "nbt",
3054
+ "subType": {
3055
+ "type": "object",
3056
+ "fields": {
3057
+ "team_display_name": {
3058
+ "type": "not_implemented",
3059
+ "comment": ""
3060
+ },
3061
+ "team_prefix": {
3062
+ "type": "nbt"
3063
+ },
3064
+ "team_suffix": {
3065
+ "type": "nbt"
3066
+ },
3067
+ "name_tag_visibility": {
3068
+ "type": "enum",
3069
+ "subType": {
3070
+ "type": "var_int"
3071
+ }
3072
+ },
3073
+ "collision_rule": {
3074
+ "type": "enum",
3075
+ "subType": {
3076
+ "type": "var_int"
3077
+ }
3078
+ },
3079
+ "team_color": {
3080
+ "type": "enum",
3081
+ "subType": {
3082
+ "type": "var_int"
3083
+ }
3084
+ },
3085
+ "friendly_flags": {
3086
+ "type": "byte"
3087
+ }
3088
+ }
3089
+ }
3090
+ },
3091
+ "entities": {
3092
+ "type": "prefixed_array",
3093
+ "subType": {
3094
+ "type": "string",
3095
+ "length": 32767
3096
+ }
3097
+ }
3098
+ }
3099
+ },
3100
+ "0x71": {
3101
+ "name": "set_simulation_distance",
3102
+ "id": 113,
3103
+ "structure": {
3104
+ "simulation_distance": {
3105
+ "type": "var_int"
3106
+ }
3107
+ }
3108
+ },
3109
+ "0x72": {
3110
+ "name": "set_subtitle_text",
3111
+ "id": 114,
3112
+ "structure": {
3113
+ "subtitle_text": {
3114
+ "type": "nbt"
3115
+ }
3116
+ }
3117
+ },
3118
+ "0x73": {
3119
+ "name": "set_time",
3120
+ "id": 115,
3121
+ "structure": {
3122
+ "world_age": {
3123
+ "type": "long"
3124
+ },
3125
+ "clocks": {
3126
+ "type": "prefixed_array",
3127
+ "subType": {
3128
+ "type": "object",
3129
+ "fields": {
3130
+ "clock_id": {
3131
+ "type": "var_int"
3132
+ },
3133
+ "time": {
3134
+ "type": "var_long"
3135
+ },
3136
+ "fractional_time": {
3137
+ "type": "float"
3138
+ },
3139
+ "rate": {
3140
+ "type": "float"
3141
+ }
3142
+ }
3143
+ }
3144
+ }
3145
+ }
3146
+ },
3147
+ "0x74": {
3148
+ "name": "set_title_text",
3149
+ "id": 116,
3150
+ "structure": {
3151
+ "title_text": {
3152
+ "type": "nbt"
3153
+ }
3154
+ }
3155
+ },
3156
+ "0x75": {
3157
+ "name": "set_titles_animation",
3158
+ "id": 117,
3159
+ "structure": {
3160
+ "fade_in": {
3161
+ "type": "int"
3162
+ },
3163
+ "stay": {
3164
+ "type": "int"
3165
+ },
3166
+ "fade_out": {
3167
+ "type": "int"
3168
+ }
3169
+ }
3170
+ },
3171
+ "0x76": {
3172
+ "name": "sound_entity",
3173
+ "id": 118,
3174
+ "structure": {
3175
+ "sound_event": {
3176
+ "type": "id_or_x",
3177
+ "subType": {
3178
+ "type": "not_implemented",
3179
+ "comment": "Sound Event"
3180
+ }
3181
+ },
3182
+ "sound_category": {
3183
+ "type": "enum",
3184
+ "subType": {
3185
+ "type": "var_int"
3186
+ }
3187
+ },
3188
+ "entity_id": {
3189
+ "type": "var_int"
3190
+ },
3191
+ "volume": {
3192
+ "type": "float"
3193
+ },
3194
+ "pitch": {
3195
+ "type": "float"
3196
+ },
3197
+ "seed": {
3198
+ "type": "long"
3199
+ }
3200
+ }
3201
+ },
3202
+ "0x77": {
3203
+ "name": "sound",
3204
+ "id": 119,
3205
+ "structure": {
3206
+ "sound_event": {
3207
+ "type": "id_or_x",
3208
+ "subType": {
3209
+ "type": "not_implemented",
3210
+ "comment": "Sound Event"
3211
+ }
3212
+ },
3213
+ "sound_category": {
3214
+ "type": "enum",
3215
+ "subType": {
3216
+ "type": "var_int"
3217
+ }
3218
+ },
3219
+ "effect_position_x": {
3220
+ "type": "int"
3221
+ },
3222
+ "effect_position_y": {
3223
+ "type": "int"
3224
+ },
3225
+ "effect_position_z": {
3226
+ "type": "int"
3227
+ },
3228
+ "volume": {
3229
+ "type": "float"
3230
+ },
3231
+ "pitch": {
3232
+ "type": "float"
3233
+ },
3234
+ "seed": {
3235
+ "type": "long"
3236
+ }
3237
+ }
3238
+ },
3239
+ "0x78": {
3240
+ "name": "start_configuration",
3241
+ "id": 120,
3242
+ "structure": {}
3243
+ },
3244
+ "0x79": {
3245
+ "name": "stop_sound",
3246
+ "id": 121,
3247
+ "structure": {
3248
+ "flags": {
3249
+ "type": "byte"
3250
+ },
3251
+ "source": {
3252
+ "type": "prefixed_optional",
3253
+ "subType": {
3254
+ "type": "enum",
3255
+ "subType": {
3256
+ "type": "var_int"
3257
+ }
3258
+ }
3259
+ },
3260
+ "sound": {
3261
+ "type": "prefixed_optional",
3262
+ "subType": {
3263
+ "type": "string"
3264
+ }
3265
+ }
3266
+ }
3267
+ },
3268
+ "0x7A": {
3269
+ "name": "store_cookie",
3270
+ "id": 122,
3271
+ "structure": {
3272
+ "key": {
3273
+ "type": "string"
3274
+ },
3275
+ "payload": {
3276
+ "type": "prefixed_array",
3277
+ "length": 5120,
3278
+ "subType": {
3279
+ "type": "byte"
3280
+ }
3281
+ }
3282
+ }
3283
+ },
3284
+ "0x7B": {
3285
+ "name": "swing_animation",
3286
+ "id": 123,
3287
+ "structure": {
3288
+ "entity_id": {
3289
+ "type": "var_int"
3290
+ },
3291
+ "hand": {
3292
+ "type": "enum",
3293
+ "subType": {
3294
+ "type": "var_int"
3295
+ }
3296
+ },
3297
+ "animation_type": {
3298
+ "type": "enum",
3299
+ "subType": {
3300
+ "type": "var_int"
3301
+ }
3302
+ },
3303
+ "duration": {
3304
+ "type": "var_int"
3305
+ }
3306
+ }
3307
+ },
3308
+ "0x7C": {
3309
+ "name": "system_chat",
3310
+ "id": 124,
3311
+ "structure": {
3312
+ "content": {
3313
+ "type": "nbt"
3314
+ },
3315
+ "overlay": {
3316
+ "type": "boolean"
3317
+ }
3318
+ }
3319
+ },
3320
+ "0x7D": {
3321
+ "name": "tab_list",
3322
+ "id": 125,
3323
+ "structure": {
3324
+ "header": {
3325
+ "type": "nbt"
3326
+ },
3327
+ "footer": {
3328
+ "type": "nbt"
3329
+ }
3330
+ }
3331
+ },
3332
+ "0x7E": {
3333
+ "name": "tag_query",
3334
+ "id": 126,
3335
+ "structure": {
3336
+ "transaction_id": {
3337
+ "type": "var_int"
3338
+ },
3339
+ "nbt": {
3340
+ "type": "nbt"
3341
+ }
3342
+ }
3343
+ },
3344
+ "0x7F": {
3345
+ "name": "take_item_entity",
3346
+ "id": 127,
3347
+ "structure": {
3348
+ "collected_entity_id": {
3349
+ "type": "var_int"
3350
+ },
3351
+ "collector_entity_id": {
3352
+ "type": "var_int"
3353
+ },
3354
+ "pickup_item_count": {
3355
+ "type": "var_int"
3356
+ }
3357
+ }
3358
+ },
3359
+ "0x80": {
3360
+ "name": "teleport_entity",
3361
+ "id": 128,
3362
+ "structure": {
3363
+ "entity_id": {
3364
+ "type": "var_int"
3365
+ },
3366
+ "x": {
3367
+ "type": "double"
3368
+ },
3369
+ "y": {
3370
+ "type": "double"
3371
+ },
3372
+ "z": {
3373
+ "type": "double"
3374
+ },
3375
+ "velocity_x": {
3376
+ "type": "double"
3377
+ },
3378
+ "velocity_y": {
3379
+ "type": "double"
3380
+ },
3381
+ "velocity_z": {
3382
+ "type": "double"
3383
+ },
3384
+ "yaw": {
3385
+ "type": "float"
3386
+ },
3387
+ "pitch": {
3388
+ "type": "float"
3389
+ },
3390
+ "flags": {
3391
+ "type": "teleport_flag"
3392
+ },
3393
+ "on_ground": {
3394
+ "type": "boolean"
3395
+ }
3396
+ }
3397
+ },
3398
+ "0x81": {
3399
+ "name": "test_instance_block_status",
3400
+ "id": 129,
3401
+ "structure": {
3402
+ "status": {
3403
+ "type": "nbt"
3404
+ },
3405
+ "has_size": {
3406
+ "type": "boolean"
3407
+ },
3408
+ "size_x": {
3409
+ "type": "prefixed_optional",
3410
+ "subType": {
3411
+ "type": "double"
3412
+ }
3413
+ },
3414
+ "size_y": {
3415
+ "type": "prefixed_optional",
3416
+ "subType": {
3417
+ "type": "double"
3418
+ }
3419
+ },
3420
+ "size_z": {
3421
+ "type": "prefixed_optional",
3422
+ "subType": {
3423
+ "type": "double"
3424
+ }
3425
+ }
3426
+ }
3427
+ },
3428
+ "0x82": {
3429
+ "name": "ticking_state",
3430
+ "id": 130,
3431
+ "structure": {
3432
+ "tick_rate": {
3433
+ "type": "float"
3434
+ },
3435
+ "is_frozen": {
3436
+ "type": "boolean"
3437
+ }
3438
+ }
3439
+ },
3440
+ "0x83": {
3441
+ "name": "ticking_step",
3442
+ "id": 131,
3443
+ "structure": {
3444
+ "tick_steps": {
3445
+ "type": "var_int"
3446
+ }
3447
+ }
3448
+ },
3449
+ "0x84": {
3450
+ "name": "transfer",
3451
+ "id": 132,
3452
+ "structure": {
3453
+ "host": {
3454
+ "type": "string",
3455
+ "length": 32767
3456
+ },
3457
+ "port": {
3458
+ "type": "var_int"
3459
+ }
3460
+ }
3461
+ },
3462
+ "0x85": {
3463
+ "name": "update_advancements",
3464
+ "id": 133,
3465
+ "structure": {
3466
+ "reset_clear": {
3467
+ "type": "boolean"
3468
+ },
3469
+ "advancement_mapping": {
3470
+ "type": "prefixed_array",
3471
+ "subType": {
3472
+ "type": "object",
3473
+ "fields": {
3474
+ "key": {
3475
+ "type": "string"
3476
+ },
3477
+ "value": {
3478
+ "type": "not_implemented",
3479
+ "comment": "Advancement"
3480
+ }
3481
+ }
3482
+ }
3483
+ },
3484
+ "identifiers": {
3485
+ "type": "prefixed_array",
3486
+ "subType": {
3487
+ "type": "string"
3488
+ }
3489
+ },
3490
+ "progress_mapping": {
3491
+ "type": "prefixed_array",
3492
+ "subType": {
3493
+ "type": "object",
3494
+ "fields": {
3495
+ "key": {
3496
+ "type": "string"
3497
+ },
3498
+ "value": {
3499
+ "type": "not_implemented",
3500
+ "comment": "Advancement progress"
3501
+ }
3502
+ }
3503
+ }
3504
+ },
3505
+ "show_advancements": {
3506
+ "type": "boolean"
3507
+ }
3508
+ }
3509
+ },
3510
+ "0x86": {
3511
+ "name": "update_attributes",
3512
+ "id": 134,
3513
+ "structure": {
3514
+ "entity_id": {
3515
+ "type": "var_int"
3516
+ },
3517
+ "property": {
3518
+ "type": "prefixed_array",
3519
+ "subType": {
3520
+ "type": "object",
3521
+ "fields": {
3522
+ "id": {
3523
+ "type": "var_int"
3524
+ },
3525
+ "value": {
3526
+ "type": "double"
3527
+ },
3528
+ "modifiers": {
3529
+ "type": "prefixed_array",
3530
+ "subType": {
3531
+ "type": "not_implemented",
3532
+ "comment": "Modifier Data"
3533
+ }
3534
+ }
3535
+ }
3536
+ }
3537
+ }
3538
+ }
3539
+ },
3540
+ "0x87": {
3541
+ "name": "update_mob_effect",
3542
+ "id": 135,
3543
+ "structure": {
3544
+ "entity_id": {
3545
+ "type": "var_int"
3546
+ },
3547
+ "effect_id": {
3548
+ "type": "var_int"
3549
+ },
3550
+ "amplifier": {
3551
+ "type": "var_int"
3552
+ },
3553
+ "duration": {
3554
+ "type": "var_int"
3555
+ },
3556
+ "flags": {
3557
+ "type": "byte"
3558
+ }
3559
+ }
3560
+ },
3561
+ "0x88": {
3562
+ "name": "update_recipes",
3563
+ "id": 136,
3564
+ "structure": {
3565
+ "stonecutter_recipes": {
3566
+ "type": "prefixed_array",
3567
+ "subType": {
3568
+ "type": "object",
3569
+ "fields": {
3570
+ "ingredients": {
3571
+ "type": "not_implemented",
3572
+ "comment": "ID Set"
3573
+ },
3574
+ "slot_display": {
3575
+ "type": "not_implemented",
3576
+ "comment": "Slot Display"
3577
+ }
3578
+ }
3579
+ }
3580
+ }
3581
+ }
3582
+ },
3583
+ "0x89": {
3584
+ "name": "update_tags",
3585
+ "id": 137,
3586
+ "structure": {
3587
+ "tagged_registries": {
3588
+ "type": "prefixed_array",
3589
+ "subType": {
3590
+ "type": "object",
3591
+ "fields": {
3592
+ "registry": {
3593
+ "type": "string"
3594
+ },
3595
+ "tags": {
3596
+ "type": "prefixed_array",
3597
+ "subType": {
3598
+ "type": "not_implemented",
3599
+ "comment": "Tag"
3600
+ }
3601
+ }
3602
+ }
3603
+ }
3604
+ }
3605
+ }
3606
+ },
3607
+ "0x8A": {
3608
+ "name": "projectile_power",
3609
+ "id": 138,
3610
+ "structure": {
3611
+ "entity_id": {
3612
+ "type": "var_int"
3613
+ },
3614
+ "power": {
3615
+ "type": "double"
3616
+ }
3617
+ }
3618
+ },
3619
+ "0x8B": {
3620
+ "name": "custom_report_details",
3621
+ "id": 139,
3622
+ "structure": {
3623
+ "details": {
3624
+ "type": "prefixed_array",
3625
+ "subType": {
3626
+ "type": "object",
3627
+ "fields": {
3628
+ "title": {
3629
+ "type": "string",
3630
+ "length": 128
3631
+ },
3632
+ "description": {
3633
+ "type": "string",
3634
+ "length": 4096
3635
+ }
3636
+ }
3637
+ }
3638
+ }
3639
+ }
3640
+ },
3641
+ "0x8C": {
3642
+ "name": "server_links",
3643
+ "id": 140,
3644
+ "structure": {
3645
+ "links": {
3646
+ "type": "prefixed_array",
3647
+ "subType": {
3648
+ "type": "object",
3649
+ "fields": {
3650
+ "label": {
3651
+ "type": "not_implemented",
3652
+ "comment": "Either VarInt Enum or Text Component"
3653
+ },
3654
+ "url": {
3655
+ "type": "string"
3656
+ }
3657
+ }
3658
+ }
3659
+ }
3660
+ }
3661
+ },
3662
+ "0x8D": {
3663
+ "name": "waypoint",
3664
+ "id": 141,
3665
+ "structure": {
3666
+ "operation": {
3667
+ "type": "enum",
3668
+ "subType": {
3669
+ "type": "var_int"
3670
+ }
3671
+ },
3672
+ "identifier": {
3673
+ "type": "not_implemented",
3674
+ "comment": "Either Uuid or String"
3675
+ },
3676
+ "icon_style": {
3677
+ "type": "string"
3678
+ },
3679
+ "red": {
3680
+ "type": "unsigned_byte",
3681
+ "subType": {
3682
+ "type": "object",
3683
+ "fields": {
3684
+ "prefixed_optional": {
3685
+ "type": "not_implemented",
3686
+ "comment": "The color of the waypoint icon."
3687
+ },
3688
+ "green": {
3689
+ "type": "unsigned_byte"
3690
+ },
3691
+ "blue": {
3692
+ "type": "unsigned_byte"
3693
+ }
3694
+ }
3695
+ }
3696
+ },
3697
+ "waypoint_type": {
3698
+ "type": "enum",
3699
+ "subType": {
3700
+ "type": "var_int"
3701
+ }
3702
+ },
3703
+ "2_chunk": {
3704
+ "type": "var_int",
3705
+ "subType": {
3706
+ "type": "object",
3707
+ "fields": {
3708
+ "x": {
3709
+ "type": "not_implemented",
3710
+ "comment": "The chunk coordinates that the waypoint will point to."
3711
+ },
3712
+ "z": {
3713
+ "type": "var_int"
3714
+ }
3715
+ }
3716
+ }
3717
+ },
3718
+ "angle": {
3719
+ "type": "float"
3720
+ }
3721
+ }
3722
+ },
3723
+ "0x8E": {
3724
+ "name": "clear_dialog",
3725
+ "id": 142,
3726
+ "structure": {}
3727
+ },
3728
+ "0x8F": {
3729
+ "name": "show_dialog",
3730
+ "id": 143,
3731
+ "structure": {
3732
+ "dialog": {
3733
+ "type": "id_or_x",
3734
+ "subType": {
3735
+ "type": "nbt"
3736
+ }
3737
+ }
3738
+ }
3739
+ }
3740
+ },
3741
+ "serverbound": {
3742
+ "0x0": {
3743
+ "name": "accept_teleportation",
3744
+ "id": 0,
3745
+ "structure": {
3746
+ "teleport_id": {
3747
+ "type": "var_int"
3748
+ },
3749
+ "x": {
3750
+ "type": "double"
3751
+ },
3752
+ "y": {
3753
+ "type": "double"
3754
+ },
3755
+ "z": {
3756
+ "type": "double"
3757
+ },
3758
+ "yaw": {
3759
+ "type": "float"
3760
+ },
3761
+ "pitch": {
3762
+ "type": "float"
3763
+ }
3764
+ }
3765
+ },
3766
+ "0x1": {
3767
+ "name": "attack",
3768
+ "id": 1,
3769
+ "structure": {
3770
+ "entity_id": {
3771
+ "type": "var_int"
3772
+ }
3773
+ }
3774
+ },
3775
+ "0x2": {
3776
+ "name": "block_entity_tag_query",
3777
+ "id": 2,
3778
+ "structure": {
3779
+ "transaction_id": {
3780
+ "type": "var_int"
3781
+ },
3782
+ "location": {
3783
+ "type": "position"
3784
+ }
3785
+ }
3786
+ },
3787
+ "0x3": {
3788
+ "name": "bundle_item_selected",
3789
+ "id": 3,
3790
+ "structure": {
3791
+ "slot_of_bundle": {
3792
+ "type": "var_int"
3793
+ },
3794
+ "slot_in_bundle": {
3795
+ "type": "var_int"
3796
+ }
3797
+ }
3798
+ },
3799
+ "0x4": {
3800
+ "name": "change_difficulty",
3801
+ "id": 4,
3802
+ "structure": {
3803
+ "difficulty": {
3804
+ "type": "enum",
3805
+ "subType": {
3806
+ "type": "unsigned_byte"
3807
+ }
3808
+ },
3809
+ "difficulty_locked": {
3810
+ "type": "boolean"
3811
+ }
3812
+ }
3813
+ },
3814
+ "0x5": {
3815
+ "name": "change_game_mode",
3816
+ "id": 5,
3817
+ "structure": {
3818
+ "game_mode": {
3819
+ "type": "enum",
3820
+ "subType": {
3821
+ "type": "var_int"
3822
+ }
3823
+ }
3824
+ }
3825
+ },
3826
+ "0x6": {
3827
+ "name": "chat_ack",
3828
+ "id": 6,
3829
+ "structure": {
3830
+ "message_count": {
3831
+ "type": "var_int"
3832
+ }
3833
+ }
3834
+ },
3835
+ "0x7": {
3836
+ "name": "chat_command",
3837
+ "id": 7,
3838
+ "structure": {
3839
+ "command": {
3840
+ "type": "string",
3841
+ "length": 32767
3842
+ }
3843
+ }
3844
+ },
3845
+ "0x8": {
3846
+ "name": "chat_command_signed",
3847
+ "id": 8,
3848
+ "structure": {
3849
+ "command": {
3850
+ "type": "string",
3851
+ "length": 32767
3852
+ },
3853
+ "timestamp": {
3854
+ "type": "long"
3855
+ },
3856
+ "salt": {
3857
+ "type": "long"
3858
+ },
3859
+ "array_of_argument_signatures": {
3860
+ "type": "prefixed_array",
3861
+ "subType": {
3862
+ "type": "object",
3863
+ "fields": {
3864
+ "argument_name": {
3865
+ "type": "string",
3866
+ "length": 16
3867
+ },
3868
+ "signature": {
3869
+ "type": "array",
3870
+ "length": 256,
3871
+ "subType": {
3872
+ "type": "byte"
3873
+ }
3874
+ }
3875
+ }
3876
+ }
3877
+ },
3878
+ "message_count": {
3879
+ "type": "var_int"
3880
+ },
3881
+ "acknowledged": {
3882
+ "type": "not_implemented",
3883
+ "length": 20
3884
+ },
3885
+ "checksum": {
3886
+ "type": "byte"
3887
+ }
3888
+ }
3889
+ },
3890
+ "0x9": {
3891
+ "name": "chat",
3892
+ "id": 9,
3893
+ "structure": {
3894
+ "message": {
3895
+ "type": "string",
3896
+ "length": 256
3897
+ },
3898
+ "timestamp": {
3899
+ "type": "long"
3900
+ },
3901
+ "salt": {
3902
+ "type": "long"
3903
+ },
3904
+ "signature": {
3905
+ "type": "prefixed_optional",
3906
+ "subType": {
3907
+ "type": "array",
3908
+ "length": 256,
3909
+ "subType": {
3910
+ "type": "byte"
3911
+ }
3912
+ }
3913
+ },
3914
+ "message_count": {
3915
+ "type": "var_int"
3916
+ },
3917
+ "acknowledged": {
3918
+ "type": "not_implemented",
3919
+ "length": 20
3920
+ },
3921
+ "checksum": {
3922
+ "type": "byte"
3923
+ }
3924
+ }
3925
+ },
3926
+ "0xA": {
3927
+ "name": "chat_session_update",
3928
+ "id": 10,
3929
+ "structure": {
3930
+ "session_id": {
3931
+ "type": "uuid"
3932
+ },
3933
+ "public_key": {
3934
+ "type": "long",
3935
+ "subType": {
3936
+ "type": "object",
3937
+ "fields": {
3938
+ "expires_at": {
3939
+ "type": "not_implemented",
3940
+ "comment": "The time the play session key expires in epoch milliseconds."
3941
+ },
3942
+ "public_key": {
3943
+ "type": "prefixed_array",
3944
+ "length": 512,
3945
+ "subType": {
3946
+ "type": "byte"
3947
+ }
3948
+ },
3949
+ "key_signature": {
3950
+ "type": "prefixed_array",
3951
+ "length": 4096,
3952
+ "subType": {
3953
+ "type": "byte"
3954
+ }
3955
+ }
3956
+ }
3957
+ }
3958
+ }
3959
+ }
3960
+ },
3961
+ "0xB": {
3962
+ "name": "chunk_batch_received",
3963
+ "id": 11,
3964
+ "structure": {
3965
+ "chunks_per_tick": {
3966
+ "type": "float"
3967
+ }
3968
+ }
3969
+ },
3970
+ "0xC": {
3971
+ "name": "client_command",
3972
+ "id": 12,
3973
+ "structure": {
3974
+ "action_id": {
3975
+ "type": "enum",
3976
+ "subType": {
3977
+ "type": "var_int"
3978
+ }
3979
+ }
3980
+ }
3981
+ },
3982
+ "0xD": {
3983
+ "name": "client_tick_end",
3984
+ "id": 13,
3985
+ "structure": {}
3986
+ },
3987
+ "0xE": {
3988
+ "name": "client_information",
3989
+ "id": 14,
3990
+ "structure": {
3991
+ "locale": {
3992
+ "type": "string",
3993
+ "length": 16
3994
+ },
3995
+ "view_distance": {
3996
+ "type": "byte"
3997
+ },
3998
+ "chat_mode": {
3999
+ "type": "enum",
4000
+ "subType": {
4001
+ "type": "var_int"
4002
+ }
4003
+ },
4004
+ "chat_colors": {
4005
+ "type": "boolean"
4006
+ },
4007
+ "displayed_skin_parts": {
4008
+ "type": "unsigned_byte"
4009
+ },
4010
+ "main_hand": {
4011
+ "type": "enum",
4012
+ "subType": {
4013
+ "type": "var_int"
4014
+ }
4015
+ },
4016
+ "enable_text_filtering": {
4017
+ "type": "boolean"
4018
+ },
4019
+ "allow_server_listings": {
4020
+ "type": "boolean"
4021
+ },
4022
+ "particle_status": {
4023
+ "type": "enum",
4024
+ "subType": {
4025
+ "type": "var_int"
4026
+ }
4027
+ }
4028
+ }
4029
+ },
4030
+ "0xF": {
4031
+ "name": "command_suggestion",
4032
+ "id": 15,
4033
+ "structure": {
4034
+ "transaction_id": {
4035
+ "type": "var_int"
4036
+ },
4037
+ "text": {
4038
+ "type": "string",
4039
+ "length": 32500
4040
+ }
4041
+ }
4042
+ },
4043
+ "0x10": {
4044
+ "name": "configuration_acknowledged",
4045
+ "id": 16,
4046
+ "structure": {}
4047
+ },
4048
+ "0x11": {
4049
+ "name": "container_button_click",
4050
+ "id": 17,
4051
+ "structure": {
4052
+ "window_id": {
4053
+ "type": "var_int"
4054
+ },
4055
+ "button_id": {
4056
+ "type": "var_int"
4057
+ }
4058
+ }
4059
+ },
4060
+ "0x12": {
4061
+ "name": "container_click",
4062
+ "id": 18,
4063
+ "structure": {
4064
+ "window_id": {
4065
+ "type": "var_int"
4066
+ },
4067
+ "state_id": {
4068
+ "type": "var_int"
4069
+ },
4070
+ "slot": {
4071
+ "type": "short"
4072
+ },
4073
+ "button": {
4074
+ "type": "byte"
4075
+ },
4076
+ "mode": {
4077
+ "type": "enum",
4078
+ "subType": {
4079
+ "type": "var_int"
4080
+ }
4081
+ },
4082
+ "array_of_changed_slots": {
4083
+ "type": "prefixed_array",
4084
+ "subType": {
4085
+ "type": "object",
4086
+ "fields": {
4087
+ "slot_number": {
4088
+ "type": "short"
4089
+ },
4090
+ "slot_data": {
4091
+ "type": "not_implemented",
4092
+ "comment": "Hashed Slot"
4093
+ }
4094
+ }
4095
+ }
4096
+ },
4097
+ "carried_item": {
4098
+ "type": "not_implemented",
4099
+ "comment": "Hashed Slot"
4100
+ }
4101
+ }
4102
+ },
4103
+ "0x13": {
4104
+ "name": "container_close",
4105
+ "id": 19,
4106
+ "structure": {
4107
+ "window_id": {
4108
+ "type": "var_int"
4109
+ }
4110
+ }
4111
+ },
4112
+ "0x14": {
4113
+ "name": "container_slot_state_changed",
4114
+ "id": 20,
4115
+ "structure": {
4116
+ "slot_id": {
4117
+ "type": "var_int"
4118
+ },
4119
+ "window_id": {
4120
+ "type": "var_int"
4121
+ },
4122
+ "state": {
4123
+ "type": "boolean"
4124
+ }
4125
+ }
4126
+ },
4127
+ "0x15": {
4128
+ "name": "cookie_response",
4129
+ "id": 21,
4130
+ "structure": {
4131
+ "key": {
4132
+ "type": "string"
4133
+ },
4134
+ "payload": {
4135
+ "type": "prefixed_optional",
4136
+ "subType": {
4137
+ "type": "prefixed_array",
4138
+ "length": 5120,
4139
+ "subType": {
4140
+ "type": "byte"
4141
+ }
4142
+ }
4143
+ }
4144
+ }
4145
+ },
4146
+ "0x16": {
4147
+ "name": "custom_payload",
4148
+ "id": 22,
4149
+ "structure": {
4150
+ "channel": {
4151
+ "type": "string"
4152
+ },
4153
+ "data": {
4154
+ "type": "varies"
4155
+ }
4156
+ }
4157
+ },
4158
+ "0x17": {
4159
+ "name": "debug_subscription_request",
4160
+ "id": 23,
4161
+ "structure": {
4162
+ "subscriptions": {
4163
+ "type": "prefixed_array",
4164
+ "subType": {
4165
+ "type": "var_int"
4166
+ }
4167
+ }
4168
+ }
4169
+ },
4170
+ "0x18": {
4171
+ "name": "edit_book",
4172
+ "id": 24,
4173
+ "structure": {
4174
+ "slot": {
4175
+ "type": "var_int"
4176
+ },
4177
+ "entries": {
4178
+ "type": "prefixed_array",
4179
+ "length": 100,
4180
+ "subType": {
4181
+ "type": "string",
4182
+ "length": 1024
4183
+ }
4184
+ },
4185
+ "title": {
4186
+ "type": "prefixed_optional",
4187
+ "subType": {
4188
+ "type": "string",
4189
+ "length": 32
4190
+ }
4191
+ }
4192
+ }
4193
+ },
4194
+ "0x19": {
4195
+ "name": "entity_tag_query",
4196
+ "id": 25,
4197
+ "structure": {
4198
+ "transaction_id": {
4199
+ "type": "var_int"
4200
+ },
4201
+ "entity_id": {
4202
+ "type": "var_int"
4203
+ }
4204
+ }
4205
+ },
4206
+ "0x1A": {
4207
+ "name": "interact",
4208
+ "id": 26,
4209
+ "structure": {
4210
+ "entity_id": {
4211
+ "type": "var_int"
4212
+ },
4213
+ "hand": {
4214
+ "type": "enum",
4215
+ "subType": {
4216
+ "type": "var_int"
4217
+ }
4218
+ },
4219
+ "target_offset": {
4220
+ "type": "lpvec3"
4221
+ },
4222
+ "sneak_key_pressed": {
4223
+ "type": "boolean"
4224
+ }
4225
+ }
4226
+ },
4227
+ "0x1B": {
4228
+ "name": "jigsaw_generate",
4229
+ "id": 27,
4230
+ "structure": {
4231
+ "location": {
4232
+ "type": "position"
4233
+ },
4234
+ "levels": {
4235
+ "type": "var_int"
4236
+ },
4237
+ "keep_jigsaws": {
4238
+ "type": "boolean"
4239
+ }
4240
+ }
4241
+ },
4242
+ "0x1C": {
4243
+ "name": "keep_alive",
4244
+ "id": 28,
4245
+ "structure": {
4246
+ "keep_alive_id": {
4247
+ "type": "long"
4248
+ }
4249
+ }
4250
+ },
4251
+ "0x1D": {
4252
+ "name": "lock_difficulty",
4253
+ "id": 29,
4254
+ "structure": {
4255
+ "locked": {
4256
+ "type": "boolean"
4257
+ }
4258
+ }
4259
+ },
4260
+ "0x1E": {
4261
+ "name": "move_player_pos",
4262
+ "id": 30,
4263
+ "structure": {
4264
+ "x": {
4265
+ "type": "double"
4266
+ },
4267
+ "feet_y": {
4268
+ "type": "double"
4269
+ },
4270
+ "z": {
4271
+ "type": "double"
4272
+ },
4273
+ "flags": {
4274
+ "type": "byte"
4275
+ }
4276
+ }
4277
+ },
4278
+ "0x1F": {
4279
+ "name": "move_player_pos_rot",
4280
+ "id": 31,
4281
+ "structure": {
4282
+ "x": {
4283
+ "type": "double"
4284
+ },
4285
+ "feet_y": {
4286
+ "type": "double"
4287
+ },
4288
+ "z": {
4289
+ "type": "double"
4290
+ },
4291
+ "yaw": {
4292
+ "type": "float"
4293
+ },
4294
+ "pitch": {
4295
+ "type": "float"
4296
+ },
4297
+ "flags": {
4298
+ "type": "byte"
4299
+ }
4300
+ }
4301
+ },
4302
+ "0x20": {
4303
+ "name": "move_player_rot",
4304
+ "id": 32,
4305
+ "structure": {
4306
+ "yaw": {
4307
+ "type": "float"
4308
+ },
4309
+ "pitch": {
4310
+ "type": "float"
4311
+ },
4312
+ "flags": {
4313
+ "type": "byte"
4314
+ }
4315
+ }
4316
+ },
4317
+ "0x21": {
4318
+ "name": "move_player_status_only",
4319
+ "id": 33,
4320
+ "structure": {
4321
+ "flags": {
4322
+ "type": "byte"
4323
+ }
4324
+ }
4325
+ },
4326
+ "0x22": {
4327
+ "name": "move_vehicle",
4328
+ "id": 34,
4329
+ "structure": {
4330
+ "x": {
4331
+ "type": "double"
4332
+ },
4333
+ "y": {
4334
+ "type": "double"
4335
+ },
4336
+ "z": {
4337
+ "type": "double"
4338
+ },
4339
+ "yaw": {
4340
+ "type": "float"
4341
+ },
4342
+ "pitch": {
4343
+ "type": "float"
4344
+ },
4345
+ "on_ground": {
4346
+ "type": "boolean"
4347
+ }
4348
+ }
4349
+ },
4350
+ "0x23": {
4351
+ "name": "paddle_boat",
4352
+ "id": 35,
4353
+ "structure": {
4354
+ "left_paddle_turning": {
4355
+ "type": "boolean"
4356
+ },
4357
+ "right_paddle_turning": {
4358
+ "type": "boolean"
4359
+ }
4360
+ }
4361
+ },
4362
+ "0x24": {
4363
+ "name": "pick_item_from_block",
4364
+ "id": 36,
4365
+ "structure": {
4366
+ "location": {
4367
+ "type": "position"
4368
+ },
4369
+ "include_data": {
4370
+ "type": "boolean"
4371
+ }
4372
+ }
4373
+ },
4374
+ "0x25": {
4375
+ "name": "pick_item_from_entity",
4376
+ "id": 37,
4377
+ "structure": {
4378
+ "entity_id": {
4379
+ "type": "var_int"
4380
+ },
4381
+ "include_data": {
4382
+ "type": "boolean"
4383
+ }
4384
+ }
4385
+ },
4386
+ "0x26": {
4387
+ "name": "ping_request",
4388
+ "id": 38,
4389
+ "structure": {}
4390
+ },
4391
+ "0x27": {
4392
+ "name": "place_recipe",
4393
+ "id": 39,
4394
+ "structure": {
4395
+ "window_id": {
4396
+ "type": "var_int"
4397
+ },
4398
+ "recipe_id": {
4399
+ "type": "var_int"
4400
+ },
4401
+ "make_all": {
4402
+ "type": "boolean"
4403
+ }
4404
+ }
4405
+ },
4406
+ "0x28": {
4407
+ "name": "player_abilities",
4408
+ "id": 40,
4409
+ "structure": {
4410
+ "flags": {
4411
+ "type": "byte"
4412
+ }
4413
+ }
4414
+ },
4415
+ "0x29": {
4416
+ "name": "player_action",
4417
+ "id": 41,
4418
+ "structure": {
4419
+ "status": {
4420
+ "type": "enum",
4421
+ "subType": {
4422
+ "type": "var_int"
4423
+ }
4424
+ },
4425
+ "location": {
4426
+ "type": "position"
4427
+ },
4428
+ "face": {
4429
+ "type": "enum",
4430
+ "subType": {
4431
+ "type": "byte"
4432
+ }
4433
+ },
4434
+ "sequence": {
4435
+ "type": "var_int"
4436
+ }
4437
+ }
4438
+ },
4439
+ "0x2A": {
4440
+ "name": "player_command",
4441
+ "id": 42,
4442
+ "structure": {
4443
+ "entity_id": {
4444
+ "type": "var_int"
4445
+ },
4446
+ "action_id": {
4447
+ "type": "enum",
4448
+ "subType": {
4449
+ "type": "var_int"
4450
+ }
4451
+ },
4452
+ "jump_boost": {
4453
+ "type": "var_int"
4454
+ }
4455
+ }
4456
+ },
4457
+ "0x2B": {
4458
+ "name": "player_input",
4459
+ "id": 43,
4460
+ "structure": {
4461
+ "flags": {
4462
+ "type": "unsigned_byte"
4463
+ }
4464
+ }
4465
+ },
4466
+ "0x2C": {
4467
+ "name": "player_loaded",
4468
+ "id": 44,
4469
+ "structure": {}
4470
+ },
4471
+ "0x2D": {
4472
+ "name": "pong",
4473
+ "id": 45,
4474
+ "structure": {
4475
+ "id": {
4476
+ "type": "int"
4477
+ }
4478
+ }
4479
+ },
4480
+ "0x2E": {
4481
+ "name": "punch",
4482
+ "id": 46,
4483
+ "structure": {}
4484
+ },
4485
+ "0x2F": {
4486
+ "name": "recipe_book_change_settings",
4487
+ "id": 47,
4488
+ "structure": {
4489
+ "book_id": {
4490
+ "type": "enum",
4491
+ "subType": {
4492
+ "type": "var_int"
4493
+ }
4494
+ },
4495
+ "book_open": {
4496
+ "type": "boolean"
4497
+ },
4498
+ "filter_active": {
4499
+ "type": "boolean"
4500
+ }
4501
+ }
4502
+ },
4503
+ "0x30": {
4504
+ "name": "recipe_book_seen_recipe",
4505
+ "id": 48,
4506
+ "structure": {
4507
+ "recipe_id": {
4508
+ "type": "var_int"
4509
+ }
4510
+ }
4511
+ },
4512
+ "0x31": {
4513
+ "name": "rename_item",
4514
+ "id": 49,
4515
+ "structure": {
4516
+ "item_name": {
4517
+ "type": "string",
4518
+ "length": 32767
4519
+ }
4520
+ }
4521
+ },
4522
+ "0x32": {
4523
+ "name": "resource_pack",
4524
+ "id": 50,
4525
+ "structure": {
4526
+ "uuid": {
4527
+ "type": "uuid"
4528
+ },
4529
+ "result": {
4530
+ "type": "enum",
4531
+ "subType": {
4532
+ "type": "var_int"
4533
+ }
4534
+ }
4535
+ }
4536
+ },
4537
+ "0x33": {
4538
+ "name": "seen_advancements",
4539
+ "id": 51,
4540
+ "structure": {
4541
+ "action": {
4542
+ "type": "enum",
4543
+ "subType": {
4544
+ "type": "var_int"
4545
+ }
4546
+ },
4547
+ "tab_id": {
4548
+ "type": "prefixed_optional",
4549
+ "subType": {
4550
+ "type": "string"
4551
+ }
4552
+ }
4553
+ }
4554
+ },
4555
+ "0x34": {
4556
+ "name": "select_trade",
4557
+ "id": 52,
4558
+ "structure": {
4559
+ "selected_slot": {
4560
+ "type": "var_int"
4561
+ }
4562
+ }
4563
+ },
4564
+ "0x35": {
4565
+ "name": "set_beacon",
4566
+ "id": 53,
4567
+ "structure": {
4568
+ "primary_effect": {
4569
+ "type": "prefixed_optional",
4570
+ "subType": {
4571
+ "type": "var_int"
4572
+ }
4573
+ },
4574
+ "secondary_effect": {
4575
+ "type": "prefixed_optional",
4576
+ "subType": {
4577
+ "type": "var_int"
4578
+ }
4579
+ }
4580
+ }
4581
+ },
4582
+ "0x36": {
4583
+ "name": "set_carried_item",
4584
+ "id": 54,
4585
+ "structure": {
4586
+ "slot": {
4587
+ "type": "short"
4588
+ }
4589
+ }
4590
+ },
4591
+ "0x37": {
4592
+ "name": "set_command_block",
4593
+ "id": 55,
4594
+ "structure": {
4595
+ "location": {
4596
+ "type": "position"
4597
+ },
4598
+ "command": {
4599
+ "type": "string",
4600
+ "length": 32767
4601
+ },
4602
+ "mode": {
4603
+ "type": "enum",
4604
+ "subType": {
4605
+ "type": "var_int"
4606
+ }
4607
+ },
4608
+ "flags": {
4609
+ "type": "byte"
4610
+ }
4611
+ }
4612
+ },
4613
+ "0x38": {
4614
+ "name": "set_command_minecart",
4615
+ "id": 56,
4616
+ "structure": {
4617
+ "entity_id": {
4618
+ "type": "var_int"
4619
+ },
4620
+ "command": {
4621
+ "type": "string",
4622
+ "length": 32767
4623
+ },
4624
+ "track_output": {
4625
+ "type": "boolean"
4626
+ }
4627
+ }
4628
+ },
4629
+ "0x39": {
4630
+ "name": "set_creative_mode_slot",
4631
+ "id": 57,
4632
+ "structure": {
4633
+ "slot": {
4634
+ "type": "short"
4635
+ },
4636
+ "clicked_item": {
4637
+ "type": "slot"
4638
+ }
4639
+ }
4640
+ },
4641
+ "0x3A": {
4642
+ "name": "set_game_rule",
4643
+ "id": 58,
4644
+ "structure": {
4645
+ "rules": {
4646
+ "type": "prefixed_array",
4647
+ "subType": {
4648
+ "type": "object",
4649
+ "fields": {
4650
+ "name": {
4651
+ "type": "string"
4652
+ },
4653
+ "value": {
4654
+ "type": "string",
4655
+ "length": 32767
4656
+ }
4657
+ }
4658
+ }
4659
+ }
4660
+ }
4661
+ },
4662
+ "0x3B": {
4663
+ "name": "set_jigsaw_block",
4664
+ "id": 59,
4665
+ "structure": {
4666
+ "location": {
4667
+ "type": "position"
4668
+ },
4669
+ "name": {
4670
+ "type": "string"
4671
+ },
4672
+ "target": {
4673
+ "type": "string"
4674
+ },
4675
+ "pool": {
4676
+ "type": "string"
4677
+ },
4678
+ "final_state": {
4679
+ "type": "string",
4680
+ "length": 32767
4681
+ },
4682
+ "joint_type": {
4683
+ "type": "string",
4684
+ "length": 32767
4685
+ },
4686
+ "selection_priority": {
4687
+ "type": "var_int"
4688
+ },
4689
+ "placement_priority": {
4690
+ "type": "var_int"
4691
+ }
4692
+ }
4693
+ },
4694
+ "0x3C": {
4695
+ "name": "set_structure_block",
4696
+ "id": 60,
4697
+ "structure": {
4698
+ "location": {
4699
+ "type": "position"
4700
+ },
4701
+ "action": {
4702
+ "type": "enum",
4703
+ "subType": {
4704
+ "type": "var_int"
4705
+ }
4706
+ },
4707
+ "mode": {
4708
+ "type": "enum",
4709
+ "subType": {
4710
+ "type": "var_int"
4711
+ }
4712
+ },
4713
+ "name": {
4714
+ "type": "string",
4715
+ "length": 32767
4716
+ },
4717
+ "offset_x": {
4718
+ "type": "byte"
4719
+ },
4720
+ "offset_y": {
4721
+ "type": "byte"
4722
+ },
4723
+ "offset_z": {
4724
+ "type": "byte"
4725
+ },
4726
+ "size_x": {
4727
+ "type": "byte"
4728
+ },
4729
+ "size_y": {
4730
+ "type": "byte"
4731
+ },
4732
+ "size_z": {
4733
+ "type": "byte"
4734
+ },
4735
+ "mirror": {
4736
+ "type": "enum",
4737
+ "subType": {
4738
+ "type": "var_int"
4739
+ }
4740
+ },
4741
+ "rotation": {
4742
+ "type": "enum",
4743
+ "subType": {
4744
+ "type": "var_int"
4745
+ }
4746
+ },
4747
+ "metadata": {
4748
+ "type": "string",
4749
+ "length": 128
4750
+ },
4751
+ "integrity": {
4752
+ "type": "float"
4753
+ },
4754
+ "seed": {
4755
+ "type": "var_long"
4756
+ },
4757
+ "flags": {
4758
+ "type": "byte"
4759
+ }
4760
+ }
4761
+ },
4762
+ "0x3D": {
4763
+ "name": "set_test_block",
4764
+ "id": 61,
4765
+ "structure": {
4766
+ "position": {
4767
+ "type": "position"
4768
+ },
4769
+ "mode": {
4770
+ "type": "enum",
4771
+ "subType": {
4772
+ "type": "var_int"
4773
+ }
4774
+ },
4775
+ "message": {
4776
+ "type": "string"
4777
+ }
4778
+ }
4779
+ },
4780
+ "0x3E": {
4781
+ "name": "sign_update",
4782
+ "id": 62,
4783
+ "structure": {
4784
+ "location": {
4785
+ "type": "position"
4786
+ },
4787
+ "line_1": {
4788
+ "type": "string",
4789
+ "length": 384
4790
+ },
4791
+ "line_2": {
4792
+ "type": "string",
4793
+ "length": 384
4794
+ },
4795
+ "line_3": {
4796
+ "type": "string",
4797
+ "length": 384
4798
+ },
4799
+ "line_4": {
4800
+ "type": "string",
4801
+ "length": 384
4802
+ },
4803
+ "text_slot": {
4804
+ "type": "enum",
4805
+ "subType": {
4806
+ "type": "var_int"
4807
+ }
4808
+ }
4809
+ }
4810
+ },
4811
+ "0x3F": {
4812
+ "name": "spectator_action",
4813
+ "id": 63,
4814
+ "structure": {
4815
+ "entity_id": {
4816
+ "type": "var_int"
4817
+ }
4818
+ }
4819
+ },
4820
+ "0x40": {
4821
+ "name": "teleport_to_entity",
4822
+ "id": 64,
4823
+ "structure": {
4824
+ "target_player": {
4825
+ "type": "uuid"
4826
+ }
4827
+ }
4828
+ },
4829
+ "0x41": {
4830
+ "name": "test_instance_block_action",
4831
+ "id": 65,
4832
+ "structure": {
4833
+ "position": {
4834
+ "type": "position"
4835
+ },
4836
+ "action": {
4837
+ "type": "enum",
4838
+ "subType": {
4839
+ "type": "var_int"
4840
+ }
4841
+ },
4842
+ "test": {
4843
+ "type": "prefixed_optional",
4844
+ "subType": {
4845
+ "type": "string"
4846
+ }
4847
+ },
4848
+ "size_x": {
4849
+ "type": "var_int"
4850
+ },
4851
+ "size_y": {
4852
+ "type": "var_int"
4853
+ },
4854
+ "size_z": {
4855
+ "type": "var_int"
4856
+ },
4857
+ "rotation": {
4858
+ "type": "enum",
4859
+ "subType": {
4860
+ "type": "var_int"
4861
+ }
4862
+ },
4863
+ "ignore_entities": {
4864
+ "type": "boolean"
4865
+ },
4866
+ "status": {
4867
+ "type": "enum",
4868
+ "subType": {
4869
+ "type": "var_int"
4870
+ }
4871
+ },
4872
+ "error_message": {
4873
+ "type": "prefixed_optional",
4874
+ "subType": {
4875
+ "type": "nbt"
4876
+ }
4877
+ }
4878
+ }
4879
+ },
4880
+ "0x42": {
4881
+ "name": "use_item_on",
4882
+ "id": 66,
4883
+ "structure": {
4884
+ "hand": {
4885
+ "type": "enum",
4886
+ "subType": {
4887
+ "type": "var_int"
4888
+ }
4889
+ },
4890
+ "location": {
4891
+ "type": "position"
4892
+ },
4893
+ "face": {
4894
+ "type": "enum",
4895
+ "subType": {
4896
+ "type": "var_int"
4897
+ }
4898
+ },
4899
+ "cursor_position_x": {
4900
+ "type": "float"
4901
+ },
4902
+ "cursor_position_y": {
4903
+ "type": "float"
4904
+ },
4905
+ "cursor_position_z": {
4906
+ "type": "float"
4907
+ },
4908
+ "inside_block": {
4909
+ "type": "boolean"
4910
+ },
4911
+ "world_border_hit": {
4912
+ "type": "boolean"
4913
+ },
4914
+ "sequence": {
4915
+ "type": "var_int"
4916
+ }
4917
+ }
4918
+ },
4919
+ "0x43": {
4920
+ "name": "use_item",
4921
+ "id": 67,
4922
+ "structure": {
4923
+ "hand": {
4924
+ "type": "enum",
4925
+ "subType": {
4926
+ "type": "var_int"
4927
+ }
4928
+ },
4929
+ "sequence": {
4930
+ "type": "var_int"
4931
+ },
4932
+ "yaw": {
4933
+ "type": "float"
4934
+ },
4935
+ "pitch": {
4936
+ "type": "float"
4937
+ }
4938
+ }
4939
+ },
4940
+ "0x44": {
4941
+ "name": "custom_click_action",
4942
+ "id": 68,
4943
+ "structure": {
4944
+ "id": {
4945
+ "type": "string"
4946
+ },
4947
+ "payload_size": {
4948
+ "type": "var_int"
4949
+ },
4950
+ "payload": {
4951
+ "type": "nbt"
4952
+ }
4953
+ }
4954
+ }
4955
+ }
4956
+ }
4957
+ }