I created an entity using GeckoLib plugin but it says "Your workspace contains mod elements that don't compile properly"

Started by BehramISHI on

Topic category: Help with modding (Java Edition)

Last seen on 17:21, 24. Dec 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I created an entity using GeckoLib plugin but it says "Your workspace contains mod elements that don't compile properly"
Fri, 05/19/2023 - 21:25 (edited)

i left the console command down below i do not know anything about coding i searched the topic but couldn't find the same problem 

 

> Task :compileJava
C:\Users\OEM\MCreatorWorkspaces\unity_mod\src\main\java\net\mcreator\unitymod\entity\AlfidiumGolemEntity.java:64: error: cannot find symbol private AnimationFactory factory = GeckoLibUtil.createFactory(this);
^
 

 

symbol: method createFactory(AlfidiumGolemEntity)
location: class GeckoLibUtil
 

C:\Users\OEM\MCreatorWorkspaces\unity_mod\src\main\java\net\mcreator\unitymod\entity\AlfidiumGolemEntity.java:212: error: incompatible types: EDefaultLoopTypes cannot be converted to Boolean event.getController().setAnimation(new AnimationBuilder().addAnimation("animation.gollem.walking", EDefaultLoopTypes.LOOP));

and 6 other like this i looked at the publishing guidelines but i didn't get the logs and errors one i hope i got it right because english isn't my native language
 

Edited by BehramISHI on Fri, 05/19/2023 - 21:25
Last seen on 21:08, 7. Apr 2024
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Different solutions: 1 --…
Sat, 05/20/2023 - 17:26

Different solutions:

1 -- Use Nerdy's GeckoLib

2 -- Go to the Workspace Settings and click external APIs and enable Geckolib

3 -- Make sure you used the plugin in blockbench

Last seen on 17:21, 24. Dec 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i am using it already and…
Mon, 05/22/2023 - 22:02

i am using it already and enabled it

Last seen on 05:05, 26. Apr 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If disabling and enabling…
Tue, 05/23/2023 - 01:20

If disabling and enabling the API doesn't fix it, that means another plugin is conflicting with the versions due to naming their API the same. Remove and plugins you have that add APIs and try reenabling geckolib again.

Last seen on 17:21, 24. Dec 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thanks i did it
Wed, 05/24/2023 - 18:03

thanks i did it

Last seen on 12:23, 14. Dec 2023
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The model element…
Sun, 09/17/2023 - 09:06

The model element compileJava is having an error

Is their an easy way to fix it?