Jump to content

I've been trying to make a mod for days now and it keeps giving errors. I've tried everything!


Recommended Posts

I've been trying to make a very simple mod and I cant even get the build.gradle working. I've tried everything... What am I doing wrong? 

There might be some stuff missing because I tried a lot of things to get it to work. The first error was something about the version and I fixed that and its thing after thing after thing.. Ugh. All I'm trying to do is set the thing up to be made into a mod. Its current error has made me so mad I've had to quit for a few hours. I cant get rid of it. I cant even use .\gradlew commands now. It gives me the same error for everything. It says "No such property: archivesBaseName for class: org.gradle.api.internal.project.DefaultProject_Decorated" but I cant find a trace of this error or even this repo anywhere on the internet. Can anyone help me? I'm very cooperative and usually calm except when I cant do anything right.

 

 

 

 

 

 

 

buildscript {
    repositories {
        mavenCentral()
        maven {
            name = "forge"
            url = "http://files.minecraftforge.net/maven"
        }
        maven {
            name = "sonatype"
            url = "https://oss.sonatype.org/content/repositories/snapshots/"
        }   
    }
    dependencies {
    "net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT"
    }
}

version = "1.7.10-10.13.4.1614-1.7.10"
group= "com.patrickwhittington.ancientbricks" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "ancientbricks"

minecraft {
    mappings = 'stable_12'
}

dependencies {
    // you may put jars on which you depend on in ./libs
    // or you may define them like so..
    //compile "some.group:artifact:version:classifier"
    //compile "some.group:artifact:version"
      
    // real examples
    //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev'  // adds buildcraft to the dev env
    //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env

    // for more info...
    // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
    // http://www.gradle.org/docs/current/userguide/dependency_management.html

}

processResources
{
    // this will ensure that this task is redone when the versions change.
    inputs.property "version", project.version
    inputs.property "mcversion", project.minecraft.version

    // replace stuff in mcmod.info, nothing else
    from(sourceSets.main.resources.srcDirs) {
        include 'mcmod.info'
                
        // replace version and mcversion
        expand 'version':project.version, 'mcversion':project.minecraft.version
    }
        
    // copy everything else, thats not the mcmod.info
    from(sourceSets.main.resources.srcDirs) {
        exclude 'mcmod.info'
    }
}
 

Edited by Endra The Celestial
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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