minecraft-data 2.95.0 → 2.98.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 (44) hide show
  1. package/data.js +41 -0
  2. package/doc/history.md +12 -0
  3. package/index.d.ts +1 -1
  4. package/minecraft-data/README.md +3 -3
  5. package/minecraft-data/data/bedrock/1.16.201/proto.yml +9 -9
  6. package/minecraft-data/data/bedrock/1.16.201/protocol.json +5 -5
  7. package/minecraft-data/data/bedrock/1.16.210/proto.yml +9 -9
  8. package/minecraft-data/data/bedrock/1.16.210/protocol.json +5 -5
  9. package/minecraft-data/data/bedrock/1.16.220/proto.yml +9 -9
  10. package/minecraft-data/data/bedrock/1.16.220/protocol.json +5 -5
  11. package/minecraft-data/data/bedrock/1.17.0/proto.yml +9 -9
  12. package/minecraft-data/data/bedrock/1.17.0/protocol.json +5 -5
  13. package/minecraft-data/data/bedrock/1.17.10/proto.yml +9 -9
  14. package/minecraft-data/data/bedrock/1.17.10/protocol.json +5 -5
  15. package/minecraft-data/data/bedrock/1.17.30/proto.yml +3234 -0
  16. package/minecraft-data/data/bedrock/1.17.30/protocol.json +8 -8
  17. package/minecraft-data/data/bedrock/1.17.30/types.yml +1749 -0
  18. package/minecraft-data/data/bedrock/1.17.40/proto.yml +3267 -0
  19. package/minecraft-data/data/bedrock/1.17.40/protocol.json +9493 -0
  20. package/minecraft-data/data/bedrock/1.17.40/types.yml +1764 -0
  21. package/minecraft-data/data/bedrock/1.18.0/biomes.json +968 -0
  22. package/minecraft-data/data/bedrock/1.18.0/blockCollisionShapes.json +862 -0
  23. package/minecraft-data/data/bedrock/1.18.0/blockStates.json +157214 -0
  24. package/minecraft-data/data/bedrock/1.18.0/blocks.json +12506 -0
  25. package/minecraft-data/data/bedrock/1.18.0/blocksB2J.json +6845 -0
  26. package/minecraft-data/data/bedrock/1.18.0/blocksJ2B.json +20344 -0
  27. package/minecraft-data/data/bedrock/1.18.0/items.json +9565 -0
  28. package/minecraft-data/data/bedrock/1.18.0/protocol.json +9515 -0
  29. package/minecraft-data/data/bedrock/1.18.0/recipes.json +16648 -0
  30. package/minecraft-data/data/bedrock/common/protocolVersions.json +12 -0
  31. package/minecraft-data/data/bedrock/common/versions.json +3 -1
  32. package/minecraft-data/data/bedrock/latest/proto.yml +52 -13
  33. package/minecraft-data/data/bedrock/latest/types.yml +31 -16
  34. package/minecraft-data/data/dataPaths.json +41 -0
  35. package/minecraft-data/data/pc/1.16.2/protocol.json +2 -2
  36. package/minecraft-data/data/pc/1.17/protocol.json +18 -21
  37. package/minecraft-data/data/pc/1.17.1/protocol.json +18 -21
  38. package/minecraft-data/data/pc/1.18/protocol.json +5622 -0
  39. package/minecraft-data/data/pc/1.18/version.json +5 -0
  40. package/minecraft-data/data/pc/common/protocolVersions.json +161 -0
  41. package/minecraft-data/doc/add-data-new-version.md +2 -0
  42. package/minecraft-data/doc/history.md +12 -0
  43. package/package.json +1 -1
  44. package/typings/index-template.d.ts +1 -1
