Tags
Creators
Details
Licensed MIT
Published last year
Updated 11 months ago
All versions
2.0.0
Release
Simple Resources 2.0.0last year 40
Compatibility
Minecraft: Java Edition
1.21.4
Platform
Fabric
Supported environments
Client-side
Server-side
Changes
- Added SimpleRegistry and SimpleDynamicRegistry which help with managing loaded resources
- Added methods for suggesting command arguments and executing commands and functions to ResourceUtils
- Renamed the Optional annotation to OptionalField to prevent problems when using java.util.Optional and moved annotations to their own package
- The ClassFieldsCodec can now return a MapCodec
- Added MappedAlternativeCodecs which allows you to create a codec with a default codec and any number of alternative codecs with converters to the previously specified value to be used when the first one fails. Similar to Codec.either() but for cases where you would need to stack Codec.either()
- Added CodecUtils which include methods for creating enum codecs and a dispached map codec which returns a MapCodec
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:idl3Q99Y:5GUAwir6"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:idl3Q99Y:5GUAwir6"
}

