Skip to content

Commit 6cab785

Browse files
committed
Populate mod files from properties
1 parent be1d683 commit 6cab785

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

fabric/src/main/resources/fabric.mod.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
"schemaVersion": 1,
33
"id": "${modId}",
44
"version": "${modVersion}",
5-
"name": "Lambda",
5+
"name": "${modName}",
66
"description": "${modDescription}",
77
"authors": [
8-
"Constructor"
8+
"${modAuthors}"
99
],
1010
"contact": {
1111
"homepage": "",
1212
"sources": ""
1313
},
1414
"license": "GNU General Public License v3.0",
15-
"icon": "assets/lambda/lambda.png",
15+
"icon": "${modIcon}",
1616
"environment": "*",
1717
"entrypoints": {
1818
"client": [
@@ -23,7 +23,7 @@
2323
]
2424
},
2525
"mixins": [
26-
"lambda.mixins.common.json"
26+
"${modId}.mixins.common.json"
2727
],
2828
"depends": {
2929
"fabricloader": ">=${fabricLoaderVersion}",

forge/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18+
val modId: String by project
1819
val modVersion: String by project
1920
val minecraftVersion: String by project
2021
val forgeVersion: String by project
@@ -47,7 +48,7 @@ loom {
4748
// different mod loaders, you can add them using the
4849
// `extraAccessWideners` property.
4950
// And then add them to the `mixinConfig` function.
50-
mixinConfig("lambda.mixins.common.json")
51+
mixinConfig("$modId.mixins.common.json")
5152
}
5253
}
5354

forge/src/main/resources/META-INF/mods.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ issueTrackerURL = "https://github.com/lambda-client/lambda/issues"
66
[[mods]]
77
modId = "${modId}"
88
version = "${modVersion}"
9-
displayName = "Lambda"
9+
displayName = "${modName}"
1010
authors = "${modAuthors}"
1111
description = "${modDescription}"
12-
logoFile = "assets/lambda/lambda.png"
12+
logoFile = "${modIcon}"
1313
displayTest = "IGNORE_ALL_VERSION"
1414

1515
[[dependencies.${modId}]]

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@
1717

1818
# Lambda https://github.com/lambda-client/lambda
1919
modId=lambda
20+
modName=Lambda
2021
modVersion=1.0.0
2122
modDescription=Minecraft utility mod coded in Kotlin
23+
modIcon=assets/lambda/lambda.png
2224
mavenGroup=com.lambda
2325
modAuthors=Constructor, Blade, Edouard127
2426

0 commit comments

Comments
 (0)