@@ -0,0 +1,1749 @@
1
+ !StartDocs: Types
2
+
3
+ BehaviourPackInfos: []li16
4
+ uuid: string
5
+ version: string
6
+ size: lu64
7
+ content_key: string
8
+ sub_pack_name: string
9
+ content_identity: string
10
+ has_scripts: bool
11
+
12
+ TexturePackInfos: []li16
13
+ uuid: string
14
+ version: string
15
+ size: lu64
16
+ content_key: string
17
+ sub_pack_name: string
18
+ content_identity: string
19
+ has_scripts: bool
20
+ rtx_enabled: bool
21
+
22
+ ResourcePackIdVersions: []varint
23
+ # The ID of the resource pack.
24
+ uuid: string
25
+ # The version of the resource pack.
26
+ version: string
27
+ # The subpack name of the resource pack.
28
+ name: string
29
+
30
+ ResourcePackIds: string[]li16
31
+
32
+ Experiment:
33
+ name: string
34
+ enabled: bool
35
+
36
+ Experiments: Experiment[]li32
37
+
38
+ GameMode: zigzag32 =>
39
+ 0: survival
40
+ 1: creative
41
+ 2: adventure
42
+ 3: survival_spectator
43
+ 4: creative_spectator
44
+ 5: fallback
45
+
46
+ GameRule:
47
+ name: string
48
+ editable: bool
49
+ type: varint =>
50
+ 1: bool
51
+ 2: int
52
+ 3: float
53
+ value: type?
54
+ if bool: bool
55
+ if int: zigzag32
56
+ if float: lf32
57
+
58
+ GameRules: GameRule[]varint
59
+
60
+ # CacheBlob represents a blob as used in the client side blob cache protocol. It holds a hash of its data and
61
+ # the full data of it.
62
+ Blob:
63
+ # Hash is the hash of the blob. The hash is computed using xxHash, and must be deterministic for the same
64
+ # chunk data.
65
+ hash: lu64
66
+ # Payload is the data of the blob. When sent, the client will associate the Hash of the blob with the
67
+ # Payload in it.
68
+ payload: ByteArray
69
+
70
+ BlockProperties: []varint
71
+ name: string
72
+ state: nbt
73
+
74
+ Itemstates: []varint
75
+ name: string
76
+ runtime_id: li16
77
+ component_based: bool
78
+
79
+
80
+
81
+ ItemExtraDataWithBlockingTick:
82
+ has_nbt: lu16 =>
83
+ 0xffff: 'true'
84
+ 0x0000: 'false'
85
+ nbt: has_nbt ?
86
+ if true:
87
+ version: u8
88
+ nbt: lnbt
89
+ default: void
90
+ can_place_on: ShortArray[]li32
91
+ can_destroy: ShortArray[]li32
92
+ blocking_tick: li64
93
+
94
+ ItemExtraDataWithoutBlockingTick:
95
+ has_nbt: lu16 =>
96
+ 0xffff: 'true'
97
+ 0x0000: 'false'
98
+ nbt: has_nbt ?
99
+ if true:
100
+ version: u8
101
+ nbt: lnbt
102
+ default: void
103
+ can_place_on: ShortArray[]li32
104
+ can_destroy: ShortArray[]li32
105
+
106
+ # Same as below but without a "networkStackID" boolean
107
+ ItemLegacy:
108
+ network_id: zigzag32
109
+ _: network_id?
110
+ if 0: void
111
+ default:
112
+ count: lu16
113
+ metadata: varint
114
+ block_runtime_id: zigzag32
115
+ extra: network_id ?
116
+ # The Shield Item ID is sent in the StartGame packet. It is usually 355 in vanilla.
117
+ if /ShieldItemID: '["encapsulated", { "lengthType": "varint", "type": "ItemExtraDataWithBlockingTick" }]'
118
+ default: '["encapsulated", { "lengthType": "varint", "type": "ItemExtraDataWithoutBlockingTick" }]'
119
+
120
+ # An "ItemStack" here represents an Item instance. You can think about it like a pointer
121
+ # to an item class. The data for the class gets updated with the data in the `item` field
122
+ # As of 1.16.220, now functionally the same as `Item` just without an extra boolean when
123
+ # server auth inventories is disabled.
124
+ Item:
125
+ network_id: zigzag32
126
+ _: network_id?
127
+ if 0: void
128
+ default:
129
+ count: lu16
130
+ metadata: varint
131
+ # When server authoritative inventory is enabled, all allocated items have a unique ID used to identify
132
+ # a specifc item instance.
133
+ has_stack_id: u8
134
+ # StackNetworkID is the network ID of this item *instance*. If the stack is empty, 0 is always written for this
135
+ # field. If not, the field should be set to 1 if the server authoritative inventories are disabled in the
136
+ # StartGame packet, or to a unique stack ID if it is enabled.
137
+ stack_id: has_stack_id ?
138
+ if 0: void
139
+ default: zigzag32
140
+ block_runtime_id: zigzag32
141
+ extra: network_id ?
142
+ # The Shield Item ID is sent in the StartGame packet. It is usually 355 in vanilla.
143
+ ## Really bad compiler hack to allow us to use a global variable
144
+ if /ShieldItemID: '["encapsulated", { "lengthType": "varint", "type": "ItemExtraDataWithBlockingTick" }]'
145
+ default: '["encapsulated", { "lengthType": "varint", "type": "ItemExtraDataWithoutBlockingTick" }]'
146
+
147
+ vec3i:
148
+ x: zigzag32
149
+ y: zigzag32
150
+ z: zigzag32
151
+
152
+ vec3u:
153
+ x: varint
154
+ y: varint
155
+ z: varint
156
+
157
+ vec3f:
158
+ x: lf32
159
+ y: lf32
160
+ z: lf32
161
+
162
+ vec2f:
163
+ x: lf32
164
+ z: lf32
165
+
166
+ MetadataDictionary: []varint
167
+ # https://github.com/pmmp/PocketMine-MP/blob/stable/src/pocketmine/entity/Entity.php#L101
168
+ key: varint =>
169
+ 0: flags
170
+ 1: health #int (minecart/boat)
171
+ 2: variant #int
172
+ 3: color #byte
173
+ 4: nametag #string
174
+ 5: owner_eid #long
175
+ 6: target_eid #long
176
+ 7: air #short
177
+ 8: potion_color #int (ARGB!)
178
+ 9: potion_ambient #byte
179
+ 10: jump_duration #long
180
+ 11: hurt_time #int (minecart/boat)
181
+ 12: hurt_direction #int (minecart/boat)
182
+ 13: paddle_time_left #float
183
+ 14: paddle_time_right #float
184
+ 15: experience_value #int (xp orb)
185
+ 16: minecart_display_block #int (id | (data << 16))
186
+ 17: minecart_display_offset #int
187
+ 18: minecart_has_display #byte (must be 1 for minecart to show block inside)
188
+ 20: old_swell
189
+ 21: swell_dir
190
+ 22: charge_amount
191
+ 23: enderman_held_runtime_id #short
192
+ 24: entity_age #short
193
+ 26: player_flags
194
+ 27: player_index
195
+ 28: player_bed_position #block coords
196
+ 29: fireball_power_x #float
197
+ 30: fireball_power_y
198
+ 31: fireball_power_z
199
+ 32: aux_power
200
+ 33: fish_x
201
+ 34: fish_z
202
+ 35: fish_angle
203
+ 36: potion_aux_value #short
204
+ 37: lead_holder_eid #long
205
+ 38: scale
206
+ 39: interactive_tag #string
207
+ 40: npc_skin_id #string
208
+ 41: url_tag #string
209
+ 42: max_airdata_max_air
210
+ 43: mark_variant #int
211
+ 44: container_type #byte
212
+ 45: container_base_size #int
213
+ 46: container_extra_slots_per_strength #int
214
+ 47: block_target
215
+ 48: wither_invulnerable_ticks #int
216
+ 49: wither_target_1 #long
217
+ 50: wither_target_2 #long
218
+ 51: wither_target_3 #long
219
+ 52: aerial_attack
220
+ 53: boundingbox_width
221
+ 54: boundingbox_height
222
+ 55: fuse_length
223
+ 56: rider_seat_position #vector3f
224
+ 57: rider_rotation_locked #byte
225
+ 58: rider_max_rotation #float
226
+ 59: rider_min_rotation #float
227
+ 60: rider_rotation_offset
228
+ 61: area_effect_cloud_radius #float
229
+ 62: area_effect_cloud_waiting #int
230
+ 63: area_effect_cloud_particle_id #int
231
+ 64: shulker_peek_id #int
232
+ 65: shulker_attach_face #byte
233
+ 66: shulker_attached #short
234
+ 67: shulker_attach_pos
235
+ 68: trading_player_eid #long
236
+ 69: trading_career
237
+ 70: has_command_block
238
+ 71: command_block_command #string
239
+ 72: command_block_last_output #string
240
+ 73: command_block_track_output #byte
241
+ 74: controlling_rider_seat_number #byte
242
+ 75: strength #int
243
+ 76: max_strength #int
244
+ 77: spell_casting_color #int
245
+ 78: limited_life
246
+ 79: armor_stand_pose_index # int
247
+ 80: ender_crystal_time_offset # int
248
+ 81: always_show_nametag # byte
249
+ 82: color_2 # byte
250
+ 83: name_author
251
+ 84: score_tag #String
252
+ 85: balloon_attached_entity # long
253
+ 86: pufferfish_size
254
+ 87: bubble_time
255
+ 88: agent
256
+ 89: sitting_amount
257
+ 90: sitting_amount_previous
258
+ 91: eating_counter
259
+ 92: flags_extended
260
+ 93: laying_amount
261
+ 94: laying_amount_previous
262
+ 95: duration
263
+ 96: spawn_time
264
+ 97: change_rate
265
+ 98: change_on_pickup
266
+ 99: pickup_count
267
+ 100: interact_text
268
+ 101: trade_tier
269
+ 102: max_trade_tier
270
+ 103: trade_experience
271
+ 104: skin_id
272
+ 105: spawning_frames
273
+ 106: command_block_tick_delay
274
+ 107: command_block_execute_on_first_tick
275
+ 108: ambient_sound_interval
276
+ 109: ambient_sound_interval_range
277
+ 110: ambient_sound_event_name
278
+ 111: fall_damage_multiplier
279
+ 112: name_raw_text
280
+ 113: can_ride_target
281
+ 114: low_tier_cured_discount
282
+ 115: high_tier_cured_discount
283
+ 116: nearby_cured_discount
284
+ 117: nearby_cured_discount_timestamp
285
+ 118: hitbox
286
+ 119: is_buoyant
287
+ 120: base_runtime_id
288
+ 121: freezing_effect_strength
289
+ 122: buoyancy_data
290
+ 123: goat_horn_count
291
+ 124: update_properties
292
+ type: varint =>
293
+ 0: byte
294
+ 1: short
295
+ 2: int
296
+ 3: float
297
+ 4: string
298
+ 5: compound
299
+ 6: vec3i
300
+ 7: long
301
+ 8: vec3f
302
+ value: key ?
303
+ if flags: MetadataFlags1
304
+ if flags_extended: MetadataFlags2
305
+ default: type ?
306
+ if byte: i8
307
+ if short: li16
308
+ if int: zigzag32
309
+ if float: lf32
310
+ if string: string
311
+ if compound: nbt
312
+ if vec3i: vec3i
313
+ if long: zigzag64
314
+ if vec3f: vec3f
315
+
316
+ MetadataFlags1: [ "bitflags", {
317
+ "type": "zigzag64",
318
+ "big": true,
319
+ "flags": [
320
+ "onfire",
321
+ "sneaking",
322
+ "riding",
323
+ "sprinting",
324
+ "action",
325
+ "invisible",
326
+ "tempted",
327
+ "inlove",
328
+ "saddled",
329
+ "powered",
330
+ "ignited",
331
+ "baby",
332
+ "converting",
333
+ "critical",
334
+ "can_show_nametag",
335
+ "always_show_nametag",
336
+ "no_ai",
337
+ "silent",
338
+ "wallclimbing",
339
+ "can_climb",
340
+ "swimmer",
341
+ "can_fly",
342
+ "walker",
343
+ "resting",
344
+ "sitting",
345
+ "angry",
346
+ "interested",
347
+ "charged",
348
+ "tamed",
349
+ "orphaned",
350
+ "leashed",
351
+ "sheared",
352
+ "gliding",
353
+ "elder",
354
+ "moving",
355
+ "breathing",
356
+ "chested",
357
+ "stackable",
358
+ "showbase",
359
+ "rearing",
360
+ "vibrating",
361
+ "idling",
362
+ "evoker_spell",
363
+ "charge_attack",
364
+ "wasd_controlled",
365
+ "can_power_jump",
366
+ "linger",
367
+ "has_collision",
368
+ "affected_by_gravity",
369
+ "fire_immune",
370
+ "dancing",
371
+ "enchanted",
372
+ "show_trident_rope", # tridents show an animated rope when enchanted with loyalty after they are thrown and return to their owner. to be combined with data_owner_eid
373
+ "container_private", #inventory is private, doesn't drop contents when killed if true
374
+ "transforming",
375
+ "spin_attack",
376
+ "swimming",
377
+ "bribed", #dolphins have this set when they go to find treasure for the player
378
+ "pregnant",
379
+ "laying_egg",
380
+ "rider_can_pick", #???
381
+ "transition_sitting",
382
+ "eating",
383
+ "laying_down"
384
+ ]
385
+ }]
386
+
387
+ MetadataFlags2: [ "bitflags", {
388
+ "type": "zigzag64",
389
+ "big": true,
390
+ "flags": [
391
+ "sneezing",
392
+ "trusting",
393
+ "rolling",
394
+ "scared",
395
+ "in_scaffolding",
396
+ "over_scaffolding",
397
+ "fall_through_scaffolding",
398
+ "blocking", #shield
399
+ "transition_blocking",
400
+ "blocked_using_shield",
401
+ "blocked_using_damaged_shield",
402
+ "sleeping",
403
+ "wants_to_wake",
404
+ "trade_interest",
405
+ "door_breaker", #...
406
+ "breaking_obstruction",
407
+ "door_opener", #...
408
+ "illager_captain",
409
+ "stunned",
410
+ "roaring",
411
+ "delayed_attacking",
412
+ "avoiding_mobs",
413
+ "avoiding_block",
414
+ "facing_target_to_range_attack",
415
+ "hidden_when_invisible", #??????????????????
416
+ "is_in_ui",
417
+ "stalking",
418
+ "emoting",
419
+ "celebrating",
420
+ "admiring",
421
+ "celebrating_special",
422
+ "unknown95", # 95
423
+ "ram_attack",
424
+ "playing_dead"
425
+ ]
426
+ }]
427
+
428
+ Link:
429
+ ridden_entity_id: zigzag64
430
+ rider_entity_id: zigzag64
431
+ type: u8
432
+ immediate: bool
433
+ rider_initiated: bool
434
+
435
+ Links: Link[]varint
436
+
437
+ EntityAttributes: []varint
438
+ name: string
439
+ min: lf32
440
+ value: lf32
441
+ max: lf32
442
+
443
+ Rotation:
444
+ yaw: byterot
445
+ pitch: byterot
446
+ head_yaw: byterot
447
+
448
+ BlockCoordinates: # mojang...
449
+ x: zigzag32
450
+ y: varint
451
+ z: zigzag32
452
+
453
+ PlayerAttributes: []varint
454
+ min: lf32
455
+ max: lf32
456
+ current: lf32
457
+ default: lf32
458
+ name: string
459
+
460
+ # UseItemTransactionData represents an inventory transaction data object sent when the client uses an item on
461
+ # a block. Also used in PlayerAuthoritativeInput packet
462
+ TransactionUseItem:
463
+ # ActionType is the type of the UseItem inventory transaction. It is one of the action types found above,
464
+ # and specifies the way the player interacted with the block.
465
+ action_type: varint =>
466
+ 0: click_block
467
+ 1: click_air
468
+ 2: break_block
469
+ # BlockPosition is the position of the block that was interacted with. This is only really a correct
470
+ # block position if ActionType is not UseItemActionClickAir.
471
+ block_position: vec3i
472
+ # BlockFace is the face of the block that was interacted with. When clicking the block, it is the face
473
+ # clicked. When breaking the block, it is the face that was last being hit until the block broke.
474
+ face: varint
475
+ # HotBarSlot is the hot bar slot that the player was holding while clicking the block. It should be used
476
+ # to ensure that the hot bar slot and held item are correctly synchronised with the server.
477
+ hotbar_slot: varint
478
+ # HeldItem is the item that was held to interact with the block. The server should check if this item
479
+ # is actually present in the HotBarSlot.
480
+ held_item: Item
481
+ # Position is the position of the player at the time of interaction. For clicking a block, this is the
482
+ # position at that time, whereas for breaking the block it is the position at the time of breaking.
483
+ player_pos: vec3f
484
+ # ClickedPosition is the position that was clicked relative to the block's base coordinate. It can be
485
+ # used to find out exactly where a player clicked the block.
486
+ click_pos: vec3f
487
+ # BlockRuntimeID is the runtime ID of the block that was clicked. It may be used by the server to verify
488
+ # that the player's world client-side is synchronised with the server's.
489
+ block_runtime_id: varint
490
+
491
+ # Actions is a list of actions that took place, that form the inventory transaction together. Each of
492
+ # these actions hold one slot in which one item was changed to another. In general, the combination of
493
+ # all of these actions results in a balanced inventory transaction. This should be checked to ensure that
494
+ # no items are cheated into the inventory.
495
+ TransactionActions: []varint
496
+ source_type: varint =>
497
+ 0: container
498
+ 1: global
499
+ 2: world_interaction
500
+ 3: creative
501
+ 100: craft_slot
502
+ 99999: craft
503
+ _: source_type?
504
+ if container or craft:
505
+ inventory_id: WindowIDVarint
506
+ if world_interaction:
507
+ flags: varint
508
+ if craft or craft_slot:
509
+ action: varint
510
+ default: void
511
+ slot: varint
512
+ old_item: Item
513
+ new_item: Item
514
+
515
+ # The Minecraft bedrock inventory system was refactored, but not all inventory actions use the new packet.
516
+ # This data structure holds actions that have not been updated to the new system.
517
+ TransactionLegacy:
518
+ # LegacyRequestID is an ID that is only non-zero at times when sent by the client. The server should
519
+ # always send 0 for this. When this field is not 0, the LegacySetItemSlots slice below will have values
520
+ # in it.
521
+ # LegacyRequestID ties in with the ItemStackResponse packet. If this field is non-0, the server should
522
+ # respond with an ItemStackResponse packet. Some inventory actions such as dropping an item out of the
523
+ # hotbar are still one using this packet, and the ItemStackResponse packet needs to tie in with it.
524
+ legacy_request_id: zigzag32
525
+ # `legacy_transactions` are only present if the LegacyRequestID is non-zero. These item slots inform the
526
+ # server of the slots that were changed during the inventory transaction, and the server should send
527
+ # back an ItemStackResponse packet with these slots present in it. (Or false with no slots, if rejected.)
528
+ legacy_transactions: legacy_request_id?
529
+ if 0: void
530
+ default: []varint
531
+ container_id: u8
532
+ changed_slots: []varint
533
+ slot_id: u8
534
+
535
+ Transaction:
536
+ # Old transaction system data
537
+ legacy: TransactionLegacy
538
+ # What type of transaction took place
539
+ transaction_type: varint =>
540
+ 0: normal
541
+ 1: inventory_mismatch
542
+ 2: item_use
543
+ 3: item_use_on_entity
544
+ 4: item_release
545
+ # The list of inventory internal actions in this packet, e.g. inventory GUI actions
546
+ actions: TransactionActions
547
+ # Extra data if an intenal inventory transaction did not take place, e.g. use of an item
548
+ transaction_data: transaction_type?
549
+ if normal or inventory_mismatch: void
550
+ # UseItemTransactionData represents an inventory transaction data object sent when the client uses an item on
551
+ # a block.
552
+ if item_use: TransactionUseItem
553
+ # UseItemOnEntityTransactionData represents an inventory transaction data object sent when the client uses
554
+ # an item on an entity.
555
+ if item_use_on_entity:
556
+ # TargetEntityRuntimeID is the entity runtime ID of the target that was clicked. It is the runtime ID
557
+ # that was assigned to it in the AddEntity packet.
558
+ entity_runtime_id: varint64
559
+ # ActionType is the type of the UseItemOnEntity inventory transaction. It is one of the action types
560
+ # found in the constants above, and specifies the way the player interacted with the entity.
561
+ action_type: varint =>
562
+ 0: interact
563
+ 1: attack
564
+ # HotBarSlot is the hot bar slot that the player was holding while clicking the entity. It should be used
565
+ # to ensure that the hot bar slot and held item are correctly synchronised with the server.
566
+ hotbar_slot: zigzag32
567
+ # HeldItem is the item that was held to interact with the entity. The server should check if this item
568
+ # is actually present in the HotBarSlot.
569
+ held_item: Item
570
+ # Position is the position of the player at the time of clicking the entity.
571
+ player_pos: vec3f
572
+ # ClickedPosition is the position that was clicked relative to the entity's base coordinate. It can be
573
+ # used to find out exactly where a player clicked the entity.
574
+ click_pos: vec3f
575
+ # ReleaseItemTransactionData represents an inventory transaction data object sent when the client releases
576
+ # the item it was using, for example when stopping while eating or stopping the charging of a bow.
577
+ if item_release:
578
+ # ActionType is the type of the ReleaseItem inventory transaction. It is one of the action types found
579
+ # in the constants above, and specifies the way the item was released.
580
+ # As of 1.13, the ActionType is always 0. This field can be ignored, because releasing food (by consuming
581
+ # it) or releasing a bow (to shoot an arrow) is essentially the same.
582
+ action_type: varint =>
583
+ 0: release
584
+ 1: consume
585
+ # HotBarSlot is the hot bar slot that the player was holding while releasing the item. It should be used
586
+ # to ensure that the hot bar slot and held item are correctly synchronised with the server.
587
+ hotbar_slot: zigzag32
588
+ # HeldItem is the item that was released. The server should check if this item is actually present in the
589
+ # HotBarSlot.
590
+ held_item: Item
591
+ # HeadPosition is the position of the player's head at the time of releasing the item. This is used
592
+ # mainly for purposes such as spawning eating particles at that position.
593
+ head_pos: vec3f
594
+
595
+ ItemStacks: Item[]varint
596
+
597
+ RecipeIngredient:
598
+ network_id: zigzag32
599
+ _: network_id?
600
+ if 0: void
601
+ default:
602
+ network_data: zigzag32
603
+ count: zigzag32
604
+
605
+ PotionTypeRecipes: []varint
606
+ input_item_id: zigzag32
607
+ input_item_meta: zigzag32
608
+ ingredient_id: zigzag32
609
+ ingredient_meta: zigzag32
610
+ output_item_id: zigzag32
611
+ output_item_meta: zigzag32
612
+
613
+ PotionContainerChangeRecipes: []varint
614
+ input_item_id: zigzag32
615
+ ingredient_id: zigzag32
616
+ output_item_id: zigzag32
617
+
618
+ Recipes: []varint
619
+ type: zigzag32 =>
620
+ 0: shapeless #'ENTRY_SHAPELESS',
621
+ 1: shaped #'ENTRY_SHAPED',
622
+ 2: furnace # 'ENTRY_FURNACE',
623
+ # `furnace_with_metadata` is a recipe specifically used for furnace-type crafting stations. It is equal to
624
+ # `furnace`, except it has an input item with a specific metadata value, instead of any metadata value.
625
+ 3: furnace_with_metadata # 'ENTRY_FURNACE_DATA', // has metadata
626
+ 4: multi #'ENTRY_MULTI', //TODO
627
+ 5: shulker_box #'ENTRY_SHULKER_BOX', //TODO
628
+ 6: shapeless_chemistry #'ENTRY_SHAPELESS_CHEMISTRY', //TODO
629
+ 7: shaped_chemistry #'ENTRY_SHAPED_CHEMISTRY', //TODO
630
+ recipe: type?
631
+ if shapeless or shulker_box or shapeless_chemistry:
632
+ recipe_id: string
633
+ input: RecipeIngredient[]varint
634
+ output: ItemLegacy[]varint
635
+ uuid: uuid
636
+ block: string
637
+ priority: zigzag32
638
+ network_id: varint
639
+ if shaped or shaped_chemistry:
640
+ recipe_id: string
641
+ width: zigzag32
642
+ height: zigzag32
643
+ # 2D input array, size of width*height
644
+ input: []$width
645
+ _: RecipeIngredient[]$height
646
+ output: ItemLegacy[]varint
647
+ uuid: uuid
648
+ block: string
649
+ priority: zigzag32
650
+ network_id: varint
651
+ if furnace:
652
+ input_id: zigzag32
653
+ output: ItemLegacy
654
+ block: string
655
+ if furnace_with_metadata:
656
+ input_id: zigzag32
657
+ input_meta: zigzag32
658
+ output: ItemLegacy
659
+ block: string
660
+ if multi:
661
+ uuid: uuid
662
+ network_id: varint
663
+
664
+ SkinImage:
665
+ width: li32
666
+ height: li32
667
+ data: ByteArray
668
+
669
+ Skin:
670
+ skin_id: string
671
+ play_fab_id: string
672
+ skin_resource_pack: string
673
+ skin_data: SkinImage
674
+ animations: []li32
675
+ skin_image: SkinImage
676
+ animation_type: li32
677
+ animation_frames: lf32
678
+ expression_type: lf32
679
+ cape_data: SkinImage
680
+ geometry_data: string
681
+ geometry_data_version: string
682
+ animation_data: string
683
+
684
+ cape_id: string
685
+ full_skin_id: string
686
+ arm_size: string
687
+ skin_color: string
688
+ personal_pieces: []li32
689
+ piece_id: string
690
+ piece_type: string
691
+ pack_id: string
692
+ is_default_piece: bool
693
+ product_id: string
694
+ piece_tint_colors: []li32
695
+ piece_type: string
696
+ colors: string[]li32
697
+ premium: bool
698
+ persona: bool
699
+ # PersonaCapeOnClassicSkin specifies if the skin had a Persona cape (in-game skin creator cape) equipped
700
+ # on a classic skin.
701
+ cape_on_classic: bool
702
+ primary_user: bool
703
+
704
+ PlayerRecords:
705
+ type: u8 =>
706
+ 0: add
707
+ 1: remove
708
+ records_count: varint
709
+ records: []$records_count
710
+ _: type?
711
+ if add:
712
+ uuid: uuid
713
+ entity_unique_id: zigzag64
714
+ username: string
715
+ xbox_user_id: string
716
+ platform_chat_id: string
717
+ build_platform: li32
718
+ skin_data: Skin
719
+ is_teacher: bool
720
+ is_host: bool
721
+ if remove:
722
+ uuid: uuid
723
+ verified: type ?
724
+ if add: bool[]$records_count
725
+
726
+ Enchant:
727
+ id: u8
728
+ level: u8
729
+
730
+ EnchantOption:
731
+ cost: varint
732
+ slot_flags: li32
733
+ equip_enchants: Enchant[]varint
734
+ held_enchants: Enchant[]varint
735
+ self_enchants: Enchant[]varint
736
+ name: string
737
+ option_id: zigzag32
738
+
739
+ Action: zigzag32 =>
740
+ 0: start_break
741
+ 1: abort_break
742
+ 2: stop_break
743
+ 3: get_updated_block
744
+ 4: drop_item
745
+ 5: start_sleeping
746
+ 6: stop_sleeping
747
+ 7: respawn
748
+ 8: jump
749
+ 9: start_sprint
750
+ 10: stop_sprint
751
+ 11: start_sneak
752
+ 12: stop_sneak
753
+ 13: creative_player_destroy_block
754
+ # sent when spawning in a different dimension to tell the server we spawned
755
+ 14: dimension_change_ack
756
+ 15: start_glide
757
+ 16: stop_glide
758
+ 17: build_denied
759
+ 18: crack_break
760
+ 19: change_skin
761
+ # no longer used
762
+ 20: set_enchatnment_seed
763
+ 21: swimming
764
+ 22: stop_swimming
765
+ 23: start_spin_attack
766
+ 24: stop_spin_attack
767
+ 25: interact_block
768
+ 26: predict_break
769
+ 27: continue_break
770
+
771
+ # Source and Destination point to the source slot from which Count of the item stack were taken and the
772
+ # destination slot to which this item was moved.
773
+ StackRequestSlotInfo:
774
+ # ContainerID is the ID of the container that the slot was in.
775
+ slot_type: ContainerSlotType
776
+ # Slot is the index of the slot within the container with the ContainerID above.
777
+ slot: u8
778
+ # StackNetworkID is the unique stack ID that the client assumes to be present in this slot. The server
779
+ # must check if these IDs match. If they do not match, servers should reject the stack request that the
780
+ # action holding this info was in.
781
+ stack_id: zigzag32
782
+
783
+ # ItemStackRequest is sent by the client to change item stacks in an inventory. It is essentially a
784
+ # replacement of the InventoryTransaction packet added in 1.16 for inventory specific actions, such as moving
785
+ # items around or crafting. The InventoryTransaction packet is still used for actions such as placing blocks
786
+ # and interacting with entities.
787
+ ItemStackRequest:
788
+ # RequestID is a unique ID for the request. This ID is used by the server to send a response for this
789
+ # specific request in the ItemStackResponse packet.
790
+ request_id: varint
791
+ actions: []varint
792
+ type_id: u8 =>
793
+ # TakeStackRequestAction is sent by the client to the server to take x amount of items from one slot in a
794
+ # container to the cursor.
795
+ 0: take
796
+ # PlaceStackRequestAction is sent by the client to the server to place x amount of items from one slot into
797
+ # another slot, such as when shift clicking an item in the inventory to move it around or when moving an item
798
+ # in the cursor into a slot.
799
+ 1: place
800
+ # SwapStackRequestAction is sent by the client to swap the item in its cursor with an item present in another
801
+ # container. The two item stacks swap places.
802
+ 2: swap
803
+ # DropStackRequestAction is sent by the client when it drops an item out of the inventory when it has its
804
+ # inventory opened. This action is not sent when a player drops an item out of the hotbar using the Q button
805
+ # (or the equivalent on mobile). The InventoryTransaction packet is still used for that action, regardless of
806
+ # whether the item stack network IDs are used or not.
807
+ 3: drop
808
+ # DestroyStackRequestAction is sent by the client when it destroys an item in creative mode by moving it
809
+ # back into the creative inventory.
810
+ 4: destroy
811
+ # ConsumeStackRequestAction is sent by the client when it uses an item to craft another item. The original
812
+ # item is 'consumed'.
813
+ 5: consume
814
+ # CreateStackRequestAction is sent by the client when an item is created through being used as part of a
815
+ # recipe. For example, when milk is used to craft a cake, the buckets are leftover. The buckets are moved to
816
+ # the slot sent by the client here.
817
+ # Note that before this is sent, an action for consuming all items in the crafting table/grid is sent. Items
818
+ # that are not fully consumed when used for a recipe should not be destroyed there, but instead, should be
819
+ # turned into their respective resulting items.
820
+ 6: create
821
+ # LabTableCombineStackRequestAction is sent by the client when it uses a lab table to combine item stacks.
822
+ 7: lab_table_combine
823
+ # BeaconPaymentStackRequestAction is sent by the client when it submits an item to enable effects from a
824
+ # beacon. These items will have been moved into the beacon item slot in advance.
825
+ 8: beacon_payment
826
+ # MineBlockStackRequestAction is sent by the client when it breaks a block.
827
+ 9: mine_block
828
+ # CraftRecipeStackRequestAction is sent by the client the moment it begins crafting an item. This is the
829
+ # first action sent, before the Consume and Create item stack request actions.
830
+ # This action is also sent when an item is enchanted. Enchanting should be treated mostly the same way as
831
+ # crafting, where the old item is consumed.
832
+ 10: craft_recipe
833
+ # AutoCraftRecipeStackRequestAction is sent by the client similarly to the CraftRecipeStackRequestAction. The
834
+ # only difference is that the recipe is automatically created and crafted by shift clicking the recipe book.
835
+ 11: craft_recipe_auto #recipe book?
836
+ # CraftCreativeStackRequestAction is sent by the client when it takes an item out fo the creative inventory.
837
+ # The item is thus not really crafted, but instantly created.
838
+ 12: craft_creative
839
+ # CraftRecipeOptionalStackRequestAction is sent when using an anvil. When this action is sent, the
840
+ # CustomNames field in the respective stack request is non-empty and contains the name of the item created
841
+ # using the anvil.
842
+ 13: optional
843
+ # CraftNonImplementedStackRequestAction is an action sent for inventory actions that aren't yet implemented
844
+ # in the new system. These include, for example, anvils.
845
+ 14: non_implemented #anvils aren't fully implemented yet
846
+ # CraftResultsDeprecatedStackRequestAction is an additional, deprecated packet sent by the client after
847
+ # crafting. It holds the final results and the amount of times the recipe was crafted. It shouldn't be used.
848
+ # This action is also sent when an item is enchanted. Enchanting should be treated mostly the same way as
849
+ # crafting, where the old item is consumed.
850
+ 15: results_deprecated
851
+ _: type_id ?
852
+ if take or place:
853
+ count: u8
854
+ source: StackRequestSlotInfo
855
+ destination: StackRequestSlotInfo
856
+ if swap:
857
+ # Source and Destination point to the source slot from which Count of the item stack were taken and the
858
+ # destination slot to which this item was moved.
859
+ source: StackRequestSlotInfo
860
+ destination: StackRequestSlotInfo
861
+ if drop:
862
+ # Count is the count of the item in the source slot that was taken towards the destination slot.
863
+ count: u8
864
+ # Source is the source slot from which items were dropped to the ground.
865
+ source: StackRequestSlotInfo
866
+ # Randomly seems to be set to false in most cases. I'm not entirely sure what this does, but this is what
867
+ # vanilla calls this field.
868
+ randomly: bool
869
+ if destroy or consume:
870
+ # Count is the count of the item in the source slot that was destroyed.
871
+ count: u8
872
+ # Source is the source slot from which items came that were destroyed by moving them into the creative
873
+ # inventory.
874
+ source: StackRequestSlotInfo
875
+ if create:
876
+ # ResultsSlot is the slot in the inventory in which the results of the crafting ingredients are to be
877
+ # placed.
878
+ result_slot_id: u8
879
+ if beacon_payment:
880
+ # PrimaryEffect and SecondaryEffect are the effects that were selected from the beacon.
881
+ primary_effect: zigzag32
882
+ secondary_effect: zigzag32
883
+ if mine_block:
884
+ # // Unknown1 ... TODO: Find out what this is for
885
+ unknown1: zigzag32
886
+ # PredictedDurability is the durability of the item that the client assumes to be present at the time
887
+ predicted_durability: zigzag32
888
+ # StackNetworkID is the unique stack ID that the client assumes to be present at the time. The server
889
+ # must check if these IDs match. If they do not match, servers should reject the stack request that the
890
+ # action holding this info was in.
891
+ network_id: zigzag32
892
+ if craft_recipe or craft_recipe_auto:
893
+ # RecipeNetworkID is the network ID of the recipe that is about to be crafted. This network ID matches
894
+ # one of the recipes sent in the CraftingData packet, where each of the recipes have a RecipeNetworkID as
895
+ # of 1.16.
896
+ recipe_network_id: varint
897
+ if craft_creative:
898
+ # The stack ID of the creative item that is being created. This is one of the
899
+ # creative item stack IDs sent in the CreativeContent packet.
900
+ item_id: varint
901
+ if optional:
902
+ # For the cartography table, if a certain MULTI recipe is being called, this points to the network ID that was assigned.
903
+ recipe_network_id: varint
904
+ # Most likely the index in the request's filter strings that this action is using
905
+ filtered_string_index: li32
906
+ if non_implemented: void
907
+ if results_deprecated:
908
+ result_items: ItemLegacy[]varint
909
+ times_crafted: u8
910
+ # CustomNames is a list of custom names involved in the request. This is typically filled with one string
911
+ # when an anvil is used.
912
+ # * Used for the server to determine which strings should be filtered. Used in anvils to verify a renamed item.
913
+ custom_names: string[]varint
914
+
915
+ # ItemStackResponse is a response to an individual ItemStackRequest.
916
+ ItemStackResponses: []varint
917
+ # Status specifies if the request with the RequestID below was successful. If this is the case, the
918
+ # ContainerInfo below will have information on what slots ended up changing. If not, the container info
919
+ # will be empty.
920
+ # A non-0 status means an error occurred and will result in the action being reverted.
921
+ status: u8 =>
922
+ 0: ok
923
+ 1: error
924
+ # RequestID is the unique ID of the request that this response is in reaction to. If rejected, the client
925
+ # will undo the actions from the request with this ID.
926
+ request_id: varint
927
+ _: status ?
928
+ if ok:
929
+ # ContainerInfo holds information on the containers that had their contents changed as a result of the
930
+ # request.
931
+ containers: []varint
932
+ # ContainerID is the container ID of the container that the slots that follow are in. For the main
933
+ # inventory, this value seems to be 0x1b. For the cursor, this value seems to be 0x3a. For the crafting
934
+ # grid, this value seems to be 0x0d.
935
+ # * actually, this is ContainerSlotType - used by the inventory system that specifies the type of slot
936
+ slot_type: ContainerSlotType
937
+ # SlotInfo holds information on what item stack should be present in specific slots in the container.
938
+ slots: []varint
939
+ # Slot and HotbarSlot seem to be the same value every time: The slot that was actually changed. I'm not
940
+ # sure if these slots ever differ.
941
+ slot: u8
942
+ hotbar_slot: u8
943
+ # Count is the total count of the item stack. This count will be shown client-side after the response is
944
+ # sent to the client.
945
+ count: u8
946
+ # StackNetworkID is the network ID of the new stack at a specific slot.
947
+ item_stack_id: varint
948
+ # CustomName is the custom name of the item stack. It is used in relation to text filtering.
949
+ custom_name: string
950
+ # DurabilityCorrection is the current durability of the item stack. This durability will be shown
951
+ # client-side after the response is sent to the client.
952
+ durability_correction: zigzag32
953
+
954
+
955
+ ItemComponentList: []varint
956
+ # Name is the name of the item, which is a name like 'minecraft:stick'.
957
+ name: string
958
+ # Data is a map containing the components and properties of the item.
959
+ nbt: nbt
960
+
961
+ CommandOrigin:
962
+ # Origin is one of the values above that specifies the origin of the command. The origin may change,
963
+ # depending on what part of the client actually called the command. The command may be issued by a
964
+ # websocket server, for example.
965
+ type: varint =>
966
+ 0: player
967
+ 1: block
968
+ 2: minecart_block
969
+ 3: dev_console
970
+ 4: test
971
+ 5: automation_player
972
+ 6: client_automation
973
+ 7: dedicated_server
974
+ 8: entity
975
+ 9: virtual
976
+ 10: game_argument
977
+ 11: entity_server
978
+ 12: precompiled
979
+ 13: game_director_entity_server # ?
980
+ 14: script
981
+
982
+ # UUID is the UUID of the command called. This UUID is a bit odd as it is not specified by the server. It
983
+ # is not clear what exactly this UUID is meant to identify, but it is unique for each command called.
984
+ uuid: uuid
985
+ # RequestID is an ID that identifies the request of the client. The server should send a CommandOrigin
986
+ # with the same request ID to ensure it can be matched with the request by the caller of the command.
987
+ # This is especially important for websocket servers and it seems that this field is only non-empty for
988
+ # these websocket servers.
989
+ request_id: string
990
+ # PlayerUniqueID is an ID that identifies the player, the same as the one found in the AdventureSettings
991
+ # packet. Filling it out with 0 seems to work.
992
+ # PlayerUniqueID is only written if Origin is CommandOriginDevConsole or CommandOriginTest.
993
+ player_entity_id: type?
994
+ if dev_console or test:
995
+ player_entity_id: zigzag64
996
+
997
+ # MapTrackedObject is an object on a map that is 'tracked' by the client, such as an entity or a block. This
998
+ # object may move, which is handled client-side.
999
+ TrackedObject:
1000
+ # Type is the type of the tracked object. It is either MapObjectTypeEntity or MapObjectTypeBlock.
1001
+ type: li32 =>
1002
+ 0: entity
1003
+ 1: block
1004
+ # EntityUniqueID is the unique ID of the entity, if the tracked object was an entity. It needs not to be
1005
+ # filled out if Type is not MapObjectTypeEntity.
1006
+ entity_unique_id: type ?
1007
+ if entity: zigzag64
1008
+ # BlockPosition is the position of the block, if the tracked object was a block. It needs not to be
1009
+ # filled out if Type is not MapObjectTypeBlock.
1010
+ block_position: type ?
1011
+ if block: BlockCoordinates
1012
+
1013
+ # MapDecoration is a fixed decoration on a map: Its position or other properties do not change automatically
1014
+ # client-side.
1015
+ MapDecoration:
1016
+ type: u8
1017
+ # Rotation is the rotation of the map decoration. It is byte due to the 16 fixed directions that the
1018
+ # map decoration may face.
1019
+ rotation: u8
1020
+ # X is the offset on the X axis in pixels of the decoration.
1021
+ x: u8
1022
+ # Y is the offset on the Y axis in pixels of the decoration.
1023
+ y: u8
1024
+ # Label is the name of the map decoration. This name may be of any value.
1025
+ label: string
1026
+ # Colour is the colour of the map decoration. Some map decoration types have a specific colour set
1027
+ # automatically, whereas others may be changed.
1028
+ color_abgr: varint
1029
+
1030
+
1031
+ StructureBlockSettings:
1032
+ # PaletteName is the name of the palette used in the structure. Currently, it seems that this field is
1033
+ # always 'default'.
1034
+ palette_name: string
1035
+ # IgnoreEntities specifies if the structure should ignore entities or include them. If set to false,
1036
+ # entities will also show up in the exported structure.
1037
+ ignore_entities: bool
1038
+ # IgnoreBlocks specifies if the structure should ignore blocks or include them. If set to false, blocks
1039
+ # will show up in the exported structure.
1040
+ ignore_blocks: bool
1041
+ # Size is the size of the area that is about to be exported. The area exported will start at the
1042
+ # Position + Offset, and will extend as far as Size specifies.
1043
+ size: BlockCoordinates
1044
+ # Offset is the offset position that was set in the structure block. The area exported is offset by this
1045
+ # position.
1046
+ # **TODO**: This will be renamed to offset soon
1047
+ structure_offset: BlockCoordinates
1048
+ # LastEditingPlayerUniqueID is the unique ID of the player that last edited the structure block that
1049
+ # these settings concern.
1050
+ last_editing_player_unique_id: zigzag64
1051
+ # Rotation is the rotation that the structure block should obtain. See the constants above for available
1052
+ # options.
1053
+ rotation: u8 =>
1054
+ 0: none
1055
+ 1: 90_deg
1056
+ 2: 180_deg
1057
+ 3: 270_deg
1058
+ # Mirror specifies the way the structure should be mirrored. It is either no mirror at all, mirror on the
1059
+ # x/z axis or both.
1060
+ mirror: u8 =>
1061
+ 0: none
1062
+ 1: x_axis
1063
+ 2: z_axis
1064
+ 3: both_axes
1065
+ animation_mode: u8 =>
1066
+ 0: none
1067
+ 1: layers
1068
+ 2: blocks
1069
+ # How long the duration for this animation is
1070
+ animation_duration: lf32
1071
+ # Integrity is usually 1, but may be set to a number between 0 and 1 to omit blocks randomly, using
1072
+ # the Seed that follows.
1073
+ integrity: lf32
1074
+ # Seed is the seed used to omit blocks if Integrity is not equal to one. If the Seed is 0, a random
1075
+ # seed is selected to omit blocks.
1076
+ seed: lu32
1077
+ # Pivot is the pivot around which the structure may be rotated.
1078
+ pivot: vec3f
1079
+
1080
+ # EducationSharedResourceURI is an education edition feature that is used for transmitting
1081
+ # education resource settings to clients. It contains a button name and a link URL.
1082
+ EducationSharedResourceURI:
1083
+ # ButtonName is the button name of the resource URI.
1084
+ button_name: string
1085
+ # LinkURI is the link URI for the resource URI.
1086
+ link_uri: string
1087
+
1088
+ EducationExternalLinkSettings:
1089
+ # URL is the external link URL.
1090
+ url: string
1091
+ # DisplayName is the display name in game.
1092
+ display_name: string
1093
+
1094
+ BlockUpdate:
1095
+ position: BlockCoordinates
1096
+ runtime_id: varint
1097
+ flags: varint
1098
+ # EntityUniqueID is the unique ID of the falling block entity that the block transitions to or that the
1099
+ # entity transitions from.
1100
+ # Note that for both possible values for TransitionType, the EntityUniqueID should point to the falling
1101
+ # block entity involved.
1102
+ entity_unique_id: zigzag64
1103
+ # TransitionType is the type of the transition that happened. It is either BlockToEntityTransition, when
1104
+ # a block placed becomes a falling entity, or EntityToBlockTransition, when a falling entity hits the
1105
+ # ground and becomes a solid block again.
1106
+ transition_type: varint => TransitionType
1107
+
1108
+ TransitionType: =>
1109
+ # For falling sand, when a sand turns to an entity
1110
+ 0: entity
1111
+ # When sand turns back to a new block
1112
+ 1: create
1113
+ 2: destroy
1114
+
1115
+ MaterialReducer:
1116
+ mix: varint
1117
+ items:
1118
+ network_id: varint
1119
+ count: varint
1120
+
1121
+ # List of Window IDs. When a new container is opened (container_open), a new sequential Window ID is created.
1122
+ # Below window IDs are hard-coded and created when the game starts and the server does not
1123
+ # send a `container_open` for them.
1124
+ WindowID: i8 =>
1125
+ -100: drop_contents
1126
+ -24: beacon
1127
+ -23: trading_output
1128
+ -22: trading_use_inputs
1129
+ -21: trading_input_2
1130
+ -20: trading_input_1
1131
+ -17: enchant_output
1132
+ -16: enchant_material
1133
+ -15: enchant_input
1134
+ -13: anvil_output
1135
+ -12: anvil_result
1136
+ -11: anvil_material
1137
+ -10: container_input
1138
+ -5: crafting_use_ingredient
1139
+ -4: crafting_result
1140
+ -3: crafting_remove_ingredient
1141
+ -2: crafting_add_ingredient
1142
+ -1: none
1143
+ 0: inventory
1144
+ 1: first
1145
+ 100: last
1146
+ 119: offhand
1147
+ 120: armor
1148
+ 121: creative
1149
+ 122: hotbar
1150
+ 123: fixed_inventory
1151
+ 124: ui
1152
+
1153
+ WindowIDVarint: varint =>
1154
+ -100: drop_contents
1155
+ -24: beacon
1156
+ -23: trading_output
1157
+ -22: trading_use_inputs
1158
+ -21: trading_input_2
1159
+ -20: trading_input_1
1160
+ -17: enchant_output
1161
+ -16: enchant_material
1162
+ -15: enchant_input
1163
+ -13: anvil_output
1164
+ -12: anvil_result
1165
+ -11: anvil_material
1166
+ -10: container_input
1167
+ -5: crafting_use_ingredient
1168
+ -4: crafting_result
1169
+ -3: crafting_remove_ingredient
1170
+ -2: crafting_add_ingredient
1171
+ -1: none
1172
+ 0: inventory
1173
+ 1: first
1174
+ 100: last
1175
+ 119: offhand
1176
+ 120: armor
1177
+ 121: creative
1178
+ 122: hotbar
1179
+ 123: fixed_inventory
1180
+ 124: ui
1181
+
1182
+ WindowType: i8 =>
1183
+ -9: none
1184
+ -1: inventory
1185
+ 0: container
1186
+ 1: workbench
1187
+ 2: furnace
1188
+ 3: enchantment
1189
+ 4: brewing_stand
1190
+ 5: anvil
1191
+ 6: dispenser
1192
+ 7: dropper
1193
+ 8: hopper
1194
+ 9: cauldron
1195
+ 10: minecart_chest
1196
+ 11: minecart_hopper
1197
+ 12: horse
1198
+ 13: beacon
1199
+ 14: structure_editor
1200
+ 15: trading
1201
+ 16: command_block
1202
+ 17: jukebox
1203
+ 18: armor
1204
+ 19: hand
1205
+ 20: compound_creator
1206
+ 21: element_constructor
1207
+ 22: material_reducer
1208
+ 23: lab_table
1209
+ 24: loom
1210
+ 25: lectern
1211
+ 26: grindstone
1212
+ 27: blast_furnace
1213
+ 28: smoker
1214
+ 29: stonecutter
1215
+ 30: cartography
1216
+ 31: hud
1217
+ 32: jigsaw_editor
1218
+ 33: smithing_table
1219
+
1220
+ # Used in inventory transactions.
1221
+ ContainerSlotType: u8 =>
1222
+ - anvil_input
1223
+ - anvil_material
1224
+ - anvil_result
1225
+ - smithing_table_input
1226
+ - smithing_table_material
1227
+ - smithing_table_result
1228
+ - armor
1229
+ - container
1230
+ - beacon_payment
1231
+ - brewing_input
1232
+ - brewing_result
1233
+ - brewing_fuel
1234
+ - hotbar_and_inventory
1235
+ - crafting_input
1236
+ - crafting_output
1237
+ - recipe_construction
1238
+ - recipe_nature
1239
+ - recipe_items
1240
+ - recipe_search
1241
+ - recipe_search_bar
1242
+ - recipe_equipment
1243
+ - enchanting_input
1244
+ - enchanting_lapis
1245
+ - furnace_fuel
1246
+ - furnace_ingredient
1247
+ - furnace_output
1248
+ - horse_equip
1249
+ - hotbar
1250
+ - inventory
1251
+ - shulker
1252
+ - trade_ingredient1
1253
+ - trade_ingredient2
1254
+ - trade_result
1255
+ - offhand
1256
+ - compcreate_input
1257
+ - compcreate_output
1258
+ - elemconstruct_output
1259
+ - matreduce_input
1260
+ - matreduce_output
1261
+ - labtable_input
1262
+ - loom_input
1263
+ - loom_dye
1264
+ - loom_material
1265
+ - loom_result
1266
+ - blast_furnace_ingredient
1267
+ - smoker_ingredient
1268
+ - trade2_ingredient1
1269
+ - trade2_ingredient2
1270
+ - trade2_result
1271
+ - grindstone_input
1272
+ - grindstone_additional
1273
+ - grindstone_result
1274
+ - stonecutter_input
1275
+ - stonecutter_result
1276
+ - cartography_input
1277
+ - cartography_additional
1278
+ - cartography_result
1279
+ - barrel
1280
+ - cursor
1281
+ - creative_output
1282
+
1283
+ SoundType: varint =>
1284
+ - ItemUseOn
1285
+ - Hit
1286
+ - Step
1287
+ - Fly
1288
+ - Jump
1289
+ - Break
1290
+ - Place
1291
+ - HeavyStep
1292
+ - Gallop
1293
+ - Fall
1294
+ - Ambient
1295
+ - AmbientBaby
1296
+ - AmbientInWater
1297
+ - Breathe
1298
+ - Death
1299
+ - DeathInWater
1300
+ - DeathToZombie
1301
+ - Hurt
1302
+ - HurtInWater
1303
+ - Mad
1304
+ - Boost
1305
+ - Bow
1306
+ - SquishBig
1307
+ - SquishSmall
1308
+ - FallBig
1309
+ - FallSmall
1310
+ - Splash
1311
+ - Fizz
1312
+ - Flap
1313
+ - Swim
1314
+ - Drink
1315
+ - Eat
1316
+ - Takeoff
1317
+ - Shake
1318
+ - Plop
1319
+ - Land
1320
+ - Saddle
1321
+ - Armor
1322
+ - MobArmorStandPlace
1323
+ - AddChest
1324
+ - Throw
1325
+ - Attack
1326
+ - AttackNoDamage
1327
+ - AttackStrong
1328
+ - Warn
1329
+ - Shear
1330
+ - Milk
1331
+ - Thunder
1332
+ - Explode
1333
+ - Fire
1334
+ - Ignite
1335
+ - Fuse
1336
+ - Stare
1337
+ - Spawn
1338
+ - Shoot
1339
+ - BreakBlock
1340
+ - Launch
1341
+ - Blast
1342
+ - LargeBlast
1343
+ - Twinkle
1344
+ - Remedy
1345
+ - Infect
1346
+ - LevelUp
1347
+ - BowHit
1348
+ - BulletHit
1349
+ - ExtinguishFire
1350
+ - ItemFizz
1351
+ - ChestOpen
1352
+ - ChestClosed
1353
+ - ShulkerBoxOpen
1354
+ - ShulkerBoxClosed
1355
+ - EnderChestOpen
1356
+ - EnderChestClosed
1357
+ - PowerOn
1358
+ - PowerOff
1359
+ - Attach
1360
+ - Detach
1361
+ - Deny
1362
+ - Tripod
1363
+ - Pop
1364
+ - DropSlot
1365
+ - Note
1366
+ - Thorns
1367
+ - PistonIn
1368
+ - PistonOut
1369
+ - Portal
1370
+ - Water
1371
+ - LavaPop
1372
+ - Lava
1373
+ - Burp
1374
+ - BucketFillWater
1375
+ - BucketFillLava
1376
+ - BucketEmptyWater
1377
+ - BucketEmptyLava
1378
+ - ArmorEquipChain
1379
+ - ArmorEquipDiamond
1380
+ - ArmorEquipGeneric
1381
+ - ArmorEquipGold
1382
+ - ArmorEquipIron
1383
+ - ArmorEquipLeather
1384
+ - ArmorEquipElytra
1385
+ - Record13
1386
+ - RecordCat
1387
+ - RecordBlocks
1388
+ - RecordChirp
1389
+ - RecordFar
1390
+ - RecordMall
1391
+ - RecordMellohi
1392
+ - RecordStal
1393
+ - RecordStrad
1394
+ - RecordWard
1395
+ - Record11
1396
+ - RecordWait
1397
+ - unknown1
1398
+ - Flop
1399
+ - ElderGuardianCurse
1400
+ - MobWarning
1401
+ - MobWarningBaby
1402
+ - Teleport
1403
+ - ShulkerOpen
1404
+ - ShulkerClose
1405
+ - Haggle
1406
+ - HaggleYes
1407
+ - HaggleNo
1408
+ - HaggleIdle
1409
+ - ChorusGrow
1410
+ - ChorusDeath
1411
+ - Glass
1412
+ - PotionBrewed
1413
+ - CastSpell
1414
+ - PrepareAttack
1415
+ - PrepareSummon
1416
+ - PrepareWololo
1417
+ - Fang
1418
+ - Charge
1419
+ - CameraTakePicture
1420
+ - LeashKnotPlace
1421
+ - LeashKnotBreak
1422
+ - Growl
1423
+ - Whine
1424
+ - Pant
1425
+ - Purr
1426
+ - Purreow
1427
+ - DeathMinVolume
1428
+ - DeathMidVolume
1429
+ - unknown2
1430
+ - ImitateCaveSpider
1431
+ - ImitateCreeper
1432
+ - ImitateElderGuardian
1433
+ - ImitateEnderDragon
1434
+ - ImitateEnderman
1435
+ - unknown3
1436
+ - ImitateEvocationIllager
1437
+ - ImitateGhast
1438
+ - ImitateHusk
1439
+ - ImitateIllusionIllager
1440
+ - ImitateMagmaCube
1441
+ - ImitatePolarBear
1442
+ - ImitateShulker
1443
+ - ImitateSilverfish
1444
+ - ImitateSkeleton
1445
+ - ImitateSlime
1446
+ - ImitateSpider
1447
+ - ImitateStray
1448
+ - ImitateVex
1449
+ - ImitateVindicationIllager
1450
+ - ImitateWitch
1451
+ - ImitateWither
1452
+ - ImitateWitherSkeleton
1453
+ - ImitateWolf
1454
+ - ImitateZombie
1455
+ - ImitateZombiePigman
1456
+ - ImitateZombieVillager
1457
+ - BlockEndPortalFrameFill
1458
+ - BlockEndPortalSpawn
1459
+ - RandomAnvilUse
1460
+ - BottleDragonBreath
1461
+ - PortalTravel
1462
+ - ItemTridentHit
1463
+ - ItemTridentReturn
1464
+ - ItemTridentRiptide1
1465
+ - ItemTridentRiptide2
1466
+ - ItemTridentRiptide3
1467
+ - ItemTridentThrow
1468
+ - ItemTridentThunder
1469
+ - ItemTridentHitGround
1470
+ - Default
1471
+ - BlockFletchingTableUse
1472
+ - ElemConstructOpen
1473
+ - IceBombHit
1474
+ - BalloonPop
1475
+ - LtReactionIceBomb
1476
+ - LtReactionBleach
1477
+ - LtReactionEPaste
1478
+ - LtReactionEPaste2
1479
+ - LtReactionFertilizer
1480
+ - LtReactionFireball
1481
+ - LtReactionMgsalt
1482
+ - LtReactionMiscfire
1483
+ - LtReactionFire
1484
+ - LtReactionMiscexplosion
1485
+ - LtReactionMiscmystical
1486
+ - LtReactionMiscmystical2
1487
+ - LtReactionProduct
1488
+ - SparklerUse
1489
+ - GlowstickUse
1490
+ - SparklerActive
1491
+ - ConvertToDrowned
1492
+ - BucketFillFish
1493
+ - BucketEmptyFish
1494
+ - BubbleUp
1495
+ - BubbleDown
1496
+ - BubblePop
1497
+ - BubbleUpInside
1498
+ - BubbleDownInside
1499
+ - HurtBaby
1500
+ - DeathBaby
1501
+ - StepBaby
1502
+ - BabySpawn
1503
+ - Born
1504
+ - BlockTurtleEggBreak
1505
+ - BlockTurtleEggCrack
1506
+ - BlockTurtleEggHatch
1507
+ - TurtleLayEgg
1508
+ - BlockTurtleEggAttack
1509
+ - BeaconActivate
1510
+ - BeaconAmbient
1511
+ - BeaconDeactivate
1512
+ - BeaconPower
1513
+ - ConduitActivate
1514
+ - ConduitAmbient
1515
+ - ConduitAttack
1516
+ - ConduitDeactivate
1517
+ - ConduitShort
1518
+ - Swoop
1519
+ - BlockBambooSaplingPlace
1520
+ - PreSneeze
1521
+ - Sneeze
1522
+ - AmbientTame
1523
+ - Scared
1524
+ - BlockScaffoldingClimb
1525
+ - CrossbowLoadingStart
1526
+ - CrossbowLoadingMiddle
1527
+ - CrossbowLoadingEnd
1528
+ - CrossbowShoot
1529
+ - CrossbowQuickChargeStart
1530
+ - CrossbowQuickChargeMiddle
1531
+ - CrossbowQuickChargeEnd
1532
+ - AmbientAggressive
1533
+ - AmbientWorried
1534
+ - CantBreed
1535
+ - ItemShieldBlock
1536
+ - ItemBookPut
1537
+ - BlockGrindstoneUse
1538
+ - BlockBellHit
1539
+ - BlockCampfireCrackle
1540
+ - Roar
1541
+ - Stun
1542
+ - BlockSweetBerryBushHurt
1543
+ - BlockSweetBerryBushPick
1544
+ - UICartographyTableTakeResult
1545
+ - UIStoneCutterTakeResult
1546
+ - BlockComposterEmpty
1547
+ - BlockComposterFill
1548
+ - BlockComposterFillSuccess
1549
+ - BlockComposterReady
1550
+ - BlockBarrelOpen
1551
+ - BlockBarrelClose
1552
+ - RaidHorn
1553
+ - BlockLoomUse
1554
+ - AmbientRaid
1555
+ - UICartographyTableUse
1556
+ - UIStoneCutterUse
1557
+ - UILoomUse
1558
+ - SmokerUse
1559
+ - BlastFurnaceUse
1560
+ - SmithingTableUse
1561
+ - Screech
1562
+ - Sleep
1563
+ - FurnaceUse
1564
+ - MooshroomConvert
1565
+ - MilkSuspiciously
1566
+ - Celebrate
1567
+ - JumpPrevent
1568
+ - AmbientPollinate
1569
+ - BeeHiveDrip
1570
+ - BeeHiveEnter
1571
+ - BeeHiveExit
1572
+ - BeeHiveWork
1573
+ - BeeHiveShear
1574
+ - HoneyBottleDrink
1575
+ - AmbientCave
1576
+ - Retreat
1577
+ - ConvertToZombified
1578
+ - Admire
1579
+ - StepLava
1580
+ - Tempt
1581
+ - Panic
1582
+ - Angry
1583
+ - AmbientWarpedForest
1584
+ - AmbientSoulsandValley
1585
+ - AmbientNetherWastes
1586
+ - AmbientBasaltDeltas
1587
+ - AmbientCrimsonForest
1588
+ - RespawnAnchorCharge
1589
+ - RespawnAnchorDeplete
1590
+ - RespawnAnchorSetSpawn
1591
+ - RespawnAnchorAmbient
1592
+ - SoulEscapeQuiet
1593
+ - SoulEscapeLoud
1594
+ - RecordPigstep
1595
+ - LinkCompassToLodestone
1596
+ - BlockSmithingTableUse
1597
+ - EquipNetherite
1598
+ - AmbientLoopWarpedForest
1599
+ - AmbientLoopSoulsandValley
1600
+ - AmbientLoopNetherWastes
1601
+ - AmbientLoopBasaltDeltas
1602
+ - AmbientLoopCrimsonForest
1603
+ - AmbientAdditionWarpedForest
1604
+ - AmbientAdditionSoulsandValley
1605
+ - AmbientAdditionNetherWastes
1606
+ - AmbientAdditionBasaltDeltas
1607
+ - AmbientAdditionCrimsonForest
1608
+ - SculkSensorPowerOn
1609
+ - SculkSensorPowerOff
1610
+ - BucketFillPowderSnow
1611
+ - BucketEmptyPowderSnow
1612
+ - PointedDripstoneCauldronDripWater
1613
+ - PointedDripstoneCauldronDripLava
1614
+ - PointedDripstoneDripWater
1615
+ - PointedDripstoneDripLava
1616
+ - CaveVinesPickBerries
1617
+ - BigDripleafTiltDown
1618
+ - BigDripleafTiltUp
1619
+ - unknown335
1620
+ - unknown336
1621
+ - unknown337
1622
+ - unknown338
1623
+ - copper_wax_on
1624
+ - copper_wax_off
1625
+ - scrape
1626
+ - player_hurt_drown
1627
+ - player_hurt_on_fire
1628
+ - player_hurt_freeze
1629
+ - use_spyglass
1630
+ - stop_using_spyglass
1631
+ - amethyst_block_chime
1632
+ - ambient_screamer
1633
+ - hurt_screamer
1634
+ - death_screamer
1635
+ - milk_screamer
1636
+ - jump_to_block
1637
+ - pre_ram
1638
+ - pre_ram_screamer
1639
+ - ram_impact
1640
+ - ram_impact_screamer
1641
+ - squid_ink_squirt
1642
+ - glow_squid_ink_squirt
1643
+ - convert_to_stray
1644
+ - extinguish_candle
1645
+ - ambient_candle
1646
+ - Undefined
1647
+
1648
+ # TODO: remove?
1649
+ LegacyEntityType: li32 =>
1650
+ 10: chicken
1651
+ 11: cow
1652
+ 12: pig
1653
+ 13: sheep
1654
+ 14: wolf
1655
+ 15: villager
1656
+ 16: mooshroom
1657
+ 17: squid
1658
+ 18: rabbit
1659
+ 19: bat
1660
+ 20: iron_golem
1661
+ 21: snow_golem
1662
+ 22: ocelot
1663
+ 23: horse
1664
+ 24: donkey
1665
+ 25: mule
1666
+ 26: skeleton_horse
1667
+ 27: zombie_horse
1668
+ 28: polar_bear
1669
+ 29: llama
1670
+ 30: parrot
1671
+ 31: dolphin
1672
+ 32: zombie
1673
+ 33: creeper
1674
+ 34: skeleton
1675
+ 35: spider
1676
+ 36: zombie_pigman
1677
+ 37: slime
1678
+ 38: enderman
1679
+ 39: silverfish
1680
+ 40: cave_spider
1681
+ 41: ghast
1682
+ 42: magma_cube
1683
+ 43: blaze
1684
+ 44: zombie_villager
1685
+ 45: witch
1686
+ 46: stray
1687
+ 47: husk
1688
+ 48: wither_skeleton
1689
+ 49: guardian
1690
+ 50: elder_guardian
1691
+ 51: npc
1692
+ 52: wither
1693
+ 53: ender_dragon
1694
+ 54: shulker
1695
+ 55: endermite
1696
+ 56: agent # LEARN_TO_CODE_MASCOT
1697
+ 57: vindicator
1698
+ 58: phantom
1699
+ 61: armor_stand
1700
+ 62: tripod_camera
1701
+ 63: player
1702
+ 64: item
1703
+ 65: tnt
1704
+ 66: falling_block
1705
+ 67: moving_block
1706
+ 68: xp_bottle
1707
+ 69: xp_orb
1708
+ 70: eye_of_ender_signal
1709
+ 71: ender_crystal
1710
+ 72: fireworks_rocket
1711
+ 73: thrown_trident
1712
+ 74: turtle
1713
+ 75: cat
1714
+ 76: shulker_bullet
1715
+ 77: fishing_hook
1716
+ 78: chalkboard
1717
+ 79: dragon_fireball
1718
+ 80: arrow
1719
+ 81: snowball
1720
+ 82: egg
1721
+ 83: painting
1722
+ 84: minecart
1723
+ 85: fireball
1724
+ 86: splash_potion
1725
+ 87: ender_pearl
1726
+ 88: leash_knot
1727
+ 89: wither_skull
1728
+ 90: boat
1729
+ 91: wither_skull_dangerous
1730
+ 93: lightning_bolt
1731
+ 94: small_fireball
1732
+ 95: area_effect_cloud
1733
+ 96: hopper_minecart
1734
+ 97: tnt_minecart
1735
+ 98: chest_minecart
1736
+ 100: command_block_minecart
1737
+ 101: lingering_potion
1738
+ 102: llama_spit
1739
+ 103: evocation_fang
1740
+ 104: evocation_illager
1741
+ 105: vex
1742
+ 106: ice_bomb
1743
+ 107: balloon
1744
+ 108: pufferfish
1745
+ 109: salmon
1746
+ 110: drowned
1747
+ 111: tropicalfish
1748
+ 112: cod
1749
+ 113: panda