
VersionLib is a datapack library that adds the ability to check which version of the game is currently running.
How to use: To obtain the game version, one only has to check the following storage: 'verlib:data Version' This will give you a string like so, "1.21"
You can also obtain the version in the form of an integer by checking the following storage: 'verlib:data IntVer' This will give you an integer like so, 121
Warnings: While this datapack supports all versions from 1.18 to 26.1, the version given by the datapack may not be perfectly accurate. This is due to the method of checking, which can only aproximate the version. So, if you try it on 1.21.1, you'll get 1.21. Same for 1.21.10 which will give you 1.21.9
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.18, 1.18.1, 1.18.2
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.
- Downloads as version_detector_1.18-26.1.zip
- Download size: 9 KB
- Download link checked 24 Aug 2026 — working
These come from our own check of the pack file, not from the source page.