⁠
rednesto: Bump templates
Copy
Copy
- {
- "version": 1,
- "group": "mod",
- "properties": [
- {
- "name": "BUILD_COORDS",
- "type": "build_system_coordinates",
- "order": 10
- },
- {
- "name": "LANGUAGE",
- "type": "string",
- "options": [
- "Java",
- "Kotlin"
- ]
- },
- {
- "name": "VERSIONS",
- "type": "neoforge_versions",
- "parameters": {
- "mcVersionFilter": "$MC_VERSION.compareTo($mcver.MC1_20_5) >= 0"
- }
- },
- {
- "name": "KFF_VERSION",
- "type": "semantic_version",
- "default": "",
- "visible": false,
- "derives": {
- "parents": ["VERSIONS"],
- "select": [
- {
- "condition": "$VERSIONS.minecraft != $null && $VERSIONS.minecraft.compareTo($mcver.MC1_21) >= 0",
- "value": "5.3.0"
- },
- {
- "condition": "$VERSIONS.minecraft != $null && $VERSIONS.minecraft.compareTo($mcver.MC1_20_6) >= 0",
- "value": "5.2.0"
- },
- {
- "condition": "$VERSIONS.minecraft != $null && $VERSIONS.minecraft.compareTo($mcver.MC1_20_5) >= 0",
- "value": "5.0.0"
- }
- ],
- "default": ""
- }
- },
- {
- "name": "KOTLIN_VERSION",
- "type": "semantic_version",
- "default": "",
- "visible": false,
- "derives": {
- "parents": ["VERSIONS"],
- "select": [
- {
- "condition": "$VERSIONS.minecraft != $null && $VERSIONS.minecraft.compareTo($mcver.MC1_20_6) >= 0",
- "value": "2.0.0"
- },
- {
- "condition": "$VERSIONS.minecraft != $null && $VERSIONS.minecraft.compareTo($mcver.MC1_20_5) >= 0",
- "value": "1.9.23"
- }
- ],
- "default": ""
- }
- },
- {
- "name": "USE_MIXINS",
- "type": "boolean",
- "remember": "neoforge.USE_MIXINS",
- "default": false
- },
- {
- "name": "MOD_ID",
- "type": "string",
- "validator": "[a-z][a-z0-9_]{1,63}",
- "derives": {
- "parents": ["PROJECT_NAME"],
- "method": "replace",
- "parameters": {
- "regex": "[^a-z0-9-_]+",
- "replacement": "_",
- "maxLength": 64,
- "lowercase": true
- }
- }
- },
- {
- "name": "MOD_NAME",
- "type": "string",
- "inheritFrom": "PROJECT_NAME"
- },
- {
- "name": "MAIN_CLASS",
- "type": "class_fqn",
- "derives": {
- "parents": ["BUILD_COORDS", "MOD_ID"],
- "method": "suggestClassName"
- }
- },
- {
- "name": "LICENSE",
- "type": "license"
- },
- {
- "label": "creator.ui.optional_settings.label",
- "collapsible": true,
- "groupProperties": [
- {
- "name": "DESCRIPTION",
- "type": "string",
- "default": ""
- },
- {
- "name": "AUTHORS",
- "type": "inline_string_list",
- "default": ""
- },
- {
- "name": "WEBSITE",
- "type": "string",
- "default": ""
- },
- {
- "name": "UPDATE_URL",
- "type": "string",
- "default": "",
- "nullIfDefault": true
- },
- {
- "name": "PARCHMENT",
- "type": "parchment",
- "parameters": {
- "minecraftVersionProperty": "VERSIONS"
- }
- }
- ]
- },
- {
- "name": "JAVA_VERSION",
- "type": "integer",
- "order": 20,
- "default": 17,
- "visible": false,
- "derives": {
- "parents": ["VERSIONS"],
- "method": "recommendJavaVersionForMcVersion",
- "default": 17
- }
- },
- {
- "name": "JDK",
- "type": "jdk",
- "order": 20,
- "default": "JAVA_VERSION"
- }
- ],
- "files": [
- {
- "template": "../Gradle.gitignore.ft",
- "destination": ".gitignore",
- "condition": "$USE_GIT"
- },
- {
- "template": "build.gradle.ft",
- "destination": "build.gradle"
- },
- {
- "template": "settings.gradle.ft",
- "destination": "settings.gradle"
- },
- {
- "template": "gradle.properties.ft",
- "destination": "gradle.properties"
- },
- {
- "template": "../gradle-wrapper.properties.ft",
- "destination": "gradle/wrapper/gradle-wrapper.properties"
- },
- {
- "template": "neoforge.mods.toml.ft",
- "destination": "src/main/resources/META-INF/neoforge.mods.toml"
- },
- {
- "template": "MixinsConfig.json.ft",
- "destination": "src/main/resources/${MOD_ID}.mixins.json",
- "condition": "$USE_MIXINS"
- },
- {
- "template": "MainClass.java.ft",
- "destination": "src/main/java/${MAIN_CLASS.path}.java",
- "condition": "$LANGUAGE=='Java'",
- "openInEditor": true
- },
- {
- "template": "Config.java.ft",
- "destination": "src/main/java/${MAIN_CLASS.packagePath}/Config.java",
- "condition": "$LANGUAGE=='Java' && $VERSIONS.minecraft.compareTo($mcver.MC1_21) < 0"
- },
- {
- "template": "Config (1.21+).java.ft",
- "destination": "src/main/java/${MAIN_CLASS.packagePath}/Config.java",
- "condition": "$LANGUAGE=='Java' && $VERSIONS.minecraft.compareTo($mcver.MC1_21) >= 0"
- },
- {
- "template": "MainClass.kt.ft",
- "destination": "src/main/kotlin/${MAIN_CLASS.path}.kt",
- "condition": "$LANGUAGE=='Kotlin'",
- "openInEditor": true
- },
- {
- "template": "ModBlocks.kt.ft",
- "destination": "src/main/kotlin/${MAIN_CLASS.packagePath}/block/ModBlocks.kt",
- "condition": "$LANGUAGE=='Kotlin'",
- "openInEditor": true
- }
- ],
- "finalizers": [
- {
- "type": "import_gradle_project"
- },
- {
- "type": "run_gradle_tasks",
- "tasks": ["wrapper"]
- },
- {
- "type": "git_add_all",
- "condition": "$USE_GIT"
- }
- ]
- }
- {
- "version": 1,
- "group": "mod",
- "properties": [
- {
- "name": "BUILD_COORDS",
- "type": "build_system_coordinates",
- "order": 10
- },
- {
- "name": "LANGUAGE",
- "type": "string",
- "options": [
- "Java",
- "Kotlin"
- ]
- },
- {
- "name": "VERSIONS",
- "type": "neoforge_versions",
- "parameters": {
- "mcVersionFilter": "$MC_VERSION.compareTo($mcver.MC1_20_5) >= 0"
- }
- },
- {
- "name": "KFF_VERSION",
- "type": "semantic_version",
- "default": "",
- "visible": false,
- "derives": {
- "parents": ["VERSIONS"],
- "select": [
- {
- "condition": "$VERSIONS.minecraft != $null && $VERSIONS.minecraft.compareTo($mcver.MC1_21) >= 0",
- "value": "5.3.0"
- },
- {
- "condition": "$VERSIONS.minecraft != $null && $VERSIONS.minecraft.compareTo($mcver.MC1_20_6) >= 0",
- "value": "5.2.0"
- },
- {
- "condition": "$VERSIONS.minecraft != $null && $VERSIONS.minecraft.compareTo($mcver.MC1_20_5) >= 0",
- "value": "5.0.0"
- }
- ],
- "default": ""
- }
- },
- {
- "name": "KOTLIN_VERSION",
- "type": "semantic_version",
- "default": "",
- "visible": false,
- "derives": {
- "parents": ["VERSIONS"],
- "select": [
- {
- "condition": "$VERSIONS.minecraft != $null && $VERSIONS.minecraft.compareTo($mcver.MC1_20_6) >= 0",
- "value": "2.0.0"
- },
- {
- "condition": "$VERSIONS.minecraft != $null && $VERSIONS.minecraft.compareTo($mcver.MC1_20_5) >= 0",
- "value": "1.9.23"
- }
- ],
- "default": ""
- }
- },
- {
- "name": "USE_MIXINS",
- "type": "boolean",
- "remember": "neoforge.USE_MIXINS",
- "default": false
- },
- {
- "name": "MOD_ID",
- "type": "string",
- "validator": "[a-z][a-z0-9_]{1,63}",
- "derives": {
- "parents": ["PROJECT_NAME"],
- "method": "replace",
- "parameters": {
- "regex": "[^a-z0-9-_]+",
- "replacement": "_",
- "maxLength": 64,
- "lowercase": true
- }
- }
- },
- {
- "name": "MOD_NAME",
- "type": "string",
- "inheritFrom": "PROJECT_NAME"
- },
- {
- "name": "MAIN_CLASS",
- "type": "class_fqn",
- "derives": {
- "parents": ["BUILD_COORDS", "MOD_ID"],
- "method": "suggestClassName"
- }
- },
- {
- "name": "LICENSE",
- "type": "license"
- },
- {
- "label": "creator.ui.optional_settings.label",
- "collapsible": true,
- "groupProperties": [
- {
- "name": "DESCRIPTION",
- "type": "string",
- "default": ""
- },
- {
- "name": "AUTHORS",
- "type": "inline_string_list",
- "default": ""
- },
- {
- "name": "WEBSITE",
- "type": "string",
- "default": ""
- },
- {
- "name": "UPDATE_URL",
- "type": "string",
- "default": "",
- "nullIfDefault": true
- },
- {
- "name": "PARCHMENT",
- "type": "parchment",
- "parameters": {
- "minecraftVersionProperty": "VERSIONS"
- }
- }
- ]
- },
- {
- "name": "JAVA_VERSION",
- "type": "integer",
- "order": 20,
- "default": 17,
- "visible": false,
- "derives": {
- "parents": ["VERSIONS"],
- "method": "recommendJavaVersionForMcVersion",
- "default": 17
- }
- },
- {
- "name": "JDK",
- "type": "jdk",
- "order": 20,
- "default": "JAVA_VERSION"
- }
- ],
- "files": [
- {
- "template": "../Gradle.gitignore.ft",
- "destination": ".gitignore",
- "condition": "$USE_GIT"
- },
- {
- "template": "build.gradle.ft",
- "destination": "build.gradle"
- },
- {
- "template": "settings.gradle.ft",
- "destination": "settings.gradle"
- },
- {
- "template": "gradle.properties.ft",
- "destination": "gradle.properties"
- },
- {
- "template": "../gradle-wrapper.properties.ft",
- "destination": "gradle/wrapper/gradle-wrapper.properties"
- },
- {
- "template": "neoforge.mods.toml.ft",
- "destination": "src/main/templates/META-INF/neoforge.mods.toml"
- },
- {
- "template": "MixinsConfig.json.ft",
- "destination": "src/main/resources/${MOD_ID}.mixins.json",
- "condition": "$USE_MIXINS"
- },
- {
- "template": "en_us.json.ft",
- "destination": "src/main/resources/assets/${MOD_ID}/lang/en_us.json"
- },
- {
- "template": "MainClass.java.ft",
- "destination": "src/main/java/${MAIN_CLASS.path}.java",
- "condition": "$LANGUAGE=='Java'",
- "openInEditor": true
- },
- {
- "template": "Config.java.ft",
- "destination": "src/main/java/${MAIN_CLASS.packagePath}/Config.java",
- "condition": "$LANGUAGE=='Java' && $VERSIONS.minecraft.compareTo($mcver.MC1_21) < 0"
- },
- {
- "template": "Config (1.21+).java.ft",
- "destination": "src/main/java/${MAIN_CLASS.packagePath}/Config.java",
- "condition": "$LANGUAGE=='Java' && $VERSIONS.minecraft.compareTo($mcver.MC1_21) >= 0"
- },
- {
- "template": "MainClass.kt.ft",
- "destination": "src/main/kotlin/${MAIN_CLASS.path}.kt",
- "condition": "$LANGUAGE=='Kotlin'",
- "openInEditor": true
- },
- {
- "template": "ModBlocks.kt.ft",
- "destination": "src/main/kotlin/${MAIN_CLASS.packagePath}/block/ModBlocks.kt",
- "condition": "$LANGUAGE=='Kotlin'",
- "openInEditor": true
- }
- ],
- "finalizers": [
- {
- "type": "import_gradle_project"
- },
- {
- "type": "run_gradle_tasks",
- "tasks": ["wrapper"]
- },
- {
- "type": "git_add_all",
- "condition": "$USE_GIT"
- }
- ]
- }