Creating an addon - Entropy159/Entropy-Arena GitHub Wiki

To create an addon, you need to first set up a NeoForge 1.21.1 project. You can go here for a mod generator to get started. Then, you need to add this mod as a dependency; you can do so using the Modrinth maven using the latest version of the mod.

The mod also uses Registrate. To add it, add the following to your build.gradle:

repositories {
    maven { url = "https://maven.ithundxr.dev/snapshots" }
}

dependencies {
    implementation("com.tterrag.registrate:Registrate:${registrate_version}")
}

Then add this line to gradle.properties:

registrate_version = MC1.21-1.3.0+67

You do not need to package registrate with your mod using jar-in-jar, as this mod will already have it.

Once you have a project set up, explore the pages below for information on various things you can do. Also remember that the code is open source, so look at how this mod does things for an idea of how to do it yourself.

The mod contains many utility functions, they can be found in ArenaUtils and ArenaRenderingUtils. Look at these classes to see what they can do.

Creating a Gamemode

Using events