You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,24 +14,42 @@ It was added in Minecraft version 1.6, and as such using this tool on any versio
14
14
## Install
15
15
16
16
pack-format is available on [npm](https://www.npmjs.com/package/pack-format).
17
+
You must have Node.js installed to be able to use this.
17
18
18
19
To install pack-format, open the command line and type `npm install pack-format` to use for a Node.js project, or `npm install -g pack-format` to use from the command line.
19
20
20
21
## Usage
21
22
22
23
### Node
23
24
25
+
Retrieve the `pack_format` of a given Minecraft version, optionally specifying whether the resource (default) or data pack version should be returned.
24
26
```js
25
27
constpackFormat=require('pack-format')
26
28
packFormat('1.14.4') // 4
27
29
packFormat('1.16.2-pre1', 'resource') // 5
28
30
packFormat('20w45a', 'data') // 6
29
31
```
30
32
33
+
Retrieve a list of versions corresponding to a specific `pack_format`, again optionally specifying resource/data pack version.
0 commit comments