diff --git a/build.gradle b/build.gradle index 678b55e..f808702 100644 --- a/build.gradle +++ b/build.gradle @@ -19,6 +19,15 @@ repositories { } } +var apiModules = [ + "fabric-api-base", + "fabric-tool-attribute-api-v1", + "fabric-mining-level-api-v1", + "fabric-resource-loader-v0", + "fabric-tag-extensions-v0", + "fabric-object-builder-api-v1" +] + dependencies { // To change the versions see the gradle.properties file minecraft "com.mojang:minecraft:${project.minecraft_version}" @@ -26,7 +35,9 @@ dependencies { modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" // Fabric API - include modImplementation(fabricApi.module("fabric-object-builder-api-v1", project.fabric_version)) + apiModules.forEach { + include modImplementation(fabricApi.module(it, project.fabric_version)) + } // Sodium modCompileOnly "maven.modrinth:sodium:${project.sodium_version}" diff --git a/gradle.properties b/gradle.properties index 307f57b..17a4ca3 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,12 +4,12 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://modmuss50.me/fabric.html minecraft_version=1.18.1 -yarn_mappings=1.18.1+build.12 +yarn_mappings=1.18.1+build.18 loader_version=0.12.12 fabric_version=0.45.0+1.18 # Mod Properties -mod_version=0.1.0 +mod_version=1.0.0 maven_group=me.tibinonest.mods archives_base_name=cauldron-dying diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 0a43031..4a9b8ef 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -25,7 +25,7 @@ ], "depends": { "minecraft": ">=1.18", - "fabricloader": ">=0.12.12", + "fabricloader": ">=0.12.0", "fabric-object-builder-api-v1": ">=0.1" } }