Skip to content

Commit

Permalink
Merge pull request #6 from der-fruhling/fix/general-metadata
Browse files Browse the repository at this point in the history
Fix: General mod metadata incompleteness.
  • Loading branch information
der Frühling authored Apr 9, 2024
2 parents b5023ab + 464f2ee commit e87ff39
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
3 changes: 2 additions & 1 deletion fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down
16 changes: 14 additions & 2 deletions fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions forge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit e87ff39

Please sign in to comment.