Skip to content

Creating your mod

Olafcio1 edited this page Jun 15, 2026 · 3 revisions

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)


  1. Create a new Java project in your IDE.
    As the build system, pick Gradle
                                     with the version 9.2.0.

  2. Download the newest Avoid jar for your desired Minecraft version.
    You can do this on Avoid's Modrinth page.

  3. Drag the newest Avoid jar onto a new directory called libs in your IDE into your project root.
    After moving it there, right-click on it and select Add As Library... (Project Library, OK).

  4. 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 the dependencies section:


    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")))
    }

  5. 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, select Actions and search for Sync All.
    Then, click on Sync All Gradle Projects.


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

Clone this wiki locally