Installation
PulseLib supports Minecraft 1.21.1 on NeoForge and Fabric with Java 21. Install exactly one loader artifact. Fabric additionally requires Fabric API. Architectury API is not required.
For developers
repositories {
maven { url = "https://arcanc.github.io/Maven/" }
}
NeoForge, with ModDevGradle:
dependencies {
implementation "com.arcanc.pulselib:pulselib-neoforge:1.21.1-1.2.0"
}
Fabric, with Loom and official Mojang/Parchment mappings:
dependencies {
modImplementation "com.arcanc.pulselib:pulselib-fabric:1.21.1-1.2.0"
}
These coordinates match this checkout's mod_version=1.2.0 (beta release type); they do not establish repository availability. Use a version available in the Maven repository and refresh Gradle after changing dependencies. common is a development module, not an installable mod or Maven dependency published by this build. Mods using the old NeoForge API may need source adaptation.
Declare PulseLib as a required mod dependency in your loader metadata. For Fabric this is the ordinary depends.pulselib declaration; PulseLib plugins require no extra entrypoint. Ordinary mod initialization for registering Minecraft items/blocks still uses the loader's normal lifecycle.
For players
Download the artifact matching your loader from CurseForge or Modrinth. Both game JARs bundle jgltf and Jackson dependencies.
Building PulseLib
./gradlew build --no-daemon
This is also the standard CI command: it compiles all three modules, runs JUnit tests and builds both loader JARs. CI uploads the JARs and test reports; it does not start Minecraft or the demo mod.
Generate the API documentation for all three modules with Java 21:
./gradlew :common:javadoc :fabric:javadoc :neoforge:javadoc
Each module writes its documentation to <module>/build/docs/javadoc/index.html. The API reference maps the main entry points to their source files.
Client/server runs are manual:
./gradlew :neoforge:runClient
./gradlew :fabric:runClient
./gradlew :neoforge:runServer
./gradlew :fabric:runServer
Game artifacts are neoforge/build/libs/pulselib-1.21.1-neoforge-1.2.0.jar and fabric/build/libs/pulselib-1.21.1-fabric-1.2.0.jar, alongside source and Javadoc artifacts. Fabric's installable JAR is the remapped artifact without a sources/Javadoc suffix. The existing demo mod remains available for opt-in manual runs.
To test Maven output without uploading a release:
./gradlew :neoforge:publish :fabric:publish -PmavenRepoDir=/tmp/pulselib-maven-stage2
Modrinth/CurseForge tasks are :<loader>:modrinth and :<loader>:publishCurseForge. publishMods uploads both loader variants, and publishAll also writes Maven artifacts. These are explicit release operations requiring the relevant credentials; building does not invoke them.