diff --git a/fabric/build.gradle b/fabric/build.gradle index bbcca82..7bbc7db 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 99458eb..1758d1d 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", + "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}", + "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" 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