VerSion
by SubBurban
VerSion is a library for datapack authors that exposes the running Minecraft version's pack format to other datapacks, ready for use from the first world start.
What it does
Datapacks often need to know which pack format the game is running, so that overlays and version checks can select the right files. VerSion supplies that value through a function that returns the current pack format as an integer, available from snapshot 23w44a onward. It also stores the pack format and the last Minecraft version name in data storage under ver:sion, so other datapacks can read it with a data get command without calling any function.
The reload function ver:load runs automatically on world startup and on each reload, refreshing the stored version information. Lost data is always refetched by running ver:load. The ver:print function prints the current version information to the command executor, which helps when checking a datapack. Pack formats are detected from 1.20.2 onward, starting at 23w31a, and the mod counts only the major number of each format. Pack formats up to 26.3, such as 121, are covered.
Key features
Pack format function
ver:sion returns the current pack format as an integer for use in datapack logic.
Stored version data
The pack format and the last Minecraft version name are saved in data storage under ver:sion.
Automatic refresh
ver:load reloads the version information on world startup and on each reload.
Gallery
Compatibility
Latest build for each game version and loader.
26.x5 of 5 versions with builds
1.21.x12 of 12 versions with builds
1.20.x7 of 7 versions with builds
This mod also publishes snapshot builds. Snapshots are not shown in the matrix.
Use cases
Overlay selection in datapacks
A datapack can read the stored pack format to choose which overlay applies, without carrying its own version check.
Checking a datapack against the game
Running ver:print shows which pack format the game reports, which helps find mismatches while testing.
Who it’s for: Datapack authors who need the running pack format in their own functions, and server owners whose datapacks depend on it. Players only need the mod when a datapack that requires it is installed.
How it compares
PackTest is a Fabric-only server-side mod released under the MIT License, with files for 1.20.4 – 26.3, and it is open source. No Vanilla Data Pack is server required and client optional, published for Fabric, Forge, NeoForge and Quilt across 1.19 – 1.21.1, under the MIT License, and it is not open source.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| VerSion | Fabric, Forge, NeoForge and Quilt | 1.20 – 26.3 | Server required, client optional | 2026-10-08 |
| PackTest | Fabric | 1.20.4 – 26.3 | Server-side only | 2026-09-20 |
| No Vanilla Data Pack | Fabric, Forge, NeoForge and Quilt | 1.19 – 1.21.1 | Server required, client optional | 2024-08-18 |
Questions
Does VerSion need to be installed on the client?
Which pack formats does VerSion detect?
Which loaders are supported?
In the catalog
VerSion is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 8,071 mods support Minecraft 26.3.
More from SubBurban
Similar mods
What the author says
Please report any issues you have with wrong versions or any other unexpected behaviour on GitHub. Thank you! In Minecraft Vanilla, there is no simple command (or any source, that is) providing the currently running Minecraft Version or data pack format to datapacks.
Official listing
- Modrinth page
- modrinth.com/mod/version
- Owner
- SubBurban
- Published
- 2026-09-25
- Updated on Modrinth
- 2026-10-08
- Facts verified
- 2026-10-15