Removed the need for template files. Replaced logo file with png as jpg seems to not work with NeoForge.
This commit is contained in:
BIN
assets/images/web/logo.png
(Stored with Git LFS)
Normal file
BIN
assets/images/web/logo.png
(Stored with Git LFS)
Normal file
Binary file not shown.
19
build.gradle
19
build.gradle
@ -138,9 +138,12 @@ dependencies {
|
||||
// http://www.gradle.org/docs/current/userguide/dependency_management.html
|
||||
}
|
||||
|
||||
|
||||
// This block of code expands all declared replace properties in the specified resource targets.
|
||||
// A missing property will result in an error. Properties are expanded using ${} Groovy notation.
|
||||
var generateModMetadata = tasks.register("generateModMetadata", ProcessResources) {
|
||||
// When "copyIdeResources" is enabled, this will also run before the game launches in IDE environments.
|
||||
// See https://docs.gradle.org/current/dsl/org.gradle.language.jvm.tasks.ProcessResources.html
|
||||
tasks.withType(ProcessResources).configureEach {
|
||||
var replaceProperties = [
|
||||
minecraft_version : minecraft_version,
|
||||
minecraft_version_range: minecraft_version_range,
|
||||
@ -152,18 +155,14 @@ var generateModMetadata = tasks.register("generateModMetadata", ProcessResources
|
||||
mod_license : mod_license,
|
||||
mod_version : mod_version,
|
||||
mod_authors : mod_authors,
|
||||
mod_description : mod_description,
|
||||
mod_description : mod_description
|
||||
]
|
||||
inputs.properties replaceProperties
|
||||
expand replaceProperties
|
||||
from "src/main/templates"
|
||||
into "build/generated/sources/modMetadata"
|
||||
|
||||
filesMatching(['META-INF/neoforge.mods.toml']) {
|
||||
expand replaceProperties
|
||||
}
|
||||
}
|
||||
// Include the output of "generateModMetadata" as an input directory for the build
|
||||
// this works with both building through Gradle and the IDE.
|
||||
sourceSets.main.resources.srcDir generateModMetadata
|
||||
// To avoid having to run "generateModMetadata" manually, make it run on every project reload
|
||||
neoForge.ideSyncTask generateModMetadata
|
||||
|
||||
// Example configuration to allow publishing using the maven-publish plugin
|
||||
publishing {
|
||||
|
||||
@ -1,24 +1,24 @@
|
||||
modLoader = "javafml"
|
||||
loaderVersion = "${loader_version_range}"
|
||||
license = "${mod_license}"
|
||||
issueTrackerURL="https://gitea.micle.dev/minecraft-mods/totem_of_reviving/issues"
|
||||
issueTrackerURL = "https://gitea.micle.dev/minecraft-mods/totem_of_reviving/issues"
|
||||
|
||||
[[mods]]
|
||||
modId = "${mod_id}"
|
||||
version = "${mod_version}"
|
||||
displayName = "${mod_name}"
|
||||
#updateJSONURL="http://myurl.me/"
|
||||
#displayURL="http://example.com/"
|
||||
logoFile= "logo.jpg"
|
||||
#credits=""
|
||||
authors="${mod_authors}"
|
||||
#updateJSONURL = "http://myurl.me/"
|
||||
#displayURL = "http://example.com/"
|
||||
logoFile = "logo.png"
|
||||
#credits = ""
|
||||
authors = "${mod_authors}"
|
||||
description = '''${mod_description}'''
|
||||
|
||||
#[[mixins]]
|
||||
#config="${mod_id}.mixins.json"
|
||||
#config = "${mod_id}.mixins.json"
|
||||
|
||||
#[[accessTransformers]]
|
||||
#file="META-INF/accesstransformer.cfg"
|
||||
#file = "META-INF/accesstransformer.cfg"
|
||||
|
||||
[[dependencies."${mod_id}"]]
|
||||
modId = "neoforge"
|
||||
@ -41,4 +41,4 @@ description = '''${mod_description}'''
|
||||
# that your mod requires GL version 3.2 or higher. Other features will be added. They are side aware so declaring this won't
|
||||
# stop your mod loading on the server for example.
|
||||
#[features.${mod_id}]
|
||||
#openGLVersion="[3.2,)"
|
||||
#openGLVersion = "[3.2,)"
|
||||
BIN
src/main/resources/logo.jpg
(Stored with Git LFS)
BIN
src/main/resources/logo.jpg
(Stored with Git LFS)
Binary file not shown.
BIN
src/main/resources/logo.png
(Stored with Git LFS)
Normal file
BIN
src/main/resources/logo.png
(Stored with Git LFS)
Normal file
Binary file not shown.
Reference in New Issue
Block a user