Topic category: Help with Minecraft modding (Java Edition)
MCreator Version: 2021.3 | Forge Version: 37.1.1 | Minecraft Java Edition, Version 1.17.1
No matter where I search for a possible solution to this problem. I'm still lost within the forums, webpages, and external links.
An attempt to create a class for IProxy, ClientProxy, or ServerProxy. An error occurs, for the imports from Forge.
Console Output: IProxy.class Test
C:\Users\[PC User]\MCreatorWorkspaces\[mod_name]\src\main\java\proxy\IProxy.java:3: error: package net.minecraftforge.fml.common.event does not exist
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
^
C:\Users\[PC User]\MCreatorWorkspaces\[mod_name]\src\main\java\proxy\IProxy.java:4: error: package net.minecraftforge.fml.common.event does not exist
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
^
C:\Users\[PC User]\MCreatorWorkspaces\[mod_name]\src\main\java\proxy\IProxy.java:5: error: package net.minecraftforge.fml.common.event does not exist
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
^
C:\Users\[PC User]\MCreatorWorkspaces\[mod_name]\src\main\java\proxy\IProxy.java:9: error: cannot find symbol
public void preInit(FMLPreInitializationEvent event);
^
symbol: class FMLPreInitializationEvent
location: interface IProxy
C:\Users\[PC User]\MCreatorWorkspaces\[mod_name]\src\main\java\proxy\IProxy.java:11: error: cannot find symbol
public void init(FMLInitializationEvent event);
^
symbol: class FMLInitializationEvent
location: interface IProxy
C:\Users\[PC User]\MCreatorWorkspaces\[mod_name]\src\main\java\proxy\IProxy.java:13: error: cannot find symbol
public void postInit(FMLPostInitializationEvent event);
^
symbol: class FMLPostInitializationEvent
location: interface IProxy
6 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 19m 19s
11 actionable tasks: 7 executed, 4 up-to-date
BUILD FAILED
Task completed in 19 minutes and 27 seconds
After following https://mcreator.net/wiki/gradle-setup-errors#wiki-index-1, Errors still persist, with no visible answer.
Others throughout other forums in the Minecraft community have mentioned that they built completely fine in older versions of MCreator and older versions of Minecraft.
[Cite]: https://www.minecraftforum.net/forums/mapping-and-modding-java-edition/minecraft-mods/modification-development/2289093-getting-error-when-try-to-rum-game-with-mod
I also see the problem within other forum posts on MCreator.net as well from other members.
If there is a possible fix to this persistent problem, any help would be greatly appreciated!
Kind regards, GregoryAM.