Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

Posted

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

  • Author

Also. This is for a 1.7.10 mod. I'm making a block to finish my pallet without changing any other blocks. I'm also a beginner. Everybody has to start somewhere I guess... But I'm not getting anywhere like this.

Edited by Endra The Celestial

Guest
This topic is now closed to further replies.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.