(One or more of your main mod files did not compile correctly) I don't know how to fix this

Started by ThoughtCrowd on

Topic category: Troubleshooting, bugs, and solutions

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(One or more of your main mod files did not compile correctly) I don't know how to fix this

I don't know how to fix this and need help. I've been working on this mod for about two days now and I don't want to have to restart. An error keeps popping up on my screen every time I try to test my mod. It gives me the option to regenerate code every now and then but pressing that does nothing.  If anybody could help I would appreciate it very much!

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you share the a…
Tue, 09/26/2023 - 03:24

Can you share the a screenshot of the build log with the specific errors?

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I fixed this error by…
Tue, 09/26/2023 - 06:49

I fixed this error by rebooting MCreator did you try this?

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
At first it says this:…
Tue, 09/26/2023 - 21:45

At first it says this: Executing Gradle task: build
Build info: MCreator 2023.3.36712, forge-1.20.1, 64-bit, 32582 MB, Windows 10, JVM 17.0.7, JAVA_HOME: D:\MCreator\jdk, started on: 2023-09-26-16:30:28


BUILD FAILED
Task completed in 12 minutes and 8 seconds
 

 

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
and then this shows up quite…
Tue, 09/26/2023 - 21:46

and then this shows up quite a bit:

symbol: class Block
C:\Users\Tanner\MCreatorWorkspaces\tw\src\main\java\net\thoughtcrowdwuzscaveexpansion\block\BlockOfBuskineBlock.java:13: error: cannot find symbol public int getLightBlock(BlockState state, BlockGetter worldIn, BlockPos pos) {

 

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
At the end it says: symbol:…
Tue, 09/26/2023 - 21:46

At the end it says: symbol: class RegistryObject
location: class TwModEntities
100 errors
only showing the first 100 errors, of 545 total; use -Xmaxerrs if you would like to see more
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 3s