Skip to content
Advertisement

1.12.2 Forge and modern intelliJ IDEA not loading resources [closed]

I am trying to get even the examplemod included with Forge MDK to work. no avail.

I added the Forge MDK project to IDEA and ran genIntelliJRuns and then clicked the runClient. The mcmod.info file isn’t loaded.

I’ve tried adding sourceSets { main { output.resourcesDir = output.classesDir } } to the bottom of the build.gradle. Even after refreshing gradle, still no mcmod.info on runClient

I tried changing build and run to use IDE instead of Gradle, still no mcmod.info on runClient

enter image description here

This isn’t just the mcmod.info file, its the whole resources.

This seems to be an issue ever since IDEA IntelliJ 14, and hasn’t been fixed.

Versions:

  • Forge 1.12.2-14.23.5.2860_mapped_snapshot_20171003-1.12
  • Minecraft 1.12.2
  • Gradle 4.9
  • IntelliJ IDEA 2022.2.2

Advertisement

Answer

I managed to fix it, my build directory wasnt being overwritten. so even though I changed build.gradle, no changes happened, deleted the build directory and everything works fine.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement