Could not find net.minecraftforge:forge:1.16.5-36.2.34_mapped_offical_1.16.5-36.2.34

Я пытался создать мод для майнкрафт версии 1.16.5, строго следуя туториалу настроил всё, но когда дело дошло до gradlew genEclipseRuns произошла ошибка:

    > Configure project :
    Java: 17.0.3 JVM: 17.0.3+7(Eclipse Adoptium) Arch: amd64
    Error getting artifact: net.minecraft:mappings_offical:1.16.5-36.2.34:null@zip from  MCPRepo
    java.lang.IllegalArgumentException: Unknown mapping provider: offical_1.16.5-36.2.34, currently 
    loaded: [stable_nodoc, snapshot_nodoc, stable, official, snapshot]
        Could not download MCP Mappings: net.minecraft:mappings_offical:1.16.5-36.2.34@zip
        Error getting artifact: net.minecraftforge:forge:1.16.5-36.2.34_mapped_offical_1.16.5- 
        36.2.34:null@jar from  MinecraftUserRepo
        java.lang.IllegalStateException: Could not download MCP Mappings: 
        net.minecraft:mappings_offical:1.16.5-36.2.34@zip
Error getting artifact: net.minecraft:mappings_offical:1.16.5-36.2.34:null@zip from  MCPRepo
java.lang.IllegalArgumentException: Unknown mapping provider: offical_1.16.5-36.2.34, currently loaded: [stable_nodoc, snapshot_nodoc, stable, official, snapshot]
Could not download MCP Mappings: net.minecraft:mappings_offical:1.16.5-36.2.34@zip
Error getting artifact: net.minecraftforge:forge:1.16.5-36.2.34_mapped_offical_1.16.5-36.2.34:null@jar from  MinecraftUserRepo
java.lang.IllegalStateException: Could not download MCP Mappings: net.minecraft:mappings_offical:1.16.5-36.2.34@zip    
FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':runtimeClasspathCopy'.
> Could not find net.minecraftforge:forge:1.16.5-36.2.34_mapped_offical_1.16.5-36.2.34.
  Searched in the following locations:
    - file:/C:/Users/User/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.16.5-36.2.34_mapped_offical_1.16.5-36.2.34/forge-1.16.5-36.2.34_mapped_offical_1.16.5-36.2.34.pom
    - file:/C:/Users/User/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.16.5-36.2.34_mapped_offical_1.16.5-36.2.34/forge-1.16.5-36.2.34_mapped_offical_1.16.5-36.2.34.jar

Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find net.minecraftforge:forge:1.16.5-36.2.34_mapped_offical_1.16.5-36.2.34.
Searched in the following locations:
  - file:/C:/Users/User/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.16.5-36.2.34_mapped_offical_1.16.5-36.2.34/forge-1.16.5-36.2.34_mapped_offical_1.16.5-36.2.34.pom
  - file:/C:/Users/User/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.16.5-36.2.34_mapped_offical_1.16.5-36.2.34/forge-1.16.5-36.2.34_mapped_offical_1.16.5-36.2.34.jar

вот мой файл build.gradle:

buildscript {
    repositories {
        maven { url = 'https://maven.minecraftforge.net' }
        mavenCentral()
    }
    dependencies {
        classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
    }
}
apply plugin: 'net.minecraftforge.gradle'
// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
apply plugin: 'eclipse'
apply plugin: 'maven-publish'

version = '1.0'
group = 'com.yourname.modid' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = 'modid'

java.toolchain.languageVersion = JavaLanguageVersion.of(8) // Mojang ships Java 8 to end users, so your mod should target Java 8.

println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch'))
minecraft {
    // The mappings can be changed at any time, and must be in the following format.
    // Channel:   Version:
    // snapshot   YYYYMMDD   Snapshot are built nightly.
    // stable     #          Stables are built at the discretion of the MCP team.
    // official   MCVersion  Official field/method names from Mojang mapping files
    //
    // You must be aware of the Mojang license when using the 'official' mappings.
    // See more information here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md
    //
    // Use non-default mappings at your own risk. they may not always work.
    // Simply re-run your setup task after changing the mappings to update your workspace.
    mappings channel: 'offical', version: '1.16.5'
    // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
    
    // accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')

    // Default run configurations.
    // These can be tweaked, removed, or duplicated as needed.
    runs {
        client {
            workingDirectory project.file('run')

            // Recommended logging data for a userdev environment
            // The markers can be changed as needed.
            // "SCAN": For mods scan.
            // "REGISTRIES": For firing of registry events.
            // "REGISTRYDUMP": For getting the contents of all registries.
            property 'forge.logging.markers', 'REGISTRIES'

            // Recommended logging level for the console
            // You can set various levels here.
            // Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels
            property 'forge.logging.console.level', 'debug'

            mods {
                examplemod {
                    source sourceSets.main
                }
            }
        }

        server {
            workingDirectory project.file('run')

            // Recommended logging data for a userdev environment
            // The markers can be changed as needed.
            // "SCAN": For mods scan.
            // "REGISTRIES": For firing of registry events.
            // "REGISTRYDUMP": For getting the contents of all registries.
            property 'forge.logging.markers', 'REGISTRIES'

            // Recommended logging level for the console
            // You can set various levels here.
            // Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels
            property 'forge.logging.console.level', 'debug'

            mods {
                examplemod {
                    source sourceSets.main
                }
            }
        }

        data {
            workingDirectory project.file('run')

            // Recommended logging data for a userdev environment
            // The markers can be changed as needed.
            // "SCAN": For mods scan.
            // "REGISTRIES": For firing of registry events.
            // "REGISTRYDUMP": For getting the contents of all registries.
            property 'forge.logging.markers', 'REGISTRIES'

            // Recommended logging level for the console
            // You can set various levels here.
            // Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels
            property 'forge.logging.console.level', 'debug'

            // Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources.
            args '--mod', 'examplemod', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')

            mods {
                examplemod {
                    source sourceSets.main
                }
            }
        }
    }
}

// Include resources generated by data generators.
sourceSets.main.resources { srcDir 'src/generated/resources' }

Версия JDK 17.0.3.1 Версия forge 1.16.5 - 36.2.34


Ответы (0 шт):