My MCreator has been saying the mod file did not compile properly. I trying cleaning my build files, reloading the gradle project, and regenerating my code, But its not working.
Here is the code -
Executing Gradle task: runClient
Build info: MCreator 2020.2.14217, 1.14.4, 64-bit, 16288 MB, Windows 10, JVM 1.8.0_232, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk
> Configure project :
New Dep: net.minecraftforge:forge:1.14.4-28.2.3_mapped_snapshot_20190719-1.14.3
> Task :compileJava FAILED
C:\Users\NBS_W\MCreatorWorkspaces\thedarksundimension\src\main\java\net\mcreator\thedarksundimenson\TheDarkSunDimensionElements.java:91: error: cannot find symbol TheDarkSunDimension.PACKET_HANDLER.send(PacketDistributor.PLAYER.with(() -> (ServerPlayerEntity) event.getPlayer()),
^
symbol: variable PACKET_HANDLER
location: class TheDarkSunDimension
C:\Users\NBS_W\MCreatorWorkspaces\thedarksundimension\src\main\java\net\mcreator\thedarksundimenson\TheDarkSunDimensionElements.java:94: error: cannot find symbol TheDarkSunDimension.PACKET_HANDLER.send(PacketDistributor.PLAYER.with(() -> (ServerPlayerEntity) event.getPlayer()),
^
symbol: variable PACKET_HANDLER
location: class TheDarkSunDimension
C:\Users\NBS_W\MCreatorWorkspaces\thedarksundimension\src\main\java\net\mcreator\thedarksundimenson\TheDarkSunDimensionElements.java:104: error: cannot find symbol TheDarkSunDimension.PACKET_HANDLER.send(PacketDistributor.PLAYER.with(() -> (ServerPlayerEntity) event.getPlayer()),
^
symbol: variable PACKET_HANDLER
location: class TheDarkSunDimension
C:\Users\NBS_W\MCreatorWorkspaces\thedarksundimension\src\main\java\net\mcreator\thedarksundimenson\TheDarkSunDimensionElements.java:111: error: cannot find symbol TheDarkSunDimension.PACKET_HANDLER.registerMessage(messageID, messageType, encoder, decoder, messageConsumer);
^
symbol: variable PACKET_HANDLER
location: class TheDarkSunDimension
C:\Users\NBS_W\MCreatorWorkspaces\thedarksundimension\src\main\java\net\mcreator\thedarksundimenson\TheDarkSunDimensionVariables.java:42: error: cannot find symbol TheDarkSunDimension.PACKET_HANDLER.sendToServer(new WorldSavedDataSyncMessage(1, this));
^
symbol: variable PACKET_HANDLER
location: class TheDarkSunDimension
C:\Users\NBS_W\MCreatorWorkspaces\thedarksundimension\src\main\java\net\mcreator\thedarksundimenson\TheDarkSunDimensionVariables.java:44: error: cannot find symbol TheDarkSunDimension.PACKET_HANDLER.send(PacketDistributor.DIMENSION.with(world.dimension::getType),
^
symbol: variable PACKET_HANDLER
location: class TheDarkSunDimension
C:\Users\NBS_W\MCreatorWorkspaces\thedarksundimension\src\main\java\net\mcreator\thedarksundimenson\TheDarkSunDimensionVariables.java:80: error: cannot find symbol TheDarkSunDimension.PACKET_HANDLER.sendToServer(new WorldSavedDataSyncMessage(0, this));
^
symbol: variable PACKET_HANDLER
location: class TheDarkSunDimension
C:\Users\NBS_W\MCreatorWorkspaces\thedarksundimension\src\main\java\net\mcreator\thedarksundimenson\TheDarkSunDimensionVariables.java:82: error: cannot find symbol TheDarkSunDimension.PACKET_HANDLER.send(PacketDistributor.ALL.noArg(), new WorldSavedDataSyncMessage(0, this));
^
symbol: variable PACKET_HANDLER
location: class TheDarkSunDimension
C:\Users\NBS_W\MCreatorWorkspaces\thedarksundimension\src\main\java\net\mcreator\thedarksundimenson\TheDarkSunDimensionVariables.java:132: error: cannot find symbol TheDarkSunDimension.PACKET_HANDLER.send(PacketDistributor.ALL.noArg(), message);
^
symbol: variable PACKET_HANDLER
location: class TheDarkSunDimension
C:\Users\NBS_W\MCreatorWorkspaces\thedarksundimension\src\main\java\net\mcreator\thedarksundimenson\TheDarkSunDimensionVariables.java:135: error: cannot find symbol TheDarkSunDimension.PACKET_HANDLER.send(PacketDistributor.DIMENSION.with(world.dimension::getType), message);
^
symbol: variable PACKET_HANDLER
location: class TheDarkSunDimension
10 errors
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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.9/userguide/command_line_interface.html#sec:c…
BUILD FAILED in 3s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 12070 milliseconds
Both your mod and your main mod file are called "TheDarkSunDimension"
Rename the mod and its modid to say TheDarkSunDimensionMod