Your Workspace contains mod elements that don't comply properly

Published by yo143 on
Status
Resolved
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\CraftingStationBlock.java:111: 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\CraftingStationBlock.java:110: 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 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 2s
1 actionable task: 1 executed
BUILD FAILED
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.