From c8cf426f116b7501a70c799917c5a052b448a491 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Fri, 4 Mar 2022 09:25:01 +0800 Subject: [PATCH] Add 1.18.2 --- generator.config.json | 72 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/generator.config.json b/generator.config.json index 7967001..e6927c5 100644 --- a/generator.config.json +++ b/generator.config.json @@ -230,6 +230,78 @@ "MIXIN_COMPAT_LEVEL": "JAVA_16", "LOOM_FORGE_EXT": "loom {\n forge {\n mixinConfig \"examplemod-common.mixins.json\"\n mixinConfig \"examplemod.mixins.json\"\n }\n}\n" } + }, + "1.18.2-forge": { + "description": "1.18.2 Forge-Only Template", + "templates": [ + "templates/forge" + ], + "tokens": { + "MINECRAFT": "1.18.2", + "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" + }, + "FORGE": { + "filter": "1\\.18\\.2-.*", + "pom": "https://maven.minecraftforge.net/net/minecraftforge/forge/maven-metadata.xml" + }, + "FORGE_LOADER_MAJOR": "40", + "MIXIN_COMPAT_LEVEL": "JAVA_16" + } + }, + "1.18.2-architectury": { + "description": "1.18.2 Multi-Loader Template", + "templates": [ + "templates/architectury", + "templates/api_new" + ], + "tokens": { + "MINECRAFT": "1.18.2", + "JAVA_VERSION": "#JAVA_17", + "COMPILE_JAVA": "#COMPILE_JAVA_17_ARCH", + "FABRIC_LOADER": "#FABRIC_LOADER", + "LOOM_FORGE_EXT": "", + "MCMETA_FORMAT": "8", + "ARCHITECTURY_GROUP": "dev.architectury", + "ARCHITECTURY_PACKAGE": "dev.architectury", + "ARCHITECTURY_API": { + "filter": "4\\..*", + "pom": "https://maven.architectury.dev/dev/architectury/architectury/maven-metadata.xml" + }, + "YARN_MAPPINGS": { + "filter": "1\\.18\\.2\\+build\\..*", + "pom": "https://maven.fabricmc.net/net/fabricmc/yarn/maven-metadata.xml" + }, + "FABRIC_API": { + "filter": ".*\\+1\\.18\\.2", + "pom": "https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api/maven-metadata.xml" + }, + "FORGE": { + "filter": "1\\.18\\.2-.*", + "pom": "https://maven.minecraftforge.net/net/minecraftforge/forge/maven-metadata.xml" + }, + "FORGE_LOADER_MAJOR": "40", + "MIXIN_FABRIC_BLOCK": "" + } + }, + "1.18.2-architectury-mixin": { + "description": "1.18.2 Multi-Loader Template with Mixins", + "templates": [ + "templates/architectury", + "templates/api_new", + "templates/mixin" + ], + "inherit_tokens": "1.18.2-architectury", + "tokens": { + "MIXIN_FABRIC_BLOCK": "\n \"mixins\": [\n \"examplemod.mixins.json\",\n \"examplemod-common.mixins.json\"\n ],", + "MIXIN_COMPAT_LEVEL": "JAVA_16", + "LOOM_FORGE_EXT": "loom {\n forge {\n mixinConfig \"examplemod-common.mixins.json\"\n mixinConfig \"examplemod.mixins.json\"\n }\n}\n" + } } } }