minecraft-data 3.15.0 → 3.15.2

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,13 @@
1
1
  # History
2
2
 
3
+ ## 3.15.2
4
+
5
+ * Fix entities by id
6
+
7
+ ## 3.15.1
8
+
9
+ * update `minecraft-data`
10
+
3
11
  ## 3.15.0
4
12
 
5
13
  * update `minecraft-data`
package/lib/indexes.js CHANGED
@@ -23,6 +23,7 @@ module.exports = function (mcData) {
23
23
  enchantmentsByName: indexer.buildIndexFromArray(mcData.enchantments, 'name'),
24
24
 
25
25
  entitiesByName: indexer.buildIndexFromArray(mcData.entities, 'name'),
26
+ entitiesById: indexer.buildIndexFromArray(mcData.entities, 'id'),
26
27
  mobsById: mcData.entities === undefined
27
28
  ? undefined
28
29
  : indexer.buildIndexFromArray(mcData.entities.filter(e => e.type === 'mob'), 'id'),
@@ -1468,7 +1468,7 @@
1468
1468
  "type": "i8"
1469
1469
  },
1470
1470
  {
1471
- "name": "headYaw",
1471
+ "name": "headPitch",
1472
1472
  "type": "i8"
1473
1473
  },
1474
1474
  {
@@ -1514,7 +1514,7 @@
1514
1514
  }
1515
1515
  ]
1516
1516
  ],
1517
- "packet_spawn_entity_living": [
1517
+ "packet_named_entity_spawn": [
1518
1518
  "container",
1519
1519
  [
1520
1520
  {
@@ -1522,7 +1522,7 @@
1522
1522
  "type": "varint"
1523
1523
  },
1524
1524
  {
1525
- "name": "entityUUID",
1525
+ "name": "playerUUID",
1526
1526
  "type": "UUID"
1527
1527
  },
1528
1528
  {
@@ -4733,7 +4733,7 @@
4733
4733
  "mappings": {
4734
4734
  "0x00": "spawn_entity",
4735
4735
  "0x01": "spawn_entity_experience_orb",
4736
- "0x02": "spawn_entity_living",
4736
+ "0x02": "named_entity_spawn",
4737
4737
  "0x03": "animation",
4738
4738
  "0x04": "statistics",
4739
4739
  "0x05": "acknowledge_player_digging",
@@ -4849,7 +4849,7 @@
4849
4849
  "fields": {
4850
4850
  "spawn_entity": "packet_spawn_entity",
4851
4851
  "spawn_entity_experience_orb": "packet_spawn_entity_experience_orb",
4852
- "spawn_entity_living": "packet_spawn_entity_living",
4852
+ "named_entity_spawn": "packet_named_entity_spawn",
4853
4853
  "animation": "packet_animation",
4854
4854
  "statistics": "packet_statistics",
4855
4855
  "acknowledge_player_digging": "packet_acknowledge_player_digging",
@@ -456,5 +456,10 @@
456
456
  "name": "clientboundChatHasSender",
457
457
  "description": "clientbound chat packet contains message sender's UUID",
458
458
  "versions": ["1.16_major", "latest"]
459
+ },
460
+ {
461
+ "name": "consolidatedEntitySpawnPacket",
462
+ "description": "One packet to add living and non-living entities",
463
+ "versions": ["1.19", "latest"]
459
464
  }
460
465
  ]
@@ -1,3 +1,6 @@
1
+ ## 3.15.1
2
+ * Fix pc1.19 entity spawn packet (#639)
3
+
1
4
  ## 3.15.0
2
5
 
3
6
  * added Burger extracted recipes.json for 1.19 (thanks @FCKJohni)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minecraft-data",
3
- "version": "3.15.0",
3
+ "version": "3.15.2",
4
4
  "description": "Provide easy access to minecraft data in node.js",
5
5
  "main": "index.js",
6
6
  "tonicExampleFilename": "example.js",