Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Add extra resource folder to runClient


Recommended Posts



I'm adding a new source set to my project, so that I can isolate some test mods - i.e. mods that are not to be packaged with everything else. So far I can make this compile fine, but I couldn't find out how to make ForgeGradle see the resources folder. If I do this in my `build.gradle`:


sourceSets {
    mods {
        scala {
            compileClasspath += sourceSets.main.runtimeClasspath
            compileClasspath += main.output


and then this:


runClient.classpath += sourceSets.mods.output


The sources are compiled correctly and when I execute `runClient`, the mods are there. All the assets / resources are not, though, so I see lots of the purple/black cubes and untranslated strings in the game. I'm investigating ForgeGradle's source, but I don't yet understand how the assets folder is defined and made visible to the `runClient` task.



just you wait! ;)

Link to comment
Share on other sites

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.

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.


  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.