Setting the Version
Once you have your GeckoLib version identified (see Finding the Version), you'll need to set it in your project so that it can be used.
Setting the version
You'll need to set the version in either your gradle.properties file, or your libs.versions.toml file if you use
version catalogues.
If you're not sure, you probably use gradle.properties.
- gradle.properties
- libs.versions.toml
- Find your
gradle.propertiesfile (located in the root directory of your project), and open it - Add a new line at the bottom of the file with the following content:
geckolibVersion=
and put your version number at the end, after the = symbol
- While you're there, check that you have a
minecraftVersionproperty set as well, as you'll need that later
- Open your
libs.versions.tomlfile (located in thegradledirectory at the root of your project) - Add a new line in the
[versions]section with the following content:
geckolib =
and put your version number at the end, after the = symbol