Jump to content

Johake

Members
  • Posts

    2
  • Joined

  • Last visited

Johake's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Making a 1.16.5 mod with IntelliJ. Build.Gradle file started not working Will paste the file with the subsequent error after. buildscript { repositories { maven { url = 'https://maven.minecraftforge.net' } mavenCentral() maven { url 'https://libraries.minecraft.net/' } maven { url 'https://repo.maven.apache.org/maven2' } } dependencies { classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true } } apply plugin: 'net.minecraftforge.gradle' apply plugin: 'eclipse' apply plugin: 'maven-publish' version = '1.0-1.16.5' group = 'com.johake.myranium' java.toolchain.languageVersion = JavaLanguageVersion.of(8) println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch')) minecraft { mappings channel: 'snapshot', version: '20210309-1.16.5' runs { client { workingDirectory project.file('run') property 'forge.logging.markers', 'REGISTRIES' property 'forge.logging.console.level', 'debug' mods { myranium { source sourceSets.main } } } server { workingDirectory project.file('run') property 'forge.logging.markers', 'REGISTRIES' property 'forge.logging.console.level', 'debug' mods { myranium { source sourceSets.main } } } data { workingDirectory project.file('run') property 'forge.logging.markers', 'REGISTRIES' property 'forge.logging.console.level', 'debug' args '--mod', 'myranium', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/') mods { myranium { source sourceSets.main } } } } } sourceSets.main.resources { srcDir 'src/generated/resources' } dependencies { minecraft 'net.minecraftforge:forge:1.16.5-36.1.0' implementation 'net.minecraftforge.fml:common:3.2.1' implementation 'net.minecraftforge.fml:network:2.5.1' } jar { manifest { attributes([ "Specification-Title": "myranium", "Specification-Vendor": "myraniumareus", "Specification-Version": "1", "Implementation-Title": project.name, "Implementation-Version": "${version}", "Implementation-Vendor" :"myraniumareus", "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ") ]) } } jar.finalizedBy('reobfJar') publishing { publications { mavenJava(MavenPublication) { from components.java } } repositories { maven { url "file:///${project.projectDir}/mcmodsrepo" maven { url = 'https://maven.minecraftforge.net' } mavenCentral() maven { url = 'https://libraries.minecraft.net/' } maven { url = 'https://files.minecraftforge.net/maven' } } } } Error I'm getting: Could not resolve all files for configuration ':runtimeClasspathCopy'. > Could not find net.minecraftforge.fml:common:3.2.1. Searched in the following locations: - https://maven.minecraftforge.net/net/minecraftforge/fml/common/3.2.1/common-3.2.1.module - https://maven.minecraftforge.net/net/minecraftforge/fml/common/3.2.1/common-3.2.1.pom - https://maven.minecraftforge.net/net/minecraftforge/fml/common/3.2.1/common-3.2.1.jar - https://libraries.minecraft.net/net/minecraftforge/fml/common/3.2.1/common-3.2.1.jar - https://repo.maven.apache.org/maven2/net/minecraftforge/fml/common/3.2.1/common-3.2.1.pom Required by: project : > Could not find net.minecraftforge.fml:network:2.5.1. Searched in the following locations: - https://maven.minecraftforge.net/net/minecraftforge/fml/network/2.5.1/network-2.5.1.module - https://maven.minecraftforge.net/net/minecraftforge/fml/network/2.5.1/network-2.5.1.pom - https://maven.minecraftforge.net/net/minecraftforge/fml/network/2.5.1/network-2.5.1.jar - https://libraries.minecraft.net/net/minecraftforge/fml/network/2.5.1/network-2.5.1.jar - https://repo.maven.apache.org/maven2/net/minecraftforge/fml/network/2.5.1/network-2.5.1.pom Required by: project : Possible solution: - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html Help appreciated
  2. Making a 1.16.5 mod with IntelliJ. Build.Gradle file started not working Will paste the file with the subsequent error after. buildscript { repositories { maven { url = 'https://maven.minecraftforge.net' } mavenCentral() maven { url 'https://libraries.minecraft.net/' } maven { url 'https://repo.maven.apache.org/maven2' } } dependencies { classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true } } apply plugin: 'net.minecraftforge.gradle' apply plugin: 'eclipse' apply plugin: 'maven-publish' version = '1.0-1.16.5' group = 'com.johake.myranium' java.toolchain.languageVersion = JavaLanguageVersion.of(8) println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch')) minecraft { mappings channel: 'snapshot', version: '20210309-1.16.5' runs { client { workingDirectory project.file('run') property 'forge.logging.markers', 'REGISTRIES' property 'forge.logging.console.level', 'debug' mods { myranium { source sourceSets.main } } } server { workingDirectory project.file('run') property 'forge.logging.markers', 'REGISTRIES' property 'forge.logging.console.level', 'debug' mods { myranium { source sourceSets.main } } } data { workingDirectory project.file('run') property 'forge.logging.markers', 'REGISTRIES' property 'forge.logging.console.level', 'debug' args '--mod', 'myranium', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/') mods { myranium { source sourceSets.main } } } } } sourceSets.main.resources { srcDir 'src/generated/resources' } dependencies { minecraft 'net.minecraftforge:forge:1.16.5-36.1.0' implementation 'net.minecraftforge.fml:common:3.2.1' implementation 'net.minecraftforge.fml:network:2.5.1' } jar { manifest { attributes([ "Specification-Title": "myranium", "Specification-Vendor": "myraniumareus", "Specification-Version": "1", "Implementation-Title": project.name, "Implementation-Version": "${version}", "Implementation-Vendor" :"myraniumareus", "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ") ]) } } jar.finalizedBy('reobfJar') publishing { publications { mavenJava(MavenPublication) { from components.java } } repositories { maven { url "file:///${project.projectDir}/mcmodsrepo" maven { url = 'https://maven.minecraftforge.net' } mavenCentral() maven { url = 'https://libraries.minecraft.net/' } maven { url = 'https://files.minecraftforge.net/maven' } } } } Error I'm getting: Could not resolve all files for configuration ':runtimeClasspathCopy'. > Could not find net.minecraftforge.fml:common:3.2.1. Searched in the following locations: - https://maven.minecraftforge.net/net/minecraftforge/fml/common/3.2.1/common-3.2.1.module - https://maven.minecraftforge.net/net/minecraftforge/fml/common/3.2.1/common-3.2.1.pom - https://maven.minecraftforge.net/net/minecraftforge/fml/common/3.2.1/common-3.2.1.jar - https://libraries.minecraft.net/net/minecraftforge/fml/common/3.2.1/common-3.2.1.jar - https://repo.maven.apache.org/maven2/net/minecraftforge/fml/common/3.2.1/common-3.2.1.pom Required by: project : > Could not find net.minecraftforge.fml:network:2.5.1. Searched in the following locations: - https://maven.minecraftforge.net/net/minecraftforge/fml/network/2.5.1/network-2.5.1.module - https://maven.minecraftforge.net/net/minecraftforge/fml/network/2.5.1/network-2.5.1.pom - https://maven.minecraftforge.net/net/minecraftforge/fml/network/2.5.1/network-2.5.1.jar - https://libraries.minecraft.net/net/minecraftforge/fml/network/2.5.1/network-2.5.1.jar - https://repo.maven.apache.org/maven2/net/minecraftforge/fml/network/2.5.1/network-2.5.1.pom Required by: project : Possible solution: - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html Help appreciated
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.