Your Workspace contains mod elements that don't comply properly

Published by yo143 on Fri, 08/07/2020 - 19:34
Issue description

I have checked my workspace but it still doesnt work.


The console output is:

Executing Gradle task: runClient
Build info: MCreator 2020.4.32115, forge-1.15.2, 64-bit, 16250 MB, Windows 10, JVM 1.8.0_252, JAVA_HOME: D:\Program Files\MCreator\jdk
> Configure project :
New Dep: net.minecraftforge:forge:1.14.4-28.2.16_mapped_snapshot_20190719-1.14.3
> Task :compileJava FAILED
C:\Users\raffe\MCreatorWorkspaces\custom_crafting_table_mod\src\main\java\net\mcreator\customcraftingtablemod\block\ error: onBlockActivated(BlockState,World,BlockPos,PlayerEntity,Hand,BlockRayTraceResult) in CustomBlock cannot override onBlockActivated(BlockState,World,BlockPos,PlayerEntity,Hand,BlockRayTraceResult) in Block public ActionResultType onBlockActivated(BlockState state, World world, BlockPos pos, PlayerEntity entity, Hand hand,
return type ActionResultType is not compatible with boolean
C:\Users\raffe\MCreatorWorkspaces\custom_crafting_table_mod\src\main\java\net\mcreator\customcraftingtablemod\block\ error: method does not override or implement a method from a supertype @Override
2 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
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.
1 actionable task: 1 executed
Task completed in 298744 milliseconds


Issue comments

If even this fails, try to delete the entire <your user home folder>/.mcreator/gradle folder, create a new workspace with the same generator version as the version of the workspace failing, after the setup of this new workspace is done, open your current workspace, and click Build & run -> Build workspace, then Build & run -> Reload gradle project and then Build & run -> Regenerate code and build.