error: level has private access in Entity

Started by Afton on

Topic category: Troubleshooting, bugs, and solutions

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
error: level has private access in Entity

I keep getting two errors about my geckolib custom mincraft mob

> Task :compileJava FAILED
C:\Users\jones\MCreatorWorkspaces\cryptid\src\main\java\net\mcreator\cryptid\entity\WendyEntity.java:203: error: level has private access in Entity this.lastSwing = level.getGameTime();
^
C:\Users\jones\MCreatorWorkspaces\cryptid\src\main\java\net\mcreator\cryptid\entity\WendyEntity.java:205: error: level has private access in Entity if (this.swinging && this.lastSwing + 7L <= level.getGameTime()) {