[CLOSED] Regenerating code broke only some blocks

Started by CEntertain on

Topic category: Help with MCreator software

Last seen on 01:04, 27. Jul 2024
Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[CLOSED] Regenerating code broke only some blocks
Mon, 10/23/2023 - 22:28 (edited)

Ever since I am using MCreator 2023.3, development usually has been perfect without any bugs. However, now, out of nowhere, some blocks don't compile at all, even though nothing involving those changed. I've added these pretty early in development and never touched them afterwards which is why I find it weird that it doesn't compile.

Weirdly, only 10 of the blocks don't compile, and all other 991 blocks work perfectly fine.

  • Workspace Details:
    • Mcreator 2023.3
    • Minecraft 1.20.1
  • Fixing attempts (all unsuccessful):
    • Regenerating the source code again
    • Unlocking locked elements
    • Restarting MCreator
    • Restarting MCreator without plugins
    • Deleting the .gradle folder

Console log (shortened):

Executing Gradle task: build 
Build info: MCreator 2023.3.36712, forge-1.20.1, 64-bit, 16309 MB, Windows 11, JVM 17.0.7, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2023-10-24-00:22:28 
  
> Task :compileJava 
C:\Users\TimGe\MCreatorWorkspaces\cemm\src\main\java\net\centertain\cemm\init\CemmModBlocks.java:1132: error: cannot find symbol 
   public static final RegistryObject<Block> GRAPHITE_BLOCK = REGISTRY.register("graphite_block", () -> new GraphiteBlockBlock()); 
                                                                                                            ^ 
  symbol:   class GraphiteBlockBlock 
  location: class CemmModBlocks

Skipping other blocks...

C:\Users\TimGe\MCreatorWorkspaces\cemm\src\main\java\net\centertain\cemm\init\CemmModFeatures.java:513: error: cannot find symbol 
   public static final RegistryObject<Feature<?>> GRAPHITE_BLOCK = REGISTRY.register("graphite_block", GraphiteBlockFeature::new); 
                                                                                                       ^ 
  symbol:   class GraphiteBlockFeature 
  location: class CemmModFeatures

Skipping other features...

10 errors 
> Task :compileJava FAILED 
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 20s 
1 actionable task: 1 executed 
  
BUILD FAILED 
Task completed in 23 seconds
Edited by CEntertain on Mon, 10/23/2023 - 22:28
Last seen on 01:04, 27. Jul 2024
Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
EDIT: I figured out what the…
Mon, 10/23/2023 - 22:31

EDIT:

I figured out what the problem was. For whatever reason, it re-added three blocks I removed to the ore generator replacement list, even after I already removed them from there as well.
Will observe this more and see if it ever comes up again. For now, I conclude this as fixed, all I needed to do was remove them from that list again.

If this ever comes up again, I will open another topic, and list this as the problem instead.