Add mod information files for fabric and forge.
This commit is contained in:
parent
892e01df21
commit
f0fe913d7c
|
@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
|
@ -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": "*"
|
||||
}
|
||||
}
|
|
@ -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"
|
Loading…
Reference in New Issue