Shimizu Izumi
Shimizu Izumi

Reputation: 11

Minecraft Forge not loading resources

My problem is that when I start the game none of my resources are loaded. I use IntelliJ version 2021.2.2 and the 1.12.2 Minecraft Forge MDK version 14.23.5.2855 and I know that IntelliJ is the problem but all I found about this problem is this solution

sourceSets {
    main { output.resourcesDir = output.classesDir }
}

but that solution doesn't work anymore because classesDir is deprecated in Gradle version 4.9 and I don't know what to do anymore. My source code is available on my GitHub. Note: The problem is IntelliJ not how I added the resources because when I build the mod and use it in a normal Minecraft installation the resources are loaded. debug.log

Upvotes: 1

Views: 1782

Answers (1)

JustinW
JustinW

Reputation: 2920

After lots and lots of research, I finally found a way which is not deprecated. Add this to build.gradle

sourceSets.main.resources { srcDir 'src/generated/resources' }

or

sourceSets.main.resources { srcDir 'src/main/resources' }

Try this, and it should work. If it doesn't, I would recommend upgrading to 1.16.5 MDK or 1.17.1, because they're currently LTS

Upvotes: 0

Related Questions