Version Lib

Quick rating

Community listing page, reviews here may not be monitored by the author.

Version Lib

By CafouOwner

No reviews yet

VersionLib is a datapack that can detect which version of the game the player is on.

Mod Loaders
Minecraft

About

Description

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