minecraft-data 3.95.0 → 3.95.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.95.1
4
+
5
+ * update `minecraft-data`
6
+
3
7
  ## 3.95.0
4
8
 
5
9
  * update `minecraft-data`
package/index.d.ts CHANGED
@@ -504,25 +504,18 @@ declare namespace MinecraftData {
504
504
  }
505
505
 
506
506
 
507
- type VersionForFeatureIdentification = string;
507
+ type FeatureEntry =
508
+ | {
509
+ [k: string]: unknown;
510
+ }
511
+ | {
512
+ [k: string]: unknown;
513
+ }
514
+ | {
515
+ [k: string]: unknown;
516
+ };
508
517
  type Features = FeatureEntry[];
509
518
 
510
- interface FeatureEntry {
511
- /**
512
- * The name of the feature
513
- */
514
- name?: string;
515
- /**
516
- * The description of the feature
517
- */
518
- description?: string;
519
- /**
520
- * A tuple that describes the range of versions in the range
521
- */
522
- versions?: VersionForFeatureIdentification[];
523
- [k: string]: unknown;
524
- }
525
-
526
519
 
527
520
  type Foods = Food[];
528
521
 
@@ -1163,19 +1156,19 @@ declare namespace MinecraftData {
1163
1156
  * sign text send when updating signs is send as stringified strings */
1164
1157
  "sendStringifiedSignText": boolean;
1165
1158
  /** `1.13 - latest`
1166
- * undefined */
1159
+ * uses block states for block identification instead of block ID + metadata */
1167
1160
  "usesBlockStates": boolean;
1168
1161
  /** `1.17 - latest`
1169
- * undefined */
1162
+ * effect names match their registry names rather than legacy names */
1170
1163
  "effectNamesMatchRegistryName": boolean;
1171
1164
  /** `1.9 - latest`
1172
- * undefined */
1165
+ * shields are equipped in the off-hand slot */
1173
1166
  "shieldSlot": boolean;
1174
1167
  /** `1.14 - latest`
1175
- * undefined */
1168
+ * inventory windows introduced in Village & Pillage update */
1176
1169
  "village&pillageInventoryWindows": boolean;
1177
1170
  /** `1.16 - latest`
1178
- * undefined */
1171
+ * inventory windows introduced in Nether Update */
1179
1172
  "netherUpdateInventoryWindows": boolean;
1180
1173
  /** `1.8 - 1.8.9`
1181
1174
  * Chunk unloading is done by sending an empty chunk */
@@ -11997,7 +11997,10 @@
11997
11997
  },
11998
11998
  {
11999
11999
  "name": "angular_velocity",
12000
- "type": "lf32"
12000
+ "type": [
12001
+ "option",
12002
+ "lf32"
12003
+ ]
12001
12004
  },
12002
12005
  {
12003
12006
  "name": "on_ground",
@@ -14326,4 +14329,4 @@
14326
14329
  ]
14327
14330
  ]
14328
14331
  }
14329
- }
14332
+ }
@@ -16,6 +16,7 @@
16
16
  },
17
17
  {
18
18
  "name": "usesBlockStates",
19
+ "description": "uses block states for block identification instead of block ID + metadata",
19
20
  "versions": ["1.16_major", "latest"]
20
21
  },
21
22
  {
@@ -3544,7 +3544,7 @@ packet_correct_player_move_prediction:
3544
3544
  # Delta is the change in position compared to what the client sent as its position at that specific tick.
3545
3545
  delta: vec3f
3546
3546
  rotation: vec2f
3547
- angular_velocity: lf32
3547
+ angular_velocity?: lf32
3548
3548
  # OnGround specifies if the player was on the ground at the time of the tick below.
3549
3549
  on_ground: bool
3550
3550
  # Tick is the tick of the movement which was corrected by this packet.
@@ -452,6 +452,7 @@
452
452
  },
