Your workspace contains mod elements that don't compile properly.

Started by Aplle on Sat, 05/06/2023 - 21:22

Topic category: Help with MCreator software

Last seen on 04:31, 8. May 2023
Joined May 2023

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Your workspace contains mod elements that don't compile properly.
Sat, 05/06/2023 - 21:22

I've seen the other topics that relate the same issue, but i haven't been able to fix it.
Im following a Mcreator 1.9.0 youtube tutorial on the newest version of Mcreator, but when i try to save a Procedure, it throws an error.


The procedure's code is the following:

package net.mcreator.esliarlaparda.procedures;

/* imports omitted */

public class PinsProcedure {
public static void onLinkDeviceConnected(LinkDeviceConnectedEvent event) {

public static void execute() {

private static void execute(@Nullable Event event) {
CurrentDevice.pinMode((int) 2, PinMode.OUT);
CurrentDevice.pinMode((int) 3, PinMode.OUT);
CurrentDevice.pinMode((int) 4, PinMode.OUT);

The console looks like this:

Executing Gradle task: build
Build info: MCreator 2023.1.10610, forge-1.19.2, 64-bit, 32620 MB, Windows 10, JVM 17.0.5, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2023-05-06-15:18:44

> Configure project :
The code of this workspace uses official obfuscation mappings provided by Mojang. These mappings fall under their associated license you should be fully aware of.
(c) 2020 Microsoft Corporation. These mappings are provided "as-is" and you bear the risk of using them. You may copy and use the mappings for development purposes,
but you may not redistribute the mappings complete and unmodified. Microsoft makes no warranties, express or implied, with respect to the mappings provided here.
Use and modification of this document or the source code (in any form) of Minecraft: Java Edition is governed by the Minecraft End User License Agreement available

> Task :mcreatorLink UP-TO-DATE
> Task :compileJava FAILED
C:\Users\Hunter\MCreatorWorkspaces\esliarlaparda\src\main\java\net\mcreator\esliarlaparda\procedures\ error: incompatible types: no instance(s) of type variable(s) K,V exist so that Map conforms to Event execute(Collections.emptyMap());
where K,V are type-variables:
K extends Object declared in method <K,V>emptyMap()
V extends Object declared in method <K,V>emptyMap()
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
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
1 actionable task: 1 executed

Task completed in 5 seconds

Last seen on 17:19, 16. Sep 2023
Joined Mar 2023

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But.. probaly it's because…
Mon, 05/08/2023 - 15:57

But.. probaly it's because for example:

I created a procedure with an item in it, in the code it is written the name of the item, EX: CoolModItems:CUSTOM_THINGY

and then, i deleted the "custom_thingy" MCreator will reckgonize that the Custom_Thingy item does NOT exist anymore, and this is problably why this is happening