minecraft-data 3.54.0 → 3.56.0

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.
@@ -1744,7 +1744,8 @@
1744
1744
  ],
1745
1745
  "packet_remove_resource_pack": [
1746
1746
  "container",
1747
- [{
1747
+ [
1748
+ {
1748
1749
  "name": "uuid",
1749
1750
  "type": [
1750
1751
  "option",
@@ -1755,7 +1756,8 @@
1755
1756
  ],
1756
1757
  "packet_add_resource_pack": [
1757
1758
  "container",
1758
- [{
1759
+ [
1760
+ {
1759
1761
  "name": "uuid",
1760
1762
  "type": "UUID"
1761
1763
  },
@@ -1947,7 +1949,8 @@
1947
1949
  ],
1948
1950
  "packet_resource_pack_receive": [
1949
1951
  "container",
1950
- [{
1952
+ [
1953
+ {
1951
1954
  "name": "uuid",
1952
1955
  "type": "UUID"
1953
1956
  },
@@ -2851,7 +2854,7 @@
2851
2854
  "type": [
2852
2855
  "option",
2853
2856
  "anonymousNbt"
2854
- ]
2857
+ ]
2855
2858
  }
2856
2859
  ]
2857
2860
  ],
@@ -4380,7 +4383,6 @@
4380
4383
  "string"
4381
4384
  ]
4382
4385
  }
4383
-
4384
4386
  ]
4385
4387
  ],
4386
4388
  "packet_remove_resource_pack": [
@@ -4710,7 +4712,7 @@
4710
4712
  "option",
4711
4713
  "varint"
4712
4714
  ],
4713
- "2":[
4715
+ "2": [
4714
4716
  "option",
4715
4717
  "varint"
4716
4718
  ]
@@ -4737,7 +4739,7 @@
4737
4739
  "default": "void"
4738
4740
  }
4739
4741
  ],
4740
- "2":[
4742
+ "2": [
4741
4743
  "switch",
4742
4744
  {
4743
4745
  "compareTo": "number_format",
@@ -5406,7 +5408,7 @@
5406
5408
  ],
5407
5409
  "minecraft:crafting_shaped": [
5408
5410
  "container",
5409
- [
5411
+ [
5410
5412
  {
5411
5413
  "name": "group",
5412
5414
  "type": "string"
@@ -5824,7 +5826,7 @@
5824
5826
  "packet_set_ticking_state": [
5825
5827
  "container",
5826
5828
  [
5827
- {
5829
+ {
5828
5830
  "name": "tick_rate",
5829
5831
  "type": "f32"
5830
5832
  },
@@ -5837,7 +5839,7 @@
5837
5839
  "packet_step_tick": [
5838
5840
  "container",
5839
5841
  [
5840
- {
5842
+ {
5841
5843
  "name": "tick_steps",
5842
5844
  "type": "varint"
5843
5845
  }
@@ -5866,7 +5868,7 @@
5866
5868
  "0x0a": "boss_bar",
5867
5869
  "0x0b": "difficulty",
5868
5870
  "0x0c": "chunk_batch_finished",
5869
- "0x0d": "chunk_batch_start",
5871
+ "0x0d": "chunk_batch_start",
5870
5872
  "0x0e": "chunk_biomes",
5871
5873
  "0x0f": "clear_titles",
5872
5874
  "0x10": "tab_complete",
@@ -7158,8 +7160,8 @@
7158
7160
  "container",
7159
7161
  [
7160
7162
  {
7161
- "name": "id",
7162
- "type": "i64"
7163
+ "name": "id",
7164
+ "type": "i64"
7163
7165
  }
7164
7166
  ]
7165
7167
  ],
@@ -7167,16 +7169,16 @@
7167
7169
  "container",
7168
7170
  [
7169
7171
  {
7170
- "name": "slot_id",
7171
- "type": "varint"
7172
+ "name": "slot_id",
7173
+ "type": "varint"
7172
7174
  },
7173
7175
  {
7174
- "name": "window_id",
7175
- "type": "varint"
7176
+ "name": "window_id",
7177
+ "type": "varint"
7176
7178
  },
7177
7179
  {
7178
- "name": "state",
7179
- "type": "bool"
7180
+ "name": "state",
7181
+ "type": "bool"
7180
7182
  }
7181
7183
  ]
7182
7184
  ],
@@ -7320,4 +7322,4 @@
7320
7322
  }
7321
7323
  }
7322
7324
  }
7323
- }
7325
+ }
@@ -7,7 +7,7 @@ For bedrock edition see [bedrock.md](bedrock.md)
7
7
  | protocol.json | No | Follow [Pre-release Protocol][3] |
8
8
  | blocks.json | Yes | Use [Burger][1], then use [burger-extractor][2] |
9
9
  | items.json | Yes | Use [Burger][1], then use [burger-extractor][2], then use [turbo-invention][6] |
10
- | entities.json | Yes | Use [Burger][1], then use [burger-extractor][2] |
10
+ | entities.json | Yes | Use [mcdata-generator][20] and run `extractPcEntityMetadata.js` script in tools/js to generate entity metadata in entities.json and protocol.json |
11
11
  | recipes.json | Yes | Use [Burger][1], then use [burger-extractor][2] | should eventually be changed to native data generators |
12
12
  | blockCollisionShapes.json | Yes | Use [McDataExtracting][4] |
13
13
  | commands.json | No? |Use [mc-data-command-generator][5] | link to jar files have to be manually added |
@@ -1,3 +1,10 @@
1
+ ## 3.56.0
2
+ * [Fix 1.20.2 and 1.20.3 metadata keys (#818)](https://github.com/PrismarineJS/minecraft-data/commit/7c65e2640ef7efad691ee9cbd22377c655e44c40) (thanks @wgaylord)
3
+ * [node 18 (#709)](https://github.com/PrismarineJS/minecraft-data/commit/4360b8461f655b943271d8101660dfb544c477f9) (thanks @rom1504)
4
+
5
+ ## 3.55.0
6
+ * [Add missing seed field in 1.19 based on minecraft packet tests](https://github.com/PrismarineJS/minecraft-data/commit/5f9995a821311c9ac926a208f957bd76a468fe55) (thanks @rom1504)
7
+
1
8
  ## 3.54.0
2
9
  * [1.20.3-1.20.4 protocol (#806)](https://github.com/PrismarineJS/minecraft-data/commit/1aabc9c5fe190b41d12b08e10ff025c32b8107ed) (thanks @wgaylord)
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minecraft-data",
3
- "version": "3.54.0",
3
+ "version": "3.56.0",
4
4
  "description": "Provide easy access to minecraft data in node.js",
5
5
  "main": "index.js",
6
6
  "tonicExampleFilename": "example.js",
@@ -10,6 +10,10 @@ export interface Version {
10
10
  // Returns true if the current version is equal to the `other` version's dataVersion
11
11
  ['=='](other: string): boolean
12
12
  type: 'pc' | 'bedrock'
13
+ version?: number
14
+ dataVersion?: number
15
+ majorVersion?: string
16
+ minecraftVersion?: string
13
17
  }
14
18
 
15
19
  export interface VersionSet {
@@ -194,7 +198,7 @@ export interface IndexedData {
194
198
  }
195
199
 
196
200
  const versions: {
197
- [key in keyof SupportedVersions]: Version[]
201
+ [key in keyof SupportedVersions]: ProtocolVersions
198
202
  }
199
203
  const versionsByMinecraftVersion: VersionSet
200
204
  const preNettyVersionsByProtocolVersion: VersionSet