Topic category: Help with Minecraft modding (Java Edition)
I was trying to compile my mod but it comes up with an error that said the workspace contains elements that dont compile properly and i dont know how to fix it
console output:
Executing Gradle task: runClient
Build info: MCreator 2025.1.13416, neoforge-1.21.4, 64-bit, 130838 MB, Windows 11, JVM 21.0.5, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2025-04-20-19:08:54
Reusing configuration cache.
> Task :writeClientLegacyClasspath UP-TO-DATE
> Task :downloadAssets UP-TO-DATE
> Task :createMinecraftArtifacts UP-TO-DATE
> Task :prepareClientRun UP-TO-DATE
> Task :processResources UP-TO-DATE
> Task :compileJava FAILED
C:\Users\insertusername\MCreatorWorkspaces\vinyl\src\main\java\net\mcreator\vinyl\network\VinylPressGuiButtonMessage.java:64: error: cannot find symbol VinylPressButtonProcedure.execute(entity, itemstack);
^
symbol: variable itemstack
location: class VinylPressGuiButtonMessage
1 error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler output below.
C:\Users\insertusername\MCreatorWorkspaces\vinyl\src\main\java\net\mcreator\vinyl\network\VinylPressGuiButtonMessage.java:64: error: cannot find symbol VinylPressButtonProcedure.execute(entity, itemstack);
^
symbol: variable itemstack
location: class VinylPressGuiButtonMessage
Note: Recompile with -Xlint:deprecation for details.
1 error
* Try:
> Check your code and dependencies to fix the compilation error(s)
> Run with --scan to get full insights.
BUILD FAILED in 709ms
6 actionable tasks: 1 executed, 5 up-to-date
Configuration cache entry reused.
BUILD FAILED
Task completed in 8 minutes and 55 seconds