Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/ProfessorFichte/More-RPG-Classes/llms.txt

Use this file to discover all available pages before exploring further.

Adding the Dependency

More RPG Library can be added as a dependency to your Fabric or NeoForge mod using Gradle.

Repository Configuration

First, add the required repositories to your build.gradle:
repositories {
    maven {
        name = 'Modrinth'
        url = 'https://api.modrinth.com/maven'
        content {
            includeGroup 'maven.modrinth'
        }
    }
    maven { url 'https://maven.kosmx.dev/' }
    maven { url 'https://maven.shedaniel.me/' }
    maven {
        name = "Ladysnake Libs"
        url = 'https://maven.ladysnake.org/releases'
    }
    maven {
        name = "TerraformersMC"
        url = "https://maven.terraformersmc.com/"
    }
    maven { url 'https://maven.wispforest.io/releases' }
}

Dependency Declaration

Add More RPG Library and its required dependencies to your build.gradle:
dependencies {
    // More RPG Library
    modImplementation "maven.modrinth:more-rpg-library:2.5.18+1.21.1-fabric"
    
    // Required dependencies
    modImplementation "maven.modrinth:spell-engine:1.9.0+1.21.1-fabric"
    modImplementation "maven.modrinth:spell-power:1.4.5+1.21.1-fabric"
    modImplementation "maven.modrinth:ranged-weapon-api:2.3.3+1.21.1-fabric"
    modImplementation "maven.modrinth:tiny-config:3.1.0-fabric"
    
    // Player Animation Library
    modImplementation "dev.kosmx.player-anim:player-animation-lib-fabric:2.0.0-alpha1+1.21"
    
    // Cloth Config
    modImplementation "me.shedaniel.cloth:cloth-config-fabric:15.0.130"
}
Version numbers shown are current as of Minecraft 1.21.1. Check Modrinth for the latest versions.

Version Information

Current version details from gradle.properties:
  • Mod Version: 2.5.18
  • Minecraft Version: 1.21.1
  • Maven Group: net.more_rpg_classes
  • Archives Name: more_rpg_library
The final artifact version follows the pattern: {mod_version}+{minecraft_version} Example: 2.5.18+1.21.1

Gradle Properties

If you’re using an Architectury multi-loader setup, you can define these versions in your gradle.properties:
# More RPG Library
more_rpg_library_version=2.5.18+1.21.1

# Required Dependencies
spell_engine_version=1.9.0+1.21.1
spell_power_version=1.4.5+1.21.1
ranged_weapon_api_version=2.3.3+1.21.1
tiny_config_version=3.1.0
player_anim_version=2.0.0-alpha1+1.21
cloth_config_version=15.0.130
Then reference them in your build.gradle:
dependencies {
    modImplementation "maven.modrinth:more-rpg-library:${project.more_rpg_library_version}-fabric"
    modImplementation "maven.modrinth:spell-engine:${project.spell_engine_version}-fabric"
    modImplementation "maven.modrinth:spell-power:${project.spell_power_version}-fabric"
    // ... other dependencies
}

Dependency Declaration in Mod Metadata

Don’t forget to declare More RPG Library as a dependency in your mod metadata:
{
  "depends": {
    "fabricloader": ">=0.17.3",
    "minecraft": "~1.21.1",
    "java": ">=21",
    "more_rpg_classes": ">=2.5.18",
    "spell_engine": ">=1.9.0",
    "spell_power": ">=1.4.5"
  }
}

Verifying the Setup

  1. Run ./gradlew build to ensure all dependencies resolve correctly
  2. Check that the mod loads in your development environment
  3. Verify you can import classes from net.more_rpg_classes package
import net.more_rpg_classes.MRPGCMod;
import net.minecraft.util.Identifier;

public class MyMod {
    public static void init() {
        // Create an identifier using the More RPG Library
        Identifier id = MRPGCMod.id("example");
        MRPGCMod.LOGGER.info("More RPG Library integration working!");
    }
}

Troubleshooting

Ensure all required Maven repositories are added to your build.gradle. The Modrinth Maven is essential for accessing More RPG Library and most of its dependencies.
Make sure you’re using compatible versions of all dependencies. All versions should target the same Minecraft version (e.g., 1.21.1).
Remember to use the correct platform suffix:
  • Fabric: -fabric
  • NeoForge: -neoforge
Example: more-rpg-library:2.5.18+1.21.1-fabric
NeoForge builds require Forgified Fabric API. Ensure it’s included in your dependencies:
modImplementation "org.sinytra.forgified-fabric-api:forgified-fabric-api:0.115.6+2.1.4+1.21.1"

Next Steps

API Overview

Learn about the library’s architecture

Custom Spell Impacts

Start using custom spell impacts

Loot Functions

Enhance your loot tables

Status Effects

Explore available status effects

Build docs developers (and LLMs) love