Getting started
To start using the library in your mod, follow the steps below. You can find all available versions on CurseForge or Modrinth.
Architectury Loom setup
- Create a new Architectury project.
- 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 } }
- Add the following content to all
build.gradle
files of all your sub-projects (forge, fabric, common). Replace<LOADER>
with the specific loader (e.g.forge
) and usefabric
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:3.5.0") modImplementation("ws.schild:jave-nativebin-linux32:3.5.0") modImplementation("ws.schild:jave-nativebin-linux64:3.5.0") modImplementation("ws.schild:jave-nativebin-linux-arm32:3.5.0") modImplementation("ws.schild:jave-nativebin-linux-arm64:3.5.0") modImplementation("ws.schild:jave-nativebin-win32:3.5.0") modImplementation("ws.schild:jave-nativebin-win64:3.5.0") modImplementation("ws.schild:jave-nativebin-osxm1:3.5.0") modImplementation("ws.schild:jave-nativebin-osx64:3.5.0") }
Note
To use JAVE in Forge mods, forgeRuntimeLibrary
must be added: modImplementation(forgeRuntimeLibrary(...))
- Add the dependencies to your mod.
In the
forge
project, add this to yourmods.toml
file:... and in the[[dependencies.<YOUR_MODID>]] modId="dragnsounds" mandatory=true versionRange="[<MINECRAFT_VERSION>-<DRAGNSOUNDS_VERSION>,)" ordering="NONE" side="BOTH"
fabric
project, add this to yourfabric.mod.json
file: - Reload your project.