Jump to content

Build with assets in 1.7.2


skyress3000

Recommended Posts

I just ran gradle with this build.gradle:

 

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.1-SNAPSHOT'

    }

}

 

apply plugin: 'forge'

 

version = "1.7.2-1.0"

group= "com.darkfangsmod.darkfangsblocks" // http://maven.apache.org/guides/mini/guide-naming-conventions.html

archivesBaseName = "darkfangsmod"

 

minecraft {

    version = "1.7.2-10.12.0.1024"

    assetDir = "eclipse/assets"

}

processResources

{

    // 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'

    }

}

 

and it worked fine. However, I want it to also export the assets, which are in the package assets.darkfangsmod.textures and assets.darkfangsmod.language, like they have to be. How can I get these to export into the right place for use outside of the development environment?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

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