Included content
| Name | |
|---|---|
![]() | Porting Lib |
es_mx lang file. (#15 - TheLegendOfSaram)+refabricated in the version schema to allow for an easier time detecting which Farmer's Delight port is loaded.
Below contains an example of how you may detect Farmer's Delight Refabricated following this change.
public static boolean isFDRefabricated() {
// Use Objects#equals to make sure it's null safe for Farmer's Delight Fabric, which should not contain a +.
return FabricLoader.getInstance().getModContainer("farmersdelight").map(container -> Objects.equals(container.getMetadata().getVersion().getFriendlyString().split("\\+")[1], "refabricated")).orElse(false);
}
| Name | |
|---|---|
![]() | Porting Lib |
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.
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:7vxePowz:X6fzggyI"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:7vxePowz:X6fzggyI"
}