fix: add architectury api
This commit is contained in:
parent
5f1a5c62bd
commit
b5d8f25a83
7 changed files with 19 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ If you would like support for another mod, open an issue.
|
||||||
- Where can I find the source code for older versions?
|
- Where can I find the source code for older versions?
|
||||||
> You can find them in the branches.
|
> You can find them in the branches.
|
||||||
- Dependencies?
|
- Dependencies?
|
||||||
> Versions 1.1 require Architectury API, however versions 1.2+ do not.
|
> Architectury API and Fabric API (if on Fabric)
|
||||||
- For any other questions, create an issue or contact me at hello@trafficlunar.net
|
- For any other questions, create an issue or contact me at hello@trafficlunar.net
|
||||||
|
|
||||||
## Gallery
|
## Gallery
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,9 @@ dependencies {
|
||||||
// Do NOT use other classes from Fabric Loader.
|
// Do NOT use other classes from Fabric Loader.
|
||||||
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
|
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
|
||||||
|
|
||||||
|
// Architectury API
|
||||||
|
modImplementation "dev.architectury:architectury:$rootProject.architectury_api_version"
|
||||||
|
|
||||||
// Mod implementations
|
// Mod implementations
|
||||||
modImplementation "maven.modrinth:sodium:mc1.21.4-0.6.3-fabric" // Sodium
|
modImplementation "maven.modrinth:sodium:mc1.21.4-0.6.3-fabric" // Sodium
|
||||||
modImplementation "maven.modrinth:sodium-extra:mc1.21.4-0.6.1+fabric" // Sodium Extra
|
modImplementation "maven.modrinth:sodium-extra:mc1.21.4-0.6.1+fabric" // Sodium Extra
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,9 @@ dependencies {
|
||||||
// Fabric API. This is technically optional, but you probably want it anyway.
|
// Fabric API. This is technically optional, but you probably want it anyway.
|
||||||
modImplementation "net.fabricmc.fabric-api:fabric-api:$rootProject.fabric_api_version"
|
modImplementation "net.fabricmc.fabric-api:fabric-api:$rootProject.fabric_api_version"
|
||||||
|
|
||||||
|
// Architectury API
|
||||||
|
modImplementation "dev.architectury:architectury-fabric:$rootProject.architectury_api_version"
|
||||||
|
|
||||||
common(project(path: ':common', configuration: 'namedElements')) { transitive false }
|
common(project(path: ':common', configuration: 'namedElements')) { transitive false }
|
||||||
shadowBundle project(path: ':common', configuration: 'transformProductionFabric')
|
shadowBundle project(path: ':common', configuration: 'transformProductionFabric')
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@
|
||||||
"fabricloader": ">=0.15.11",
|
"fabricloader": ">=0.15.11",
|
||||||
"minecraft": "~1.21",
|
"minecraft": "~1.21",
|
||||||
"java": ">=21",
|
"java": ">=21",
|
||||||
|
"architectury": ">=15.0.3",
|
||||||
"fabric-api": "*"
|
"fabric-api": "*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ enabled_platforms=fabric,neoforge
|
||||||
minecraft_version=1.21.4
|
minecraft_version=1.21.4
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
architectury_api_version = 15.0.3
|
||||||
fabric_loader_version=0.16.9
|
fabric_loader_version=0.16.9
|
||||||
fabric_api_version=0.111.0+1.21.4
|
fabric_api_version=0.111.0+1.21.4
|
||||||
neoforge_version=21.4.9-beta
|
neoforge_version=21.4.9-beta
|
||||||
|
|
@ -34,6 +34,9 @@ repositories {
|
||||||
dependencies {
|
dependencies {
|
||||||
neoForge "net.neoforged:neoforge:$rootProject.neoforge_version"
|
neoForge "net.neoforged:neoforge:$rootProject.neoforge_version"
|
||||||
|
|
||||||
|
// Architectury API
|
||||||
|
modImplementation "dev.architectury:architectury-neoforge:$rootProject.architectury_api_version"
|
||||||
|
|
||||||
common(project(path: ':common', configuration: 'namedElements')) { transitive false }
|
common(project(path: ':common', configuration: 'namedElements')) { transitive false }
|
||||||
shadowBundle project(path: ':common', configuration: 'transformProductionNeoForge')
|
shadowBundle project(path: ':common', configuration: 'transformProductionNeoForge')
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,5 +27,12 @@ versionRange = "[1.21,)"
|
||||||
ordering = "NONE"
|
ordering = "NONE"
|
||||||
side = "BOTH"
|
side = "BOTH"
|
||||||
|
|
||||||
|
[[dependencies.optionsprofiles]]
|
||||||
|
modId = "architectury"
|
||||||
|
type = "required"
|
||||||
|
versionRange = "[15.0.3,)"
|
||||||
|
ordering = "AFTER"
|
||||||
|
side = "BOTH"
|
||||||
|
|
||||||
[[mixins]]
|
[[mixins]]
|
||||||
config = "optionsprofiles.mixins.json"
|
config = "optionsprofiles.mixins.json"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue