Jump to content

Recommended Posts

Posted

i have looked up tutorials on it, but i still cant figure out how to. when i try to it finishes in about 15 seconds without any errors. then, when i take a look in the jarfile, i realize that the only content inside it is a META INF folder and a MANIFEST.MF file, but no classes. i think it might be tat I've written down the wrong path to my classes, but i have checked and it is correct, so I'm not sure. my mod is located in (relative to gradlew.bat) /src/sigurd4/. the package is com.sigurd4.Bioshock. this is my build.gradle file:

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

apply plugin: 'forge'

version = "0.1.1"
group= "com.sigurd4.Bioshock"
archivesBaseName = "BioshockMod"

minecraft {
    version = "1.7.2-10.12.1.1085"
    assetDir = "eclipse/assets"
}

dependencies {
}

processResources
{
    inputs.property "version", project.version
    inputs.property "mcversion", project.minecraft.version

    from(sourceSets.main.resources.srcDirs) {
        include 'mcmod.info'
                
        expand 'version':project.version, 'mcversion':project.minecraft.version
    }
        
    from(sourceSets.main.resources.srcDirs) {
        exclude 'mcmod.info'
    }
}

please help? :-\

edit1: spelling

http://www.planetminecraft.com/member/sigurd4

I'm making the bioshock mod!

Posted

I think your path relative to your gradlew.bat-file should look like this:

/src/main/java/sigurd4/...

Normally when you set up your workspace, forge creates automatically a /src/main/-folder which contains the java folder and the resources folder. If this is the problem, go to http://files.minecraftforge.net and download the recommended version. Then create a new workspace, put in all the files, ...

Then copy all your classes from /src/sigurd4/com/sigurd4/Bioshock to your new workspace to /src/main/java/sigurd4/...

 

If there is no src/main folder, the gradlew file cannot find your main class.

 

Posted

sigurd4, the path you specified is correct. Try running

 

gradlew build --stacktrace

 

and see if you DO get any errors. If not, I'd reinstall ForgeGradle.

-Mitchellbrine

 

Minecraft can do ANYTHING, it's coded in Java and you got the full power of Java behind you when you code. So nothing is impossible.

It may be freaking fucking hard though, but still possible ;)

 

If you create a topic on Modder Support, live by this motto:

I don't want your charity, I want your information
Posted

Your source packages should be anchored at: <gradlew location>/src/main/java/

So, you main is .../src/main/java/com/sigurd4/bioshock/Bioshock.java is an example main class location.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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