Jump to content

Recommended Posts

Posted

I'm not sure exactly of whats happening, all I know is that I built my mod's jar file and, for some reasons, it dosen't render any models or textures. What information should I provide to make it more helpful? Here's my build 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 = "1.0"

group= "Ygniculus.AurorasBloom"

archivesBaseName = "ab"

 

sourceSets {

    main {

java { srcDirs = ["C:/Users/Victor/Desktop/TheMod/AurorasBloom/src/main/java"] }

resources { srcDirs = ["C:/Users/Victor/Desktop/TheMod/AurorasBloom/src/main/resources"] }

    }

}

 

minecraft {

    version = "1.8-11.14.3.1450"

    runDir = "eclipse"

}

 

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'

    }

}

 

 

 

 

I'm using eclipse and running minecraft 1.8, if I can provide any information, I'd love to.

Posted

Does the built .jar file contains resource folder?

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Posted

Ok, so I gave it a few more tries and it turns out there was a freaking ' before my build gradle file, for whatever unlucky reason, I didn't copy it. I fixed that, added your suggestion and it now works (with minor issues that I know how to solve and have nothing to do with this)! Thanks for helping!

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.