Hello
I am working on my first ever mod (have previous experience with java & spigot but never with mods).
I got to an issue yesterday:
My resource folder was not loading
So I checked everything 100 times during 2h and everything was fine so I could not understand why I got the "purple texture" in-game until I find this post:
They are saying that there is an asset problem in Intellij idea. So I tried to build my mod with ./gradlew build and take the jar and put it in my game. And it was working!
So now, you may ask why do I do this post?
It is because the solution mentioned in the post above is not working for me I mean, putting:
sourceSets { main { output.resourcesDir = output.classesDir } }
At the end of my build.gradle file is working, but as said in the post it does not allow to build the plugin with ./gradlew build
So someone came with another solution (in the post above): "don't delegate the build to graddle".
So I am trying to change that:
I removed the
sourceSets { main { output.resourcesDir = output.classesDir } }
At the end of my build.gradle file and reloaded gradle.
Then I choose to delegate the build to Intellij Idea instead of gradle using the CTRL+ALT+S as in this the screen attached:
BUT, the resource are still not loading ðŸ˜
Here is the screen in-game showing that I don't have provided as mcmod.info (but it is provided because I am able to see it with the sourceSets gradle hack):
I would be very glad if someone can help me with that