Skip to content

VerSion

Technical API pack providing the currently running version and pack format.

FabricNeoForgeForgeQuilt
Loaders
FabricNeoForgeForgeQuilt
Downloads on Modrinth
568
Followers on Modrinth
1
versions
6
Updated
October 18, 2026Oct 18
Published
in 2026
This is a library — other mods need it, and it adds nothing to the game by itself
VerSion Print — Note that using function ver:sion, the query will of course be invisible, ver:print is just for debugging · swipe

At a glance

A library: other mods need it
Runs on Fabric, NeoForge, Forge and Quilt
For Minecraft 1.20–26.3
Needed on the server; optional in the game
Latest version — 2.0-Mod from October 18, 2026
License LGPL-2.1-or-later — free
Where it's needed
In gameoptionalOn serverrequired

Needed on the server; optional in the game

Game versions1.20–26.3

Showcase of VerSion printing the current Minecraft version 26.3-snap3 into the chat.

Please report any issues you have with wrong versions or any other unexpected behaviour on GitHub. Thank you!

VerSion

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.

VerSion addresses this issue and may be used as an API by other datapacks to get the current pack format. Using overlays, VerSion achieves this goal in an inexpensive, light-weight and future-proof manner.

In contrast to existing alternatives (like Version Detector, which at least supports earlier versions), VerSion covers way more formats, does not throw faulty errors (when in reality, everything's working) or display excessive amounts of notices, and thus may be used elegantly and in any form of datapack project you plan to implement. Of course, it is free of charge and open-source forever.

How to use

Functions:

  • function ver:sion, returns current pack format as an int (available 23w44a and later)
  • function ver:load to reload version info (runs automatically on world startup and /reload)
  • function ver:print to print current version info to the executor

On every reload, VerSion stores the current pack format as an Integer and the name of the (last) Minecraft version using that format as a String inside a data storage. If lost, this information may always be refetched by running /function ver:load.

#get the pack format
data get storage ver:sion Format

#get the version
data get storage ver:sion Name

To make use of that information in your pack, use execute store ... run data get storage ver:sion Format or data modify ... from storage ver:sion (Format|Name).

For formats beginning with 23 (versions 23w44a and later), the most convenient way to get the pack format is function ver:sion which simply returns the current pack format.

Supported versions

If the datapack is marked as being for an older/newer version when investigated, that means no correct version info will be supplied. Due to the way VerSion works out the current pack format, only version 1.20.2 and later (specifically, beginning 23w31a) may be detected. For simplicity, only the major format number is taken into account.

Currently, all versions up to 26.3 – pack format 121 – are detected, however this will be quickly expanded when Minecraft updates progress further.

FAQ

How to install VerSion?

Install Fabric for your Minecraft version, download VerSion for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does VerSion support?

VerSion has builds for Minecraft 1.20–26.3.

Is VerSion needed on the server?

Needed on the server; optional in the game

License and source
GNU Lesser General Public License v2.1 or laterfree to use and share; changes to the mod itself must be published under the same license
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More