Skip to content

Getting started

To start using the library in your mod, follow the steps below. You can find all available major versions of this mod on CurseForge or Modrinth.

Latest versions

Minecraft DragNSounds API DragonLib JAVE
1.18.2 0.1.8 2.1.11 3.5.0
1.19.2 0.1.8 2.1.11 3.5.0
1.20.1 0.1.8 2.1.11 3.5.0

Architectury Loom setup

  1. Create a new Architectury project.
  2. Add the following content into the build.gradle file of your root project.
    subprojects {
        repositories {
            maven { url = "https://raw.githubusercontent.com/MisterJulsen/modsrepo/main/maven" } // DragonLib, DragNSounds API
            maven { url = "https://raw.githubusercontent.com/Fuzss/modresources/main/maven/" } // Forge Config API
            maven { url = "https://mvnrepository.com/artifact/ws.schild/jave-all-deps"} // JAVE
            maven { url = "https://maven.terraformersmc.com/" } // ModMenu
        }
    }
    
  3. Add the following line to all build.gradle files of all your sub-projects (forge, fabric, common). Replace <LOADER> with the specific loader (e.g. forge) and use fabric in your common project.
    dependencies {
        modCompileOnly("dev.architectury:architectury-<LOADER>:<ARCHITECTURY_VERSION>")
        modImplementation("de.mrjulsen.mcdragonlib:dragonlib-<LOADER>:<MINECRAFT_VERSION>-<DRAGONLIB_VERSION>")
        modImplementation("de.mrjulsen.dragnsounds:dragnsounds-<LOADER>:<MINECRAFT_VERSION>-<DRAGNSOUNDS_VERSION>")
    
        modImplementation("ws.schild:jave-core:<JAVE_VERSION>"))
        modImplementation("ws.schild:jave-nativebin-linux32:<JAVE_VERSION>"))
        modImplementation("ws.schild:jave-nativebin-linux64:<JAVE_VERSION>"))
        modImplementation("ws.schild:jave-nativebin-linux-arm32:<JAVE_VERSION>"))
        modImplementation("ws.schild:jave-nativebin-linux-arm64:<JAVE_VERSION>"))
        modImplementation("ws.schild:jave-nativebin-win32:<JAVE_VERSION>"))
        modImplementation("ws.schild:jave-nativebin-win64:<JAVE_VERSION>"))
        modImplementation("ws.schild:jave-nativebin-osxm1:<JAVE_VERSION>"))
        modImplementation("ws.schild:jave-nativebin-osx64:<JAVE_VERSION>"))
    }
    

Note

To use JAVE in Forge mods, forgeRuntimeLibrary must be added: modImplementation(forgeRuntimeLibrary (...))

  1. Add the dependencies to your mod. In the forge project, add this to your mods.toml file:
    [[dependencies.<YOUR_MODID>]]
    modId="dragnsounds"
    mandatory=true
    versionRange="[<MINECRAFT_VERSION>-<DRAGNSOUNDS_VERSION>,)"
    ordering="NONE"
    side="BOTH"
    
    ... and in the fabric project, add this to your fabric.mod.json file:
    "depends": {
        "dragnsounds": ">=<MINECRAFT_VERSION>-<DRAGNSOUNDS_VERSION>"
    },
    
  2. Reload your project.