Chained mod target overlays

- Mod targets list an ordered overlay chain; later overlays replace earlier ones and earlier source replacements apply to inherited files
- Forge and NeoForge metadata take their loader version range from the target
- The Fabric permissions library is bundled only for targets that declare it
- Dropped the 1.21.1 mods.toml copies that only differed in the loader range
This commit is contained in:
Brian Neumann-Fopiano committed 2026-10-16 10:44:12 -04:00
1 parent 03c2630497
commit 79e7b0c79e
9 files changed
+116 -58

No files matched your search

+3
View File
@@ -8,6 +8,9 @@ Map<String, Object> target = targets.get(targetMinecraft)
if (target == null) {
throw new GradleException("Unsupported Iris mod target ${targetMinecraft}; choose ${targets.keySet().join(', ')}")
}
targets.each { String minecraft, Map<String, Object> candidate ->
candidate.put('overlays', candidate.get('overlays') ?: [minecraft])
}
ext.irisModTarget = target
ext.irisModTargets = targets
if (project.name.startsWith('iris-')) {