Skip to content

Commit

Permalink
Update pack formats to 33 (R) / 42 (D)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nixinova committed May 11, 2024
1 parent de9dd3e commit a6f0e4f
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 4 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Next
- Updated resource pack format to `32`.
- Updated data pack format to `42`.

## 1.3.14
*2024-04-15*
- Updated resource pack format to `31`.
Expand Down
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

pack-format is a tool for retrieving the `pack_format` of any Minecraft version, including snapshots.

**Updated for: 1.20.6 & 24w18a**

## About

`pack_format` is a version number used by Minecraft in both resource packs and data packs for labeling compatible versions.
Expand Down
8 changes: 7 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ const START_RELEASES: Record<VersionName, Record<PackType, FormatResult>> = {
'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: 31, data: 39 },
'1.20.5': { resource: 32, data: 41 },
'1.20.6': { resource: 32, data: 41 },
'1.21.x': { resource: undefined, data: undefined },
}

Expand Down Expand Up @@ -66,6 +67,7 @@ const START_SNAPSHOTS: Record<string, Record<PackType, FormatResult>> = {
'24w12a': { resource: 30, data: 36 },
'24w13a': { resource: 31, data: 37 },
'24w14a': { resource: 31, data: 38 },
'24w18a': { resource: 33, data: 42 },
[fauxCurrentSnapshot]: { resource: undefined, data: undefined },
}

Expand All @@ -75,12 +77,16 @@ const SPECIAL: Record<PackType, Record<number, string[]>> = {
5: ['combat4', 'combat5'],
6: ['combat6', 'combat7a', 'combat7b', 'combat8a', 'combat8b', 'combat8c'],
17: ['1.20.2-pre1'],
31: ['1.20.5-pre1', '1.20.5-pre2', '1.20.5-pre3'],
32: ['1.20.5-pre4', '1.20.5-rc1', '1.20.5-rc2', '1.20.5-rc3'],
},
data: {
4: ['combat1', 'combat2', 'combat3'],
5: ['combat4', 'combat5'],
6: ['combat6', 'combat7a', 'combat7b', 'combat8a', 'combat8b', 'combat8c'],
39: ['1.20.5-pre1'],
40: ['1.20.5-pre2'],
41: ['1.20.5-pre3', '1.20.5-pre4', '1.20.5-rc1', '1.20.5-rc2', '1.20.5-rc3'],
},
}

Expand Down
20 changes: 17 additions & 3 deletions test/pack-formats-tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Types:
=== Releases ===

"1.50" (-) none
"1.1" (-) none
"1.1" (-) null
"1.6" (-) 1
"1.9" (-) 2
"1.16.1" (-) 5
Expand All @@ -43,6 +43,10 @@ Types:
"1.20.3" (r) 22
"1.20.3" (d) 26
"1.20.4" (r) 22
"1.20.5" (r) 32
"1.20.5" (d) 41
"1.20.6" (r) 32
"1.20.6" (d) 41

=== Pre-releases ===

Expand All @@ -56,6 +60,16 @@ Types:
"1.20.2-pre1" (r) 17
"1.20.2-pre1" (d) 18
"1.20.2-pre2" (r) 18
"1.20.5-pre1" (r) 31
"1.20.5-pre1" (d) 39
"1.20.5-pre2" (r) 31
"1.20.5-pre2" (d) 40
"1.20.5-pre3" (r) 31
"1.20.5-pre3" (d) 41
"1.20.5-pre4" (r) 32
"1.20.5-pre4" (d) 41
"1.20.5-rc1" (r) 32
"1.20.5-rc1" (d) 41

=== Snapshots ===

Expand Down Expand Up @@ -124,8 +138,8 @@ Types:
"24w13a" (d) 37
"24w14a" (r) 31
"24w14a" (d) 38
"1.20.5-pre1" (r) 31
"1.20.5-pre1" (d) 39
"24w18a" (r) 33
"24w18a" (d) 42

=== Special cases ===

Expand Down

0 comments on commit a6f0e4f

Please sign in to comment.