-
Notifications
You must be signed in to change notification settings - Fork 0
Creating your mod
Since Avoid supports multiple modloaders, it also has a connected way of creating mods that use its API.
Here's how you can make a mod with it:
1. Setting up your project
(Prerequisites: IntelliJ IDEA)
-
Create a new Java project in your IDE.
As the build system, pickGradle
with the version9.2.0. -
Download the newest Avoid jar for your desired Minecraft version.
You can do this on Avoid's Modrinth page. -
Drag the newest Avoid jar onto a new directory called
libsin your IDE into your project root.
After moving it there, right-click on it and selectAdd As Library...(Project Library, OK). -
Double-click on the
build.gradle(.kts)in your project root in your IDE.
Then, copy the following text and paste it in the place of thedependenciessection:
dependencies { testImplementation(platform("org.junit:junit-bom:5.10.0")) testImplementation("org.junit.jupiter:junit-jupiter") testRuntimeOnly("org.junit.platform:junit-platform-launcher") compileOnly(fileTree(rootProject.file("libs"))) }
-
Finally, sync your project by clicking the Gradle-sync icon in the top-right corner of your IDE.
If it doesn't appear, click Shift 3 times, selectActionsand search forSync All.
Then, click onSync All Gradle Projects.
©️ Copyright 2026 Olafcio (on behalf of the AvoidLib org)
📝 Licensed with CC BY-NC (Attribution-NonCommercial)
Avoid Framework
🏚️ 1. Home
📽️ 2. Creating your mod
🌄 3. Adding assets to your mod
🧊 4. Creating a block
✏️ 5. Creating an item
🎯 6. Creating an entity selector
🤖 7. Creating a command