One or more of my main mod files did not compile properly

Started by Eggysandwiches on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 09:49, 15. Sep 2023
Joined Nov 2021
Points:

User statistics:

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

The popup claims it can solve the issue by regenerating the mod's code, but that does not work. I have no locked mod elements, which it says is the other reason this can happen.
I got this issue after updating mcreator today. This is what it outputs into the console, though I cut out some of it so it lets me post it here:

 

> Task :compileJava
C:\Users\PC\MCreatorWorkspaces\lovely_things_d 1.19\src\main\java\net\mcreator\lovelythingsd\init\LovelyThingsDModBiomes.java:17: error: cannot find symbol public static final RegistryObject<Biome> EVIL_BIOME = REGISTRY.register("evil_biome", EvilBiomeBiome::createBiome);
^
symbol: variable EvilBiomeBiome
location: class LovelyThingsDModBiomes
C:\Users\PC\MCreatorWorkspaces\lovely_things_d 1.19\src\main\java\net\mcreator\lovelythingsd\init\LovelyThingsDModBiomes.java:18: error: cannot find symbol public static final RegistryObject<Biome> EVIL_DESERT = REGISTRY.register("evil_desert", EvilDesertBiome::createBiome);
^

symbol: variable EvilDesert2Biome
location: class LovelyThingsDModBiomes
C:\Users\PC\MCreatorWorkspaces\lovely_things_d 1.19\src\main\java\net\mcreator\lovelythingsd\init\LovelyThingsDModBiomes.java:23: error: cannot find symbol public static final RegistryObject<Biome> EVIL_COLD_2 = REGISTRY.register("evil_cold_2", EvilCold2Biome::createBiome);
^

symbol: variable EvilOnAStemFeature
location: class LovelyThingsDModFeatures
C:\Users\PC\MCreatorWorkspaces\lovely_things_d 1.19\src\main\java\net\mcreator\lovelythingsd\init\LovelyThingsDModFeatures.java:57: error: cannot find symbol public static final RegistryObject<Feature<?>> PLANTHANDATHON = REGISTRY.register("planthandathon", PlanthandathonFeature::feature);
^
symbol: variable PlanthandathonFeature
location: class LovelyThingsDModFeatures
C:\Users\PC\MCreatorWorkspaces\lovely_things_d 1.19\src\main\java\net\mcreator\lovelythingsd\init\LovelyThingsDModFeatures.java:58: error: cannot find symbol public static final RegistryObject<Feature<?>> EVIL_SAPLING = REGISTRY.register("evil_sapling", EvilSaplingFeature::feature);
^

symbol: variable Froggyfoodsticks6Feature
location: class LovelyThingsDModFeatures
C:\Users\PC\MCreatorWorkspaces\lovely_things_d 1.19\src\main\java\net\mcreator\lovelythingsd\procedures\EvilHandBulletHitsBlockProcedure.java:10: error: cannot find symbol _level.explode(null, x, y, z, 2, Explosion.BlockInteraction.TNT);
^
symbol: variable TNT
location: class BlockInteraction
C:\Users\PC\MCreatorWorkspaces\lovely_things_d 1.19\src\main\java\net\mcreator\lovelythingsd\procedures\PureEvilHerselfPlayerCollidesWithThisEntityProcedure.java:10: error: cannot find symbol _level.explode(null, x, y, z, (float) 3.5, Explosion.BlockInteraction.MOB);
^
symbol: variable MOB
location: class BlockInteraction
21 errors
> Task :compileJava FAILED
FAILURE: Build failed with an exception.
 

 

 

I don't know how to run the project with any commands.