Skip to main content
Version: GeckoLib5

Adding the Dependency

warning

This guide assumes you are using ForgeGradle7. If you are using an older setup of ForgeGradle6, see the Forge Discord for instructions on upgrading to ForgeGradle7.

Once you've added your GeckoLib version reference, and the maven repository, you can add the dependency.

Adding the dependency

  1. Find the dependencies block in your build.gradle file. If one doesn't exist, create it.
  2. Inside the dependencies block, add the below dependency line:
implementation minecraft.dependency("software.bernie.geckolib:geckolib-forge-${minecraftVersion}:${geckolibVersion}")

Finally

Once you're done, refresh Gradle by opening the Gradle tool window and clicking the refresh button.

Gradle Refresh Button

And you should be good to go!