Skip to content

Commit

Permalink
Add Quilt 1.19 templates, remove JEI from Forge templates
Browse files Browse the repository at this point in the history
  • Loading branch information
shedaniel committed Jul 3, 2022
1 parent 657a63e commit c63d627
Show file tree
Hide file tree
Showing 3 changed files with 134 additions and 26 deletions.
146 changes: 132 additions & 14 deletions generator.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"JAVA_VERSION": "#JAVA_8",
"COMPILE_JAVA": "#COMPILE_JAVA_8",
"MCMETA_FORMAT": "6",
"JEI_MAJOR": "7",
"YARN_MAPPINGS": {
"filter": "1\\.16\\.5\\+build\\..*",
"pom": "https://maven.fabricmc.net/net/fabricmc/yarn/maven-metadata.xml"
Expand Down Expand Up @@ -115,7 +114,6 @@
"JAVA_VERSION": "#JAVA_16",
"COMPILE_JAVA": "#COMPILE_JAVA_16",
"MCMETA_FORMAT": "7",
"JEI_MAJOR": "8",
"YARN_MAPPINGS": {
"filter": "1\\.17\\.1\\+build\\..*",
"pom": "https://maven.fabricmc.net/net/fabricmc/yarn/maven-metadata.xml"
Expand Down Expand Up @@ -192,7 +190,6 @@
"JAVA_VERSION": "#JAVA_17",
"COMPILE_JAVA": "#COMPILE_JAVA_17",
"MCMETA_FORMAT": "8",
"JEI_MAJOR": "9",
"YARN_MAPPINGS": {
"filter": "1\\.18\\.1\\+build\\..*",
"pom": "https://maven.fabricmc.net/net/fabricmc/yarn/maven-metadata.xml"
Expand All @@ -202,7 +199,7 @@
"pom": "https://maven.minecraftforge.net/net/minecraftforge/forge/maven-metadata.xml"
},
"FORGE_LOADER_MAJOR": "39",
"MIXIN_COMPAT_LEVEL": "JAVA_16"
"MIXIN_COMPAT_LEVEL": "JAVA_17"
}
},
"1.18.1-forge-fabric": {
Expand Down Expand Up @@ -253,7 +250,7 @@
"inherit_tokens": ["1.18.1-forge-fabric"],
"tokens": {
"__MIXIN_FABRIC_BLOCK": "#MIXIN_FABRIC_BLOCK",
"MIXIN_COMPAT_LEVEL": "JAVA_16",
"MIXIN_COMPAT_LEVEL": "JAVA_17",
"LOOM_FORGE_EXT": "loom {\n forge {\n mixinConfig \"examplemod-common.mixins.json\"\n mixinConfig \"examplemod.mixins.json\"\n }\n}\n"
}
},
Expand All @@ -267,7 +264,6 @@
"JAVA_VERSION": "#JAVA_17",
"COMPILE_JAVA": "#COMPILE_JAVA_17",
"MCMETA_FORMAT": "8",
"JEI_MAJOR": "9",
"YARN_MAPPINGS": {
"filter": "1\\.18\\.2\\+build\\..*",
"pom": "https://maven.fabricmc.net/net/fabricmc/yarn/maven-metadata.xml"
Expand All @@ -277,7 +273,7 @@
"pom": "https://maven.minecraftforge.net/net/minecraftforge/forge/maven-metadata.xml"
},
"FORGE_LOADER_MAJOR": "40",
"MIXIN_COMPAT_LEVEL": "JAVA_16"
"MIXIN_COMPAT_LEVEL": "JAVA_17"
}
},
"1.18.2-forge-fabric": {
Expand Down Expand Up @@ -330,7 +326,7 @@
"inherit_tokens": ["1.18.2-forge-fabric"],
"tokens": {
"__MIXIN_FABRIC_BLOCK": "#MIXIN_FABRIC_BLOCK",
"MIXIN_COMPAT_LEVEL": "JAVA_16",
"MIXIN_COMPAT_LEVEL": "JAVA_17",
"LOOM_FORGE_EXT": "loom {\n forge {\n mixinConfig \"examplemod-common.mixins.json\"\n mixinConfig \"examplemod.mixins.json\"\n }\n}\n"
}
},
Expand Down Expand Up @@ -370,7 +366,7 @@
"inherit_tokens": ["1.18.2-forge-quilt"],
"tokens": {
"__MIXIN_QUILT_BLOCK": "#MIXIN_QUILT_BLOCK",
"MIXIN_COMPAT_LEVEL": "JAVA_16",
"MIXIN_COMPAT_LEVEL": "JAVA_17",
"LOOM_FORGE_EXT": "loom {\n forge {\n mixinConfig \"examplemod-common.mixins.json\"\n mixinConfig \"examplemod.mixins.json\"\n }\n}\n"
}
},
Expand Down Expand Up @@ -409,7 +405,7 @@
"inherit_tokens": ["1.18.2-forge-fabric-quilt"],
"tokens": {
"__MIXIN_QUILT_BLOCK": "#MIXIN_QUILT_BLOCK",
"MIXIN_COMPAT_LEVEL": "JAVA_16",
"MIXIN_COMPAT_LEVEL": "JAVA_17",
"LOOM_FORGE_EXT": "loom {\n forge {\n mixinConfig \"examplemod-common.mixins.json\"\n mixinConfig \"examplemod.mixins.json\"\n }\n}\n"
}
},
Expand Down Expand Up @@ -453,7 +449,7 @@
"tokens": {
"__MIXIN_FABRIC_BLOCK": "#MIXIN_FABRIC_BLOCK",
"__MIXIN_QUILT_BLOCK": "#MIXIN_QUILT_BLOCK",
"MIXIN_COMPAT_LEVEL": "JAVA_16",
"MIXIN_COMPAT_LEVEL": "JAVA_17",
"LOOM_FORGE_EXT": "loom {\n forge {\n mixinConfig \"examplemod-common.mixins.json\"\n mixinConfig \"examplemod.mixins.json\"\n }\n}\n"
}
},
Expand All @@ -467,7 +463,6 @@
"JAVA_VERSION": "#JAVA_17",
"COMPILE_JAVA": "#COMPILE_JAVA_17",
"MCMETA_FORMAT": "9",
"JEI_MAJOR": "9",
"YARN_MAPPINGS": {
"filter": "1\\.19\\+build\\..*",
"pom": "https://maven.fabricmc.net/net/fabricmc/yarn/maven-metadata.xml"
Expand All @@ -477,7 +472,7 @@
"pom": "https://maven.minecraftforge.net/net/minecraftforge/forge/maven-metadata.xml"
},
"FORGE_LOADER_MAJOR": "41",
"MIXIN_COMPAT_LEVEL": "JAVA_16"
"MIXIN_COMPAT_LEVEL": "JAVA_17"
}
},
"1.19-forge-fabric": {
Expand Down Expand Up @@ -530,7 +525,130 @@
"inherit_tokens": ["1.19-forge-fabric"],
"tokens": {
"__MIXIN_FABRIC_BLOCK": "#MIXIN_FABRIC_BLOCK",
"MIXIN_COMPAT_LEVEL": "JAVA_16",
"MIXIN_COMPAT_LEVEL": "JAVA_17",
"LOOM_FORGE_EXT": "loom {\n forge {\n mixinConfig \"examplemod-common.mixins.json\"\n mixinConfig \"examplemod.mixins.json\"\n }\n}\n"
}
},
"1.19-forge-quilt": {
"description": "1.19 Forge-Quilt Template",
"templates": [
"templates/architectury",
"templates/architectury_quilt",
"templates/api_new"
],
"inherit_tokens": ["1.19-forge-fabric"],
"tokens": {
"COMMON_MOD_LOADERS": "quilt,forge",
"INCLUDE_FABRIC_OR_QUILT": "include(\"quilt\")",
"__FABRIC_LOADER_PROP": "",
"__FABRIC_LOADER": "",
"__FABRIC_API_PROP": "",
"__FABRIC_API": "",
"__QUILT_LOADER_PROP": "#QUILT_LOADER_PROP",
"__QUILT_LOADER": "#QUILT_LOADER",
"__QUILT_FABRIC_API_PROP": "#QUILT_FABRIC_API_PROP",
"__QUILT_FABRIC_API": {
"filter": ".*\\-1\\.19",
"pom": "https://maven.quiltmc.org/repository/release/org/quiltmc/quilted-fabric-api/quilted-fabric-api/maven-metadata.xml"
}
}
},
"1.19-forge-quilt-mixin": {
"description": "1.19 Forge-Quilt Template with Mixins",
"templates": [
"templates/architectury",
"templates/architectury_quilt",
"templates/api_new",
"templates/mixin",
"templates/mixin_quilt"
],
"inherit_tokens": ["1.19-forge-quilt"],
"tokens": {
"__MIXIN_QUILT_BLOCK": "#MIXIN_QUILT_BLOCK",
"MIXIN_COMPAT_LEVEL": "JAVA_17",
"LOOM_FORGE_EXT": "loom {\n forge {\n mixinConfig \"examplemod-common.mixins.json\"\n mixinConfig \"examplemod.mixins.json\"\n }\n}\n"
}
},
"1.19-forge-fabric-quilt": {
"description": "1.19 Forge-Fabric-Quilt Template",
"templates": [
"templates/architectury",
"templates/architectury_fabric",
"templates/architectury_quilt",
"templates/api_new"
],
"inherit_tokens": ["1.19-forge-fabric"],
"tokens": {
"COMMON_MOD_LOADERS": "quilt,fabric,forge",
"INCLUDE_FABRIC_OR_QUILT": "include(\"fabric\")\ninclude(\"quilt\")",
"__QUILT_LOADER_PROP": "#QUILT_LOADER_PROP",
"__QUILT_LOADER": "#QUILT_LOADER",
"__QUILT_FABRIC_API_PROP": "#QUILT_FABRIC_API_PROP",
"__QUILT_FABRIC_API": {
"filter": ".*\\-1\\.19",
"pom": "https://maven.quiltmc.org/repository/release/org/quiltmc/quilted-fabric-api/quilted-fabric-api/maven-metadata.xml"
}
}
},
"1.19-forge-fabric-quilt-mixin": {
"description": "1.19 Forge-Fabric-Quilt Template with Mixins",
"templates": [
"templates/architectury",
"templates/architectury_fabric",
"templates/architectury_quilt",
"templates/api_new",
"templates/mixin",
"templates/mixin_fabric",
"templates/mixin_quilt"
],
"inherit_tokens": ["1.19-forge-fabric-quilt"],
"tokens": {
"__MIXIN_QUILT_BLOCK": "#MIXIN_QUILT_BLOCK",
"MIXIN_COMPAT_LEVEL": "JAVA_17",
"LOOM_FORGE_EXT": "loom {\n forge {\n mixinConfig \"examplemod-common.mixins.json\"\n mixinConfig \"examplemod.mixins.json\"\n }\n}\n"
}
},
"1.19-forge-fabric-like": {
"description": "1.19 Forge-Fabric-Like Template",
"templates": [
"templates/architectury",
"templates/architectury_fabric",
"templates/architectury_quilt",
"templates/architectury_fabric_like",
"templates/api_new"
],
"inherit_tokens": ["1.19-forge-fabric"],
"tokens": {
"COMMON_MOD_LOADERS": "quilt,fabric,forge",
"INCLUDE_FABRIC_OR_QUILT": "include(\"fabric-like\")\ninclude(\"fabric\")\ninclude(\"quilt\")",
"__FABRIC_ADD_FABRICLIKE": "#FABRIC_ADD_FABRICLIKE",
"__QUILT_ADD_FABRICLIKE": "#QUILT_ADD_FABRICLIKE",
"__QUILT_LOADER_PROP": "#QUILT_LOADER_PROP",
"__QUILT_LOADER": "#QUILT_LOADER",
"__QUILT_FABRIC_API_PROP": "#QUILT_FABRIC_API_PROP",
"__QUILT_FABRIC_API": {
"filter": ".*\\-1\\.19",
"pom": "https://maven.quiltmc.org/repository/release/org/quiltmc/quilted-fabric-api/quilted-fabric-api/maven-metadata.xml"
}
}
},
"1.19-forge-fabric-like-mixin": {
"description": "1.19 Forge-Fabric-Like Template with Mixins",
"templates": [
"templates/architectury",
"templates/architectury_fabric",
"templates/architectury_quilt",
"templates/architectury_fabric_like",
"templates/api_new",
"templates/mixin",
"templates/mixin_fabric",
"templates/mixin_quilt"
],
"inherit_tokens": ["1.19-forge-fabric-like"],
"tokens": {
"__MIXIN_FABRIC_BLOCK": "#MIXIN_FABRIC_BLOCK",
"__MIXIN_QUILT_BLOCK": "#MIXIN_QUILT_BLOCK",
"MIXIN_COMPAT_LEVEL": "JAVA_17",
"LOOM_FORGE_EXT": "loom {\n forge {\n mixinConfig \"examplemod-common.mixins.json\"\n mixinConfig \"examplemod.mixins.json\"\n }\n}\n"
}
}
Expand Down
11 changes: 2 additions & 9 deletions templates/forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,6 @@ repositories {
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
// for more information about repositories.

// in this example, we need the following maven
// to satisfy our dependency for JEI.
maven {
name = "Progwml6 (Just Enough Items)"
url = "https://dvs1.progwml6.com/files/maven/"
}
}

dependencies {
Expand Down Expand Up @@ -95,9 +88,9 @@ dependencies {
// compile against the JEI API but do not include it at runtime
// don't worry about loom "not finding a forge mod" here,
// JEI's api just doesn't have any class with an @Mod annotation
modCompileOnly "mezz.jei:jei-@MINECRAFT@:${jei_version}:api"
// modCompileOnly "mezz.jei:jei-@MINECRAFT@:${jei_version}:api"
// at runtime, use the full JEI jar
modRuntimeOnly "mezz.jei:jei-@MINECRAFT@:${jei_version}"
// modRuntimeOnly "mezz.jei:jei-@MINECRAFT@:${jei_version}"
}

processResources {
Expand Down
3 changes: 0 additions & 3 deletions templates/forge/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,3 @@ loom.platform=forge
archives_base_name=archloom-example-mod
mod_id=archloom-example-mod
mod_author=TheExampleDev

# Dependencies
jei_version=@JEI_MAJOR@.+

0 comments on commit c63d627

Please sign in to comment.