Add mod information files for fabric and forge.

This commit is contained in:
Username404-59 2021-04-08 10:52:09 +02:00
parent 892e01df21
commit f0fe913d7c
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
4 changed files with 83 additions and 8 deletions

View File

@ -14,6 +14,7 @@ architectury {
}
subprojects {
apply(plugin = "org.jetbrains.kotlin.jvm")
apply(plugin = "forgified-fabric-loom")
apply(plugin = "com.github.johnrengelman.shadow")
dependencies {
@ -59,13 +60,7 @@ allprojects {
}
withType(ProcessResources::class) {
val modVersionPair: Pair<String, String> = "mod_version" to (rootProject.version as String)
filesMatching("fabric.mod.json") { expand(modVersionPair) }
from(sourceSets.main.get().resources.srcDirs) {
include("META-INF/mods.toml")
expand(mutableMapOf(modVersionPair))
}
from(sourceSets.main.get().resources.srcDirs) { exclude("META-INF/mods.toml") }
inputs.property("mod_version" , rootProject.version)
expand(mutableMapOf(modVersionPair))
}
}
}

View File

@ -1,5 +1,12 @@
architectury {
common()
}
dependencies { mappings(loom.officialMojangMappings()) }; loom { silentMojangMappingsLicense() }
dependencies {
mappings(loom.officialMojangMappings())
}
loom {
silentMojangMappingsLicense()
mixinConfig("sharplapis-mixins.json")
refmapName = "sharplapis-common-refmap.json"
}

View File

@ -0,0 +1,45 @@
{
"schemaVersion": 1,
"id": "snowygui",
"version": "${mod_version}",
"name": "SnowyGui",
"description": "A cross-platform mod offering a useful interface.",
"authors": [
"Username404"
],
"contact": {
"sources": "https://gits.username404.fr/Username404-59/SnowyGUI"
},
"license": "MPL-2.0",
"icon": "icon.png",
"environment": "client",
"entrypoints": {
"client": [
"fr.username404.snowygui.main.SharpLapis"
],
"modmenu": [
"fr.username404.snowygui.main.ModMenuSupport"
]
},
"mixins": [
"snowygui-mixins.json"
],
"depends": {
"fabricloader": ">=0.9.3+build.207",
"fabric-resource-loader-v0": "*",
"minecraft": ">=1.16.2"
},
"recommends": {
"fabric": "*",
"modmenu": ">=1.15.0"
},
"breaks": {
"modmenu": "<1.15.0"
},
"suggests": {
"flamingo": "*"
}
}

View File

@ -0,0 +1,28 @@
modLoader = "javafml"
loaderVersion = "[1.7.0,)"
issueTrackerURL = "https://gits.username404.fr/Username404-59/SnowyGUI/issues"
license = "MPL-2.0"
[[mods]]
modId = "snowygui"
version = "${mod_version}"
displayName = "SnowyGUI"
authors = "Username404"
description = '''
A cross-platform mod offering a useful interface.
'''
logoFile = "icon.png"
[[dependencies.snowygui]]
modId = "forge"
mandatory = true
versionRange = "[33,)"
ordering = "NONE"
side = "BOTH"
[[dependencies.snowygui]]
modId = "minecraft"
mandatory = true
versionRange = "[1.16.2,)"
ordering = "NONE"
side = "BOTH"