From 9eb4e60a28f0dc1cc351ceb03aa70eba51938b53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?der=5Ffr=C3=BChling?= Date: Tue, 9 Apr 2024 14:06:49 -0700 Subject: [PATCH 1/3] Fabric mod metadata --- fabric/src/main/resources/fabric.mod.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/fabric/src/main/resources/fabric.mod.json b/fabric/src/main/resources/fabric.mod.json index a78a2e5..6896435 100644 --- a/fabric/src/main/resources/fabric.mod.json +++ b/fabric/src/main/resources/fabric.mod.json @@ -1,7 +1,19 @@ { "schemaVersion": 1, "id": "create_train_perspective", - "version": "0.2.0", + "name": "Create: Train Perspective", + "description": "Moves your camera (and body!) with the Create Mod train you're riding to increase immersion!", + "version": "${version}", + "contact": { + "homepage": "https://github.com/der-fruhling/create-train-perspective", + "issues": "https://github.com/der-fruhling/create-train-perspective/issues", + "sources": "https://github.com/der-fruhling/create-train-perspective" + }, + "license": "MIT", + "environment": "client", + "suggests": { + "railways": "*" + }, "icon": "create_train_perspective.png", "authors": [ "der_frühling" From 981fff97c8c407bdabab394cb9734418231c8cb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?der=5Ffr=C3=BChling?= Date: Tue, 9 Apr 2024 14:11:49 -0700 Subject: [PATCH 2/3] Forge mod metadata --- forge/src/main/resources/META-INF/mods.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forge/src/main/resources/META-INF/mods.toml b/forge/src/main/resources/META-INF/mods.toml index b4bb7a2..cc5880a 100644 --- a/forge/src/main/resources/META-INF/mods.toml +++ b/forge/src/main/resources/META-INF/mods.toml @@ -11,7 +11,7 @@ loaderVersion="[47,)" #mandatory This is typically bumped every Minecraft versio # Review your options at https://choosealicense.com/. All rights reserved is the default copyright stance, and is thus the default here. license="MIT" # A URL to refer people to when problems occur with this mod -#issueTrackerURL="https://change.me.to.your.issue.tracker.example.invalid/" #optional +issueTrackerURL="https://github.com/der-fruhling/create-train-perspective/issues" #optional # A list of mods - how many allowed here is determined by the individual mod loader [[mods]] #mandatory # The modid of the mod @@ -21,7 +21,7 @@ version="${mod_version}" #mandatory # A display name for the mod displayName="Create: Train Perspective" #mandatory # A URL to query for updates for this mod. See the JSON update specification https://docs.minecraftforge.net/en/latest/misc/updatechecker/ -#updateJSONURL="https://change.me.example.invalid/updates.json" #optional +updateJSONURL="https://api.modrinth.com/updates/create-train-perspective/forge_updates.json" #optional # A URL for the "homepage" for this mod, displayed in the mod UI displayURL="https://modrinth.com/mod/create-train-perspective-fixer" #optional # A file name (in the root of the mod JAR) containing a logo for display From 464f2eef6029cf28df665022d07ade11cd930f96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?der=5Ffr=C3=BChling?= Date: Tue, 9 Apr 2024 14:12:00 -0700 Subject: [PATCH 3/3] Template mod_id in Fabric mod --- fabric/build.gradle | 3 ++- fabric/src/main/resources/fabric.mod.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fabric/build.gradle b/fabric/build.gradle index 1a205b8..c943ab6 100644 --- a/fabric/build.gradle +++ b/fabric/build.gradle @@ -32,9 +32,10 @@ dependencies { processResources { inputs.property "version", project.version + inputs.property "mod_id", rootProject.mod_id filesMatching("fabric.mod.json") { - expand "version": project.version + expand "version": project.version, "mod_id": rootProject.mod_id } } diff --git a/fabric/src/main/resources/fabric.mod.json b/fabric/src/main/resources/fabric.mod.json index 6896435..ed225e0 100644 --- a/fabric/src/main/resources/fabric.mod.json +++ b/fabric/src/main/resources/fabric.mod.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "id": "create_train_perspective", + "id": "${mod_id}", "name": "Create: Train Perspective", "description": "Moves your camera (and body!) with the Create Mod train you're riding to increase immersion!", "version": "${version}",