ModMenu Integration
Adding Via Gradle
You can either use the TerraformersMC Maven repository to your build.gradle file or use the existing Modrinth Maven repository.
Simplify version updates by managing the version string inside your gradle.properties file.
Add this line to your gradle.properties file:
| gradle.properties | |
|---|---|
⚠️️ Replace MOD_VERSION with your target version
You can find valid versions on the ModMenu Modrinth Versions Page
If Choosing to Use Modrinth Maven
Add ModMenu to your dependencies in build.gradle file:
| build.gradle | |
|---|---|
If Choosing to Use TerraformersMC Maven
Add TerraformersMC Maven repository to your repositories, and ModMenu to your dependencies in build.gradle file:
Adding ModMenu Dependency to fabric.mod.json
Add ModMenu as an optional dependency in fabric.mod.json:
| src/main/resources/fabric.mod.json | |
|---|---|
⚠️️ Replace MOD_VERSION with your target version
You can find valid versions on the ModMenu Modrinth Versions Page
Creating ModMenu Entry Point
Create a class that is implementing ModMenuApi and override the getModConfigScreenFactory() method to provide our screen.
| java | |
|---|---|
Adding ModMenu Entry Point to fabric.mod.json
Add your entry point to fabric.mod.json: