Skip to content

Commit

Permalink
fix: Mark Architectury API as a required dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveplays28 committed Oct 2, 2024
1 parent 81fb02d commit b6a4b76
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ This mod is featured in ["Minecraft Mod Combinations That Work Perfectly Togethe

- [Cloth Config API](https://modrinth.com/mod/cloth-config)
- [Fabric API](https://modrinth.com/mod/fabric-api) or [Quilt Standard Libraries](https://modrinth.com/mod/qsl)
- [Architectury API](https://modrinth.com/mod/architectury-api)

### Optional

Expand Down
1 change: 1 addition & 0 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ processResources {
"fabric_loader_version": rootProject.fabric_loader_version,
"supported_minecraft_version": rootProject.supported_minecraft_version,
"fabric_api_version": rootProject.fabric_api_version,
"architectury_api_version": rootProject.architectury_api_version,
"cloth_config_version": rootProject.cloth_config_version,
"mod_menu_version": rootProject.mod_menu_version
}
Expand Down
1 change: 1 addition & 0 deletions fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"fabricloader": ">=${fabric_loader_version}",
"minecraft": "${supported_minecraft_version}",
"fabric": ">=${fabric_api_version}",
"architectury": ">=${architectury_api_version}",
"cloth-config": ">=${cloth_config_version}"
},
"suggests": {
Expand Down
3 changes: 2 additions & 1 deletion forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ processResources {
"mod_license": rootProject.mod_license,
"curseforge_project_id": rootProject.curseforge_project_id,
"modrinth_project_id": rootProject.modrinth_project_id,
"forge_version": rootProject.neoforge_version,
"supported_minecraft_version": rootProject.supported_minecraft_version,
"forge_version": rootProject.neoforge_version,
"architectury_api_version": rootProject.architectury_api_version,
"cloth_config_version": rootProject.cloth_config_version,
"mod_menu_version": rootProject.mod_menu_version
}
Expand Down
7 changes: 7 additions & 0 deletions forge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ versionRange = ">=${forge_version}"
ordering = "NONE"
side = "BOTH"

[[dependencies.${mod_id}]]
modId = "architectury"
mandatory = true
versionRange = ">=${architectury_api_version}"
ordering = "NONE"
side = "BOTH"

[[dependencies.${mod_id}]]
modId = "cloth_config"
mandatory = true
Expand Down

0 comments on commit b6a4b76

Please sign in to comment.