MCreator 2023.3 Your workspace contains mod elements that don't compile properly

Started by SomeoneIDK on

Topic category: Plugins and third-party tools

Last seen on 16:46, 15. Oct 2023
Joined Oct 2023
Points:

User statistics:

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

I'm trying to make a mob with MCreator 2023.3 and Nerdy's GeckoLib Plugin 4.8.8. I have Geckolib enabled in workspace settings. It still tells me that its not compiling correctly.

LOGS


Executing Gradle task: runClient
Build info: MCreator 2023.3.36712, forge-1.20.1, 64-bit, 16328 MB, Windows 10, JVM 17.0.7, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2023-10-08-18:55:40

> Task :compileJava FAILED
C:\Users\USER\MCreatorWorkspaces\twitterbutbetter\src\main\java\net\mcreator\twitterbutbetter\entity\WarioEntity.java:195: error: level has private access in Entity this.lastSwing = level.getGameTime();
^
C:\Users\USER\MCreatorWorkspaces\twitterbutbetter\src\main\java\net\mcreator\twitterbutbetter\entity\WarioEntity.java:197: error: level has private access in Entity if (this.swinging && this.lastSwing + 7L <= level.getGameTime()) {
^
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
BUILD FAILED in 1s
1 actionable task: 1 executed

BUILD FAILED
Task completed in 2 seconds

any help will be appreciated

Last seen on 16:46, 15. Oct 2023
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I change this…
Tue, 10/10/2023 - 02:06

How do I change this.lastSwing = level.getGameTime(); to this.lastSwing = level().getGameTime();