From 8ce001266e38474884943eca2da7209291bc5423 Mon Sep 17 00:00:00 2001 From: cpw Date: Sat, 15 Jul 2023 17:16:28 -0400 Subject: [PATCH] Update some of the file infos --- gitattributes.txt => .gitattributes | 0 gitignore.txt => .gitignore | 0 build.gradle | 13 +++++++------ gradle.properties | 16 ++++++++-------- src/main/resources/META-INF/mods.toml | 6 +++--- 5 files changed, 18 insertions(+), 17 deletions(-) rename gitattributes.txt => .gitattributes (100%) rename gitignore.txt => .gitignore (100%) diff --git a/gitattributes.txt b/.gitattributes similarity index 100% rename from gitattributes.txt rename to .gitattributes diff --git a/gitignore.txt b/.gitignore similarity index 100% rename from gitignore.txt rename to .gitignore diff --git a/build.gradle b/build.gradle index 5fa3a32..51f1661 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ plugins { id 'eclipse' id 'idea' id 'maven-publish' - id 'net.minecraftforge.gradle' version '[6.0,6.2)' + id 'net.minecraftforge.gradle' version '[6.0.12,6.2)' } version = mod_version @@ -23,7 +23,7 @@ minecraft { // parchment YYYY.MM.DD-MCVersion Open community-sourced parameter names and javadocs layered on top of official // // You must be aware of the Mojang license when using the 'official' or 'parchment' mappings. - // See more information here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md + // See more information here: https://github.com/NeoForged/NeoForm/blob/main/Mojang.md // // Parchment is an unofficial project maintained by ParchmentMC, separate from MinecraftForge // Additional setup is needed to use their mappings: https://parchmentmc.org/docs/getting-started @@ -52,7 +52,8 @@ minecraft { // The access transformer file can be anywhere in the project. // However, it must be at "META-INF/accesstransformer.cfg" in the final mod jar to be loaded by Forge. // This default location is a best practice to automatically put the file in the right place in the final jar. - // See https://docs.minecraftforge.net/en/latest/advanced/accesstransformers/ for more information. + // See https://docs.neoforged.net/docs/1.20.x/advanced/accesstransformers/ for more information. + // accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg') // Default run configurations. @@ -113,7 +114,7 @@ sourceSets.main.resources { srcDir 'src/generated/resources' } repositories { // Put repositories for dependencies here - // ForgeGradle automatically adds the Forge maven and Maven Central for you + // NeoGradle automatically adds the Forge maven and Maven Central for you // If you have mod jar dependencies in ./libs, you can declare them as a repository like so. // See https://docs.gradle.org/current/userguide/declaring_repositories.html#sub:flat_dir_resolver @@ -125,10 +126,10 @@ repositories { dependencies { // Specify the version of Minecraft to use. // Any artifact can be supplied so long as it has a "userdev" classifier artifact and is a compatible patcher artifact. - // The "userdev" classifier will be requested and setup by ForgeGradle. + // The "userdev" classifier will be requested and setup by NeoGradle. // If the group id is "net.minecraft" and the artifact id is one of ["client", "server", "joined"], // then special handling is done to allow a setup of a vanilla dependency without the use of an external repository. - minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}" + minecraft "net.neoforged:forge:${minecraft_version}-${forge_version}" // Example mod dependency with JEI - using fg.deobf() ensures the dependency is remapped to your development mappings // The JEI API is declared for compile time use, while the full JEI artifact is used at runtime diff --git a/gradle.properties b/gradle.properties index f774ba3..0d8fbd0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,17 +7,17 @@ org.gradle.daemon=false ## Environment Properties # The Minecraft version must agree with the Forge version to get a valid artifact -minecraft_version=@MC_VERSION@ +minecraft_version=1.20.1 # The Minecraft version range can use any release version of Minecraft as bounds. # Snapshots, pre-releases, and release candidates are not guaranteed to sort properly # as they do not follow standard versioning conventions. -minecraft_version_range=[@MC_VERSION@,@MC_NEXT_VERSION@) +minecraft_version_range=[1.20,1.21) # The Forge version must agree with the Minecraft version to get a valid artifact -forge_version=@FORGE_VERSION@ +forge_version=47.1.7 # The Forge version range can use any version of Forge as bounds or match the loader version range -forge_version_range=[@FORGE_SPEC_VERSION@,) +forge_version_range=[47.1,) # The loader version range can only use the major version of Forge/FML as bounds -loader_version_range=[@FORGE_SPEC_VERSION@,) +loader_version_range=[47,) # The mapping channel to use for mappings. # The default set of supported mapping channels are ["official", "snapshot", "snapshot_nodoc", "stable", "stable_nodoc"]. # Additional mapping channels can be registered through the "channelProviders" extension in a Gradle plugin. @@ -32,10 +32,10 @@ loader_version_range=[@FORGE_SPEC_VERSION@,) # # Parchment is an unofficial project maintained by ParchmentMC, separate from Minecraft Forge. # Additional setup is needed to use their mappings, see https://parchmentmc.org/docs/getting-started -mapping_channel=@MAPPING_CHANNEL@ +mapping_channel=official # The mapping version to query from the mapping channel. # This must match the format required by the mapping channel. -mapping_version=@MAPPING_VERSION@ +mapping_version=1.20.1 ## Mod Properties @@ -56,4 +56,4 @@ mod_group_id=com.example.examplemod # The authors of the mod. This is a simple text string that is used for display purposes in the mod list. mod_authors=YourNameHere, OtherNameHere # The description of the mod. This is a simple multiline text string that is used for display purposes in the mod list. -mod_description=Example mod description.\nNewline characters can be used and will be replaced properly. \ No newline at end of file +mod_description=Example mod description.\nNewline characters can be used and will be replaced properly. diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index 95e8668..66aeaf9 100644 --- a/src/main/resources/META-INF/mods.toml +++ b/src/main/resources/META-INF/mods.toml @@ -5,8 +5,8 @@ # Find more information on toml format here: https://github.com/toml-lang/toml # The name of the mod loader type to load - for regular FML @Mod mods it should be javafml modLoader="javafml" #mandatory -# A version range to match for said mod loader - for regular FML @Mod it will be the forge version -loaderVersion="${loader_version_range}" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions. +# A version range to match for said mod loader - for regular FML @Mod it will be the the FML version. This is currently 47. +loaderVersion="${loader_version_range}" #mandatory # The license for you mod. This is mandatory metadata and allows for easier comprehension of your redistributive properties. # Review your options at https://choosealicense.com/. All rights reserved is the default copyright stance, and is thus the default here. license="${mod_license}" @@ -67,4 +67,4 @@ description='''${mod_description}''' # that your mod requires GL version 3.2 or higher. Other features will be added. They are side aware so declaring this won't # stop your mod loading on the server for example. #[features.${mod_id}] -#openGLVersion="[3.2,)" \ No newline at end of file +#openGLVersion="[3.2,)"