diff --git a/README.md b/README.md index 0cc391a..022f983 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ In order to use this mod as a template: - The icon provided here is a placeholder one. If you aren't able to replace it yet, you can delete it and remove the "icon" property - Create a LICENSE file for this mod! If you don't know which license to use, check out [here](https://choosealicense.com/). - If you use `LICENSE.md`, don't forget to update the buildscript in order to use that file name! + - On `quilt.mod.json`, don't forget to put in `"metadata"` a `"license"` property that contains the license's [SPDX identifier](https://spdx.org/licenses/). - The GPLv3 and AGPLv3 are not valid mod licenses, so you can use almost any license except for those. - Update the Java sub-directory structure so it reflects your Maven group - If the dependencies on `gradle/libs.versions.toml` isn't up-to-date, feel free to update them! The linked utility should help you in this easy and quick process. diff --git a/build.gradle b/build.gradle index 8634b42..99b2b7c 100644 --- a/build.gradle +++ b/build.gradle @@ -32,13 +32,9 @@ dependencies { processResources { inputs.property "version", version - inputs.property "group", group filesMatching('quilt.mod.json') { - expand( - "version": version, - "group": group - ) + expand "version": version } } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 1a92c3e..ed1a21e 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -4,7 +4,7 @@ minecraft = "1.18.2" quilt_mappings = "1.18.2+build.22" quilt_loader = "0.16.0-beta.7" -quilted_fabric_api = "1.0.0-beta.5+0.48.0-1.18.2" +quilted_fabric_api = "1.0.0-beta.6+0.51.1-1.18.2" [libraries] minecraft = { module = "com.mojang:minecraft", version.ref = "minecraft" } diff --git a/src/main/java/com/example/example_mod/ExampleMod.java b/src/main/java/com/example/example_mod/ExampleMod.java index d1a71b2..27b6648 100644 --- a/src/main/java/com/example/example_mod/ExampleMod.java +++ b/src/main/java/com/example/example_mod/ExampleMod.java @@ -1,15 +1,15 @@ package com.example.example_mod; -import org.apache.logging.log4j.LogManager; -import org.apache.logging.log4j.Logger; import org.quiltmc.loader.api.ModContainer; import org.quiltmc.qsl.base.api.entrypoint.ModInitializer; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; public class ExampleMod 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 name as the logger's name. // That way, it's clear which mod wrote info, warnings, and errors. - public static final Logger LOGGER = LogManager.getLogger("Example Mod"); + public static final Logger LOGGER = LoggerFactory.getLogger("Example Mod"); @Override public void onInitialize(ModContainer mod) { diff --git a/src/main/resources/quilt.mod.json b/src/main/resources/quilt.mod.json index 4b72dfc..5206e5a 100644 --- a/src/main/resources/quilt.mod.json +++ b/src/main/resources/quilt.mod.json @@ -1,7 +1,7 @@ { "schema_version": 1, "quilt_loader": { - "group": "${group}", + "group": "com.example", "id": "example_mod", "version": "${version}", "metadata": { @@ -10,7 +10,6 @@ "contributors": { "Me!": "Owner" }, - "license": "ARR", "icon": "assets/example_mod/icon.png" }, "intermediate_mappings": "net.fabricmc:intermediary",