"One or more of your main mod files did not compile properly"

Started by redrock987 on

Topic category: Troubleshooting, bugs, and solutions

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
"One or more of your main mod files did not compile properly"

how do i fix this?

 

Configure project :
Fabric Loom: 1.0.17
Not publishing sources jar as it was not found. Use java.withSourcesJar() to fix.
> Task :compileJava FAILED
C:\Users\redro\MCreatorWorkspaces\legendaryitemsmod\src\main\java\net\mcreator\legendaryitemsmod\init\LegendaryitemsmodModMenus.java:15: error: cannot find symbol public static MenuType<AltarInvMenu> ALTAR_INV;
^
symbol: class AltarInvMenu
location: class LegendaryitemsmodModMenus
1 error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
1 actionable task: 1 executed

BUILD FAILED
Task completed in 29 seconds

 

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This also happens in any mod…
Wed, 04/05/2023 - 08:33

This also happens in any mod I create when I add blocks

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Have you tried updating…
Sun, 12/24/2023 - 21:53

Have you tried updating mcreator?