minecraft-data 3.110.0 → 3.110.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.
package/doc/history.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # History
2
2
 
3
+ ## 3.110.1
4
+
5
+ * update `minecraft-data`
6
+
3
7
  ## 3.110.0
4
8
 
5
9
  * update `minecraft-data`
@@ -569,8 +569,29 @@
569
569
  "type": "varint"
570
570
  },
571
571
  {
572
- "name": "extra_data",
573
- "type": "ByteArray"
572
+ "name": "extra",
573
+ "type": [
574
+ "switch",
575
+ {
576
+ "compareTo": "network_id",
577
+ "fields": {
578
+ "/ShieldItemID": [
579
+ "encapsulated",
580
+ {
581
+ "lengthType": "varint",
582
+ "type": "ItemExtraDataWithBlockingTick"
583
+ }
584
+ ]
585
+ },
586
+ "default": [
587
+ "encapsulated",
588
+ {
589
+ "lengthType": "varint",
590
+ "type": "ItemExtraDataWithoutBlockingTick"
591
+ }
592
+ ]
593
+ }
594
+ ]
574
595
  }
575
596
  ]
576
597
  ],
@@ -140,7 +140,10 @@ ItemNew:
140
140
  id: zigzag32
141
141
  default: void
142
142
  block_runtime_id: varint
143
- extra_data: ByteArray
143
+ extra: network_id ?
144
+ # The Shield Item ID is sent in the StartGame packet. It is usually 355 in vanilla.
145
+ if /ShieldItemID: '["encapsulated", { "lengthType": "varint", "type": "ItemExtraDataWithBlockingTick" }]'
146
+ default: '["encapsulated", { "lengthType": "varint", "type": "ItemExtraDataWithoutBlockingTick" }]'
144
147
 
145
148
  # An "ItemStack" here represents an Item instance. You can think about it like a pointer
146
149
  # to an item class. The data for the class gets updated with the data in the `item` field
@@ -1,3 +1,6 @@
1
+ ## 3.110.1
2
+ * [bedrock: fix 1.26.20 parsing of ItemNew extra data (#1183)](https://github.com/PrismarineJS/minecraft-data/commit/a57d00f1f964443f82549869e5e7745e2329d306) (thanks @hax0r31337)
3
+
1
4
  ## 3.110.0
2
5
  * [Add bedrock 1.26.20 protocol data (#1181)](https://github.com/PrismarineJS/minecraft-data/commit/a40d0f7607ad01d1e27e7736ef7f875c0b06c7b5) (thanks @extremeheat)
3
6
  * [Add blocks.json for Bedrock 26.10 (#1170)](https://github.com/PrismarineJS/minecraft-data/commit/c8f384109682caf87e502b2ddd6ce969ce5afba5) (thanks @M9CHKO)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minecraft-data",
3
- "version": "3.110.0",
3
+ "version": "3.110.1",
4
4
  "description": "Provide easy access to minecraft data in node.js",
5
5
  "main": "index.js",
6
6
  "tonicExampleFilename": "example.js",