diff --git a/build.gradle b/build.gradle index b9eac7b..ca4e74a 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ plugins { id 'maven-publish' } -version = project.mod_version + '+' + project.mod_minecraft_version + getExtraBuildMetadata() +version = project.mod_version + '+' + project.mod_minecraft_version + ".forge" + getExtraBuildMetadata() group = project.maven_group base { @@ -56,7 +56,7 @@ dependencies { processResources { inputs.property 'version', project.version - filesMatching('fabric.mod.json') { + filesMatching(['fabric.mod.json', 'META-INF/mods.toml']) { expand 'version': project.version } } diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml new file mode 100644 index 0000000..7e299a8 --- /dev/null +++ b/src/main/resources/META-INF/mods.toml @@ -0,0 +1,34 @@ +modLoader = "javafml" +loaderVersion = "*" +license = "LGPL-3.0-only" +issueTrackerURL = "https://github.com/PepperCode1/Continuity/issues" + +[properties] +"connector:placeholder" = true + +[[mods]] +modId = "continuity" +version = "${version}" +displayName = "Continuity" +description = "Continuity is a Fabric mod that allows resource packs that use the OptiFine connected textures format, OptiFine emissive textures format (only for blocks and item models), or OptiFine custom block layers format to work without OptiFine." +logoFile = "assets/continuity/icon.png" +logoBlur = false +authors = "PepperCode1" +displayURL = "https://modrinth.com/mod/continuity" +displayTest = "IGNORE_ALL_VERSION" + +[[dependencies.continuity]] +modId = "minecraft" +mandatory = true +versionRange = "[1.20.1]" +side = "CLIENT" + +[[dependencies.continuity]] +modId = "connectormod" +mandatory = true +side = "CLIENT" + +[[dependencies.continuity]] +modId = "fabric_api" +mandatory = true +side = "CLIENT"