453
453
  {
454
454
  "name": "usesBlockStates",
455
+ "description": "uses block states for block identification instead of block ID + metadata",
455
456
  "versions": [
456
457
  "1.13",
457
458
  "latest"
@@ -459,6 +460,7 @@
459
460
  },
460
461
  {
461
462
  "name": "effectNamesMatchRegistryName",
463
+ "description": "effect names match their registry names rather than legacy names",
462
464
  "versions": [
463
465
  "1.17",
464
466
  "latest"
@@ -466,6 +468,7 @@
466
468
  },
467
469
  {
468
470
  "name": "shieldSlot",
471
+ "description": "shields are equipped in the off-hand slot",
469
472
  "versions": [
470
473
  "1.9",
471
474
  "latest"
@@ -473,6 +476,7 @@
473
476
  },
474
477
  {
475
478
  "name": "village&pillageInventoryWindows",
479
+ "description": "inventory windows introduced in Village & Pillage update",
476
480
  "versions": [
477
481
  "1.14",
478
482
  "latest"
@@ -480,6 +484,7 @@
480
484
  },
481
485
  {
482
486
  "name": "netherUpdateInventoryWindows",
487
+ "description": "inventory windows introduced in Nether Update",
483
488
  "versions": [
484
489
  "1.16",
485
490
  "latest"
@@ -1,3 +1,7 @@
1
+ ## 3.95.1
2
+ * [Fix features schema inconsistencies and validation issues (#1047)](https://github.com/PrismarineJS/minecraft-data/commit/c949824c7a34c0f8a5ed2b3d0d3240a964eeadd5) (thanks @rom1504)
3
+ * [Fix bedrock 1.21.100 packet_correct_player_move_prediction (#1044)](https://github.com/PrismarineJS/minecraft-data/commit/b6a81e62cf37e0eb9fdfb3477782219ff6b85adb) (thanks @TSL534)
4
+
1
5
  ## 3.95.0
2
6
  * [Add bedrock 1.21.100 protocol data (#1041)](https://github.com/PrismarineJS/minecraft-data/commit/ae4cf26bd9a73478b6129ea404bef40db5e9f03e) (thanks @extremeheat)
3
7
  * [Fix pc "nbtNameForEnchant" feature versions (#986)](https://github.com/PrismarineJS/minecraft-data/commit/79ad67106787847f05faa68aaca3f3faea5cf9a1) (thanks @IKorzI)
@@ -16,16 +16,75 @@
16
16
  "type": "string",
17
17
  "pattern": ".+"
18
18
  },
19
+ "version": {
20
+ "description": "Single version where this feature applies",
21
+ "type": "string"
22
+ },
19
23
  "versions": {
20
- "description": "A tuple that describes the range of versions in the range",
24
+ "description": "A tuple that describes the range of versions where this feature applies [minVersion, maxVersion]",
25
+ "type": "array",
26
+ "items": {
27
+ "type": "string"
28
+ },
29
+ "minItems": 2,
30
+ "maxItems": 2,
31
+ "additionalItems": false
32
+ },
33
+ "values": {
34
+ "description": "Version-specific values for features that have different values across versions",
21
35
  "type": "array",
22
36
  "items": {
23
- "title": "versionForFeatureIdentification",
24
- "type": "string",
25
- "minItems": 2,
26
- "additionalItems": false
37
+ "title": "versionSpecificValue",
38
+ "type": "object",
39
+ "properties": {
40
+ "value": {
41
+ "description": "The value for this feature in the specified versions"
42
+ },
43
+ "version": {
44
+ "description": "Single version where this value applies",
45
+ "type": "string"
46
+ },
47
+ "versions": {
48
+ "description": "Version range where this value applies [minVersion, maxVersion]",
49
+ "type": "array",
50
+ "items": {
51
+ "type": "string"
52
+ },
53
+ "minItems": 2,
54
+ "maxItems": 2,
55
+ "additionalItems": false
56
+ }
57
+ },
58
+ "required": ["value"],
59
+ "oneOf": [
60
+ {
61
+ "required": ["version"],
62
+ "not": {"required": ["versions"]}
63
+ },
64
+ {
65
+ "required": ["versions"],
66
+ "not": {"required": ["version"]}
67
+ }
68
+ ],
69
+ "additionalProperties": false
27
70
  }
28
71
  }
29
- }
72
+ },
73
+ "required": ["name", "description"],
74
+ "oneOf": [
75
+ {
76
+ "required": ["version"],
77
+ "not": {"anyOf": [{"required": ["versions"]}, {"required": ["values"]}]}
78
+ },
79
+ {
80
+ "required": ["versions"],
81
+ "not": {"anyOf": [{"required": ["version"]}, {"required": ["values"]}]}
82
+ },
83
+ {
84
+ "required": ["values"],
85
+ "not": {"anyOf": [{"required": ["version"]}, {"required": ["versions"]}]}
86
+ }
87
+ ],
88
+ "additionalProperties": false
30
89
  }
31
90
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minecraft-data",
3
- "version": "3.95.0",
3
+ "version": "3.95.1",
4
4
  "description": "Provide easy access to minecraft data in node.js",
5
5
  "main": "index.js",
6
6
  "tonicExampleFilename": "example.js",