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.

Featured Replies

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!

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.

 

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

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...

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.