From 95a0c0ad5b7342a1209a8c984d4547012500331a Mon Sep 17 00:00:00 2001 From: Nixinova Date: Mon, 15 Apr 2024 21:42:37 +1200 Subject: [PATCH] Update data pack format to 39 --- changelog.md | 2 ++ readme.md | 2 +- src/index.ts | 8 +++++--- test/pack-formats-tests.txt | 8 ++++++-- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/changelog.md b/changelog.md index 2c28873..8d6379f 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,8 @@ ## Next - Updated resource pack format to `31`. +- Updated data pack format to `39`. +- Fixed data pack format for 24w12a and 24w13a. ## 1.3.13 *2024-03-15* diff --git a/readme.md b/readme.md index 254045e..37eb84b 100644 --- a/readme.md +++ b/readme.md @@ -29,7 +29,7 @@ const packFormat = require('pack-format') packFormat('1.14.4') // 4 packFormat('1.16.2-pre1', 'resource') // 5 packFormat('20w45a', 'data') // 6 -packFormat.LATEST.data // 35 +packFormat.LATEST.data // 39 ``` Retrieve a list of versions corresponding to a specific `pack_format`, again optionally specifying resource/data pack version. diff --git a/src/index.ts b/src/index.ts index 9dd50e8..c645227 100644 --- a/src/index.ts +++ b/src/index.ts @@ -19,7 +19,7 @@ const START_RELEASES: Record> = { '1.20.x': { resource: 15, data: 15 }, '1.20.2': { resource: 18, data: 18 }, '1.20.3': { resource: 22, data: 26 }, - '1.20.5': { resource: undefined, data: undefined }, + '1.20.5': { resource: 31, data: 39 }, '1.21.x': { resource: undefined, data: undefined }, } @@ -63,8 +63,9 @@ const START_SNAPSHOTS: Record> = { '24w09a': { resource: 28, data: 33 }, '24w10a': { resource: 28, data: 34 }, '24w11a': { resource: 29, data: 35 }, - '24w12a': { resource: 30, data: 35 }, - '24w13a': { resource: 31, data: 35 }, + '24w12a': { resource: 30, data: 36 }, + '24w13a': { resource: 31, data: 37 }, + '24w14a': { resource: 31, data: 38 }, [fauxCurrentSnapshot]: { resource: undefined, data: undefined }, } @@ -79,6 +80,7 @@ const SPECIAL: Record> = { 4: ['combat1', 'combat2', 'combat3'], 5: ['combat4', 'combat5'], 6: ['combat6', 'combat7a', 'combat7b', 'combat8a', 'combat8b', 'combat8c'], + 39: ['1.20.5-pre1'], }, } diff --git a/test/pack-formats-tests.txt b/test/pack-formats-tests.txt index e0556fe..4ec4ded 100644 --- a/test/pack-formats-tests.txt +++ b/test/pack-formats-tests.txt @@ -119,9 +119,13 @@ Types: "24w11a" (r) 29 "24w11a" (d) 35 "24w12a" (r) 30 -"24w12a" (d) 35 +"24w12a" (d) 36 "24w13a" (r) 31 -"24w13a" (d) 35 +"24w13a" (d) 37 +"24w14a" (r) 31 +"24w14a" (d) 38 +"1.20.5-pre1" (r) 31 +"1.20.5-pre1" (d) 39 === Special cases ===