1.20.1 Geckolib error when open

Started by IMinbloxI on

Topic category: Help with MCreator software

Last seen on 11:30, 30. Oct 2023
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
1.20.1 Geckolib error when open

I added a new mob called Hedgehog this is my first time so I don't change any AI or behavior when I try to run It error "your workspace contains mod elements that don't compile properly" I have tried to open it without the mob then it open properly I don't know what to do pls help me


CONSOLE

Executing Gradle task: build
Build info: MCreator 2023.3.36712, forge-1.20.1, 64-bit, 16131 MB, Windows 11, JVM 17.0.7, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2023-10-26-16:18:23

> Task :compileJava FAILED
C:\Users\#####\MCreatorWorkspaces\hedgehog\src\main\java\net\mcreator\hedgehog\entity\HedgehogEntity.java:162: error: level has private access in Entity  this.lastSwing = level.getGameTime();
   ^
C:\Users\#####\MCreatorWorkspaces\hedgehog\src\main\java\net\mcreator\hedgehog\entity\HedgehogEntity.java:164: 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 2s
1 actionable task: 1 executed

BUILD FAILED
Task completed in 3 seconds