diff --git a/build.gradle b/build.gradle index 9a7775d..65e0254 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 + '.neoforge' + getExtraBuildMetadata() group = project.maven_group base { @@ -50,7 +50,7 @@ dependencies { processResources { inputs.property 'version', project.version - filesMatching('fabric.mod.json') { + filesMatching(['fabric.mod.json', 'META-INF/neoforge.mods.toml']) { expand 'version': project.version } } diff --git a/src/main/resources/META-INF/neoforge.mods.toml b/src/main/resources/META-INF/neoforge.mods.toml new file mode 100644 index 0000000..dcf9e4c --- /dev/null +++ b/src/main/resources/META-INF/neoforge.mods.toml @@ -0,0 +1,27 @@ +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" + +[[dependencies.continuity]] +modId = "minecraft" +versionRange = "[1.21.1]" + +[[dependencies.continuity]] +modId = "connector" + +[[dependencies.continuity]] +modId = "fabric_api"