Jump to content

Recommended Posts

Posted (edited)

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:DeepinScreenshot_select-area_20201222103340.thumb.png.c68bf110169181d90bfc89a1838387db.png

 

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):DeepinScreenshot_select-area_20201222103813.thumb.png.2e496958d008943cc82c1b7c37bb1a0d.png

 

I would be very glad if someone can help me with that :)

 

Edited by Lockface77
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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