one or more of your main files did not compile properly (biome)

Started by kidoriakazuama on

Topic category: Website and community discussion

Joined Sep 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
one or more of your main files did not compile properly (biome)

Hey, currently I'm making a minecraft cookie run mod. I'm making it for 1.16.5 forge, and it seems that when I attempt to add a biome and load the game I get this error.


Executing Gradle task: runClient
Build info: MCreator 2025.2.28610, forge-1.16.5, 64-bit, 32189 MB, Windows 11, JVM 21.0.7, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2025-09-23-10:15:08
> Task :compileJava FAILED
C:\Users\(filtered)\MCreatorWorkspaces\the_truth_prevails\src\main\java\net\mcreator\thetruthprevails\init\TheTruthPrevailsModBiomes.java:20: error: cannot find symbol public static final RegistryObject<Biome> BITTER_TRUTH = REGISTRY.register("bitter_truth", BitterTruthBiome::createBiome);
^
symbol: variable BitterTruthBiome
location: class net.mcreator.thetruthprevails.init.TheTruthPrevailsModBiomes
C:\Users\(filtered)\MCreatorWorkspaces\the_truth_prevails\src\main\java\net\mcreator\thetruthprevails\init\TheTruthPrevailsModBiomes.java:24: error: cannot find symbol BitterTruthBiome.init();
^
symbol: variable BitterTruthBiome
location: class net.mcreator.thetruthprevails.init.TheTruthPrevailsModBiomes
2 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler output below.
C:\Users\(filtered)\MCreatorWorkspaces\the_truth_prevails\src\main\java\net\mcreator\thetruthprevails\init\TheTruthPrevailsModBiomes.java:20: error: cannot find symbol public static final RegistryObject<Biome> BITTER_TRUTH = REGISTRY.register("bitter_truth", BitterTruthBiome::createBiome);
^
symbol: variable BitterTruthBiome
location: class net.mcreator.thetruthprevails.init.TheTruthPrevailsModBiomes
2 errors
* Try:
> Check your code and dependencies to fix the compilation error(s)
> Run with --scan to get full insights.
BUILD FAILED in 926ms
1 actionable task: 1 executed
BUILD FAILED
Task completed in 7 seconds

I keep pressing "Regenerate code" but nothing works. How do I fix this?

(sorry if its really easy to solve, I haven't used mcreator in a while)

im a lil stupid dw