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.
- package/doc/history.md +8 -0
- package/index.d.ts +5 -1
- package/minecraft-data/.github/workflows/bedrock-ci.yml +23 -11
- package/minecraft-data/.github/workflows/ci.yml +2 -2
- package/minecraft-data/.github/workflows/update-helper.yml +1 -1
- package/minecraft-data/data/pc/1.19/protocol.json +4 -0
- package/minecraft-data/data/pc/1.20.2/entities.json +2386 -150
- package/minecraft-data/data/pc/1.20.3/entities.json +2417 -152
- package/minecraft-data/data/pc/1.20.3/protocol.json +22 -20
- package/minecraft-data/doc/add-data-new-version.md +1 -1
- package/minecraft-data/doc/history.md +7 -0
- package/package.json +1 -1
- package/typings/index-template.d.ts +5 -1
package/doc/history.md
CHANGED
package/index.d.ts
CHANGED
|
@@ -1321,6 +1321,10 @@ declare namespace MinecraftData {
|
|
|
1321
1321
|
// Returns true if the current version is equal to the `other` version's dataVersion
|
|
1322
1322
|
['=='](other: string): boolean
|
|
1323
1323
|
type: 'pc' | 'bedrock'
|
|
1324
|
+
version?: number
|
|
1325
|
+
dataVersion?: number
|
|
1326
|
+
majorVersion?: string
|
|
1327
|
+
minecraftVersion?: string
|
|
1324
1328
|
}
|
|
1325
1329
|
|
|
1326
1330
|
export interface VersionSet {
|
|
@@ -1505,7 +1509,7 @@ declare namespace MinecraftData {
|
|
|
1505
1509
|
}
|
|
1506
1510
|
|
|
1507
1511
|
const versions: {
|
|
1508
|
-
[key in keyof SupportedVersions]:
|
|
1512
|
+
[key in keyof SupportedVersions]: ProtocolVersions
|
|
1509
1513
|
}
|
|
1510
1514
|
const versionsByMinecraftVersion: VersionSet
|
|
1511
1515
|
const preNettyVersionsByProtocolVersion: VersionSet
|
|
@@ -12,30 +12,42 @@ jobs:
|
|
|
12
12
|
timeout-minutes: 14
|
|
13
13
|
|
|
14
14
|
steps:
|
|
15
|
-
- name: Use Node.js
|
|
15
|
+
- name: Use Node.js 18.x
|
|
16
16
|
uses: actions/setup-node@v1
|
|
17
17
|
with:
|
|
18
|
-
node-version:
|
|
19
|
-
-
|
|
18
|
+
node-version: 18.x
|
|
19
|
+
- name: Checkout node-minecraft-data
|
|
20
|
+
uses: actions/checkout@v2
|
|
20
21
|
with:
|
|
21
22
|
repository: PrismarineJS/node-minecraft-data
|
|
22
23
|
submodules: recursive
|
|
23
24
|
path: node-mcdata
|
|
24
|
-
|
|
25
|
-
-
|
|
25
|
+
# Erase the submodule for minecraft-data with a checkout of the current minecraft-data repo
|
|
26
|
+
- run: rm -rf node-mcdata/minecraft-data
|
|
27
|
+
- name: Checkout minecraft-data
|
|
28
|
+
uses: actions/checkout@v2
|
|
26
29
|
with:
|
|
27
30
|
path: node-mcdata/minecraft-data
|
|
28
|
-
-
|
|
31
|
+
# Now install local node-minecraft-data. Running "prepare" should gen data and types
|
|
32
|
+
- name: Install minecraft-data
|
|
33
|
+
run: |
|
|
34
|
+
cd node-mcdata
|
|
35
|
+
npm install
|
|
36
|
+
npm run prepare
|
|
37
|
+
npm link
|
|
38
|
+
- name: Checkout bedrock-protocol
|
|
39
|
+
uses: actions/checkout@v2
|
|
29
40
|
with:
|
|
30
41
|
repository: PrismarineJS/bedrock-protocol
|
|
31
42
|
path: bedrock-protocol
|
|
32
43
|
- run: ls -R .
|
|
33
|
-
|
|
44
|
+
# I forget the correct install order, do both
|
|
45
|
+
- name: Install bedrock-protocol
|
|
46
|
+
run: |
|
|
34
47
|
cd bedrock-protocol
|
|
35
|
-
npm uninstall minecraft-data
|
|
36
48
|
npm install ../node-mcdata
|
|
37
49
|
npm i
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
50
|
+
npm install ../node-mcdata
|
|
51
|
+
- name: Running bedrock-protocol tests
|
|
52
|
+
run: npm test
|
|
41
53
|
working-directory: bedrock-protocol
|
|
@@ -13,7 +13,7 @@ jobs:
|
|
|
13
13
|
|
|
14
14
|
strategy:
|
|
15
15
|
matrix:
|
|
16
|
-
node-version: [
|
|
16
|
+
node-version: [18.x]
|
|
17
17
|
|
|
18
18
|
steps:
|
|
19
19
|
- uses: actions/checkout@v2
|
|
@@ -23,7 +23,7 @@ jobs:
|
|
|
23
23
|
node-version: ${{ matrix.node-version }}
|
|
24
24
|
- run: npm install
|
|
25
25
|
working-directory: tools/js
|
|
26
|
-
- run: npm build
|
|
26
|
+
- run: npm run build
|
|
27
27
|
working-directory: tools/js
|
|
28
28
|
- run: npm test
|
|
29
29
|
working-directory: tools/js
|