Tags
Creators
Details
0.26.0
Compatibility
Changes
Ornithe Standard Libraries 0.26.0
OSL 0.26.0 supports Minecraft versions between Alpha 1.0.1_01 and Release 1.14.4.
Resource Loader 0.12.0
Note: the changes in this release were meant to be included in 0.25.0 but were erroneously left out.
Ordering Pack Sources
There is now a way to specify a preferred ordering (either FIRST or LAST) when adding resource pack repository sources. LAST is the default value, and is equivalent to the previous behavior. If FIRST is specified instead, the pack source will be placed before OSL's bundled mod resources, but after the Vanilla pack source.
This can be useful because it changes the default position of the resource packs loaded in by those pack sources. With previous behavior mod provided resource packs are always placed above OSL's bundled mod resource packs. With this feature it's possible to have resource packs placed below OSL's bundled mod resource packs by default. Of course the user can still re-order the resource packs in any way they like in the GUI.
ClientResourceLoaderEvents.INIT_PACK_REPOSITORY.register(packRepository -> {
packRepository.addSource(new ExamplePackSource1()); // uses default ordering LAST
packRepository.addSource(new ExamplePackSource2(), PackSourcePosition.FIRST);
});
// final pack source order: Vanilla, ExamplePackSource2, OSL Bundled Mod Resources, ExamplePackSource1
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:EHGtwpJv:dXmejnEv"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:EHGtwpJv:dXmejnEv"
}

