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

Started by max_2020 on

Topic category: Troubleshooting, bugs, and solutions

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
"Your workspace contains mod elements that don't compile properly."

I wanna make a mod that adds a new Totem. But when I run it, I have an error: "Your workspace contains mod elements that don't compile properly.". The message said me to go here and post .zip file, so here it is: https://drive.google.com/file/d/1wvDSzTXsijym7-ggHp02QNz6j9YynS7Z/view?usp=sharing . And here's what the console says:

 

2021-05-20 07:39:05,195 Daemon worker Thread 7 ERROR Null object returned for RollingRandomAccessFile in Appenders.
2021-05-20 07:39:05,248 Daemon worker Thread 7 ERROR Unable to locate appender "File" for logger config "root"
Note: SpongePowered MIXIN Annotation Processor Version=0.8.2
Note: ObfuscationServiceFabric supports type: "official:intermediary"
Note: ObfuscationServiceFabric supports type: "official:named"
Note: ObfuscationServiceFabric supports type: "intermediary:official"
Note: ObfuscationServiceFabric supports type: "intermediary:named"
Note: ObfuscationServiceFabric supports type: "named:official"
Note: ObfuscationServiceFabric supports type: "named:intermediary"
Note: ObfuscationServiceMCP supports type: "searge"
Note: ObfuscationServiceMCP supports type: "notch"
C:\Users\Panda\MCreatorWorkspaces\the_real_undying\src\main\java\net\mcreator\therealundying\item\TotemOfTheRealUndyingItem.java:75: error: cannot find symbol super.inventoryTick(itemstack, world, entity, slot, selected);
^
symbol: variable itemstack
location: class TotemOfTheRealUndyingItem
C:\Users\Panda\MCreatorWorkspaces\the_real_undying\src\main\java\net\mcreator\therealundying\item\TotemOfTheRealUndyingItem.java:76: error: cannot find symbol int x = (int) entity.getPosX();
^
symbol: method getPosX()
location: variable entity of type Entity
C:\Users\Panda\MCreatorWorkspaces\the_real_undying\src\main\java\net\mcreator\therealundying\item\TotemOfTheRealUndyingItem.java:77: error: cannot find symbol int y = (int) entity.getPosY();
^
symbol: method getPosY()
location: variable entity of type Entity
C:\Users\Panda\MCreatorWorkspaces\the_real_undying\src\main\java\net\mcreator\therealundying\item\TotemOfTheRealUndyingItem.java:78: error: cannot find symbol int z = (int) entity.getPosZ();
^
symbol: method getPosZ()
location: variable entity of type Entity
4 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
BUILD FAILED in 6s
2 actionable tasks: 2 executed
BUILD FAILED
Task completed in 9 seconds

 

What do I do?

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the same problem when I…
Thu, 01/19/2023 - 23:13

the same problem when I export my mod, hev you install the plungin