diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index a80b22c..a441313 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/settings.gradle.kts b/settings.gradle.kts index c9e2bab..81901a0 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -10,7 +10,7 @@ pluginManagement { } plugins { - id("dev.kikugie.stonecutter") version "0.4" + id("dev.kikugie.stonecutter") version "0.4." } extensions.configure { @@ -18,7 +18,7 @@ extensions.configure { centralScript = "build.gradle.kts" shared { - versions("1.20.1", "1.20.4", "1.20.6") + versions("1.20.1", "1.20.4", "1.20.6", "1.21") } create(rootProject) } diff --git a/src/main/java/com/example/TemplateMod.java b/src/main/java/com/example/TemplateMod.java index f1cc371..18e4977 100644 --- a/src/main/java/com/example/TemplateMod.java +++ b/src/main/java/com/example/TemplateMod.java @@ -1,32 +1,30 @@ package com.example; import net.fabricmc.api.ModInitializer; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class TemplateMod implements ModInitializer { - // This logger is used to write text to the console and the log file. - // It is considered best practice to use your mod id as the logger's name. - // That way, it's clear which mod wrote info, warnings, and errors. + // This logger is used to write text to the console and the log file. + // It is considered best practice to use your mod id as the logger's name. + // That way, it's clear which mod wrote info, warnings, and errors. public static final Logger LOGGER = LoggerFactory.getLogger("template"); - public static final String VERSION = /*$ mod_version*/ "0.1.0"; - + public static final String VERSION = /*$ mod_version*/ "0.1.0"; - @Override - public void onInitialize() { - // This code runs as soon as Minecraft is in a mod-load-ready state. - // However, some things (like resources) may still be uninitialized. - // Proceed with mild caution. + @Override + public void onInitialize() { + // This code runs as soon as Minecraft is in a mod-load-ready state. + // However, some things (like resources) may still be uninitialized. + // Proceed with mild caution. - LOGGER.info("Hello Fabric world!"); + LOGGER.info("Hello Fabric world!"); - //? if !release - LOGGER.warn("I'm still a template!"); + //? if !release + LOGGER.warn("I'm still a template!"); - //? if fapi: <0.95 { - LOGGER.info("Fabric API is old on this version"); - LOGGER.info("Please update!"); - //?} - } + //? if fapi: <0.95 { + LOGGER.info("Fabric API is old on this version"); + LOGGER.info("Please update!"); + //?} + } } \ No newline at end of file diff --git a/stonecutter.gradle.kts b/stonecutter.gradle.kts index 5c55018..f657724 100644 --- a/stonecutter.gradle.kts +++ b/stonecutter.gradle.kts @@ -1,6 +1,6 @@ plugins { id("dev.kikugie.stonecutter") - id("fabric-loom") version "1.6-SNAPSHOT" apply false + id("fabric-loom") version "1.7-SNAPSHOT" apply false //id("dev.kikugie.j52j") version "1.0" apply false // Enables asset processing by writing json5 files //id("me.modmuss50.mod-publish-plugin") version "0.5.+" apply false // Publishes builds to hosting websites } diff --git a/versions/1.20.1/gradle.properties b/versions/1.20.1/gradle.properties index 7dffb50..9992406 100644 --- a/versions/1.20.1/gradle.properties +++ b/versions/1.20.1/gradle.properties @@ -1,5 +1,5 @@ deps.yarn_build=10 -deps.fabric_api=0.91.0+1.20.1 +deps.fabric_api=0.92.2+1.20.1 mod.mc_dep=>=1.20 <=1.20.1 mod.mc_title=1.20.1 diff --git a/versions/1.20.4/gradle.properties b/versions/1.20.4/gradle.properties index de3c9b7..5d4aa15 100644 --- a/versions/1.20.4/gradle.properties +++ b/versions/1.20.4/gradle.properties @@ -1,5 +1,5 @@ deps.yarn_build=3 -deps.fabric_api=0.93.1+1.20.4 +deps.fabric_api=0.97.1+1.20.4 mod.mc_dep=1.20.4 mod.mc_title=1.20.4 diff --git a/versions/1.20.6/gradle.properties b/versions/1.20.6/gradle.properties index 0d9b64e..f8d0150 100644 --- a/versions/1.20.6/gradle.properties +++ b/versions/1.20.6/gradle.properties @@ -1,5 +1,5 @@ deps.yarn_build=3 -deps.fabric_api=0.99.4+1.20.6 +deps.fabric_api=0.100.8+1.20.6 mod.mc_dep=1.20.6 mod.mc_title=1.20.6 diff --git a/versions/1.21/gradle.properties b/versions/1.21/gradle.properties new file mode 100644 index 0000000..92da6c1 --- /dev/null +++ b/versions/1.21/gradle.properties @@ -0,0 +1,6 @@ +deps.yarn_build=9 +deps.fabric_api=0.100.8+1.21 + +mod.mc_dep=1.21 +mod.mc_title=1.21 +mod.mc_targets=1.21 \ No newline at end of file