fix: add architectury api

This commit is contained in:
trafficlunar 2025-02-28 22:12:59 +00:00
parent 5f1a5c62bd
commit b5d8f25a83
7 changed files with 19 additions and 1 deletions

View file

@ -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?
> You can find them in the branches.
- 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
## Gallery

View file

@ -22,6 +22,9 @@ dependencies {
// Do NOT use other classes from Fabric Loader.
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
// Architectury API
modImplementation "dev.architectury:architectury:$rootProject.architectury_api_version"
// Mod implementations
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

View file

@ -30,6 +30,9 @@ dependencies {
// Fabric API. This is technically optional, but you probably want it anyway.
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 }
shadowBundle project(path: ':common', configuration: 'transformProductionFabric')
}

View file

@ -27,6 +27,7 @@
"fabricloader": ">=0.15.11",
"minecraft": "~1.21",
"java": ">=21",
"architectury": ">=15.0.3",
"fabric-api": "*"
}
}

View file

@ -14,6 +14,7 @@ enabled_platforms=fabric,neoforge
minecraft_version=1.21.4
# Dependencies
architectury_api_version = 15.0.3
fabric_loader_version=0.16.9
fabric_api_version=0.111.0+1.21.4
neoforge_version=21.4.9-beta

View file

@ -34,6 +34,9 @@ repositories {
dependencies {
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 }
shadowBundle project(path: ':common', configuration: 'transformProductionNeoForge')
}

View file

@ -27,5 +27,12 @@ versionRange = "[1.21,)"
ordering = "NONE"
side = "BOTH"
[[dependencies.optionsprofiles]]
modId = "architectury"
type = "required"
versionRange = "[15.0.3,)"
ordering = "AFTER"
side = "BOTH"
[[mixins]]
config = "optionsprofiles.mixins.json"