I need help with importing models and animations (.java)

Started by Desolate_Penguin on

Topic category: Help with MCreator software

Joined Sep 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need help with importing models and animations (.java)

I'm trying to import a model and animation and it's not working, I'm hoping that by showing what is going on you can find out what's wrong, either it's some stupid simple solution or crazy complex... So if I import the model it doesn't work unless I overide the animations, setting them to 'no animation' doesn't work either, but it works if you overide it 

If it fails this is the code it always gives

 

Executing Gradle task: runClient
Build info: MCreator 2025.1.13416, neoforge-1.21.4, 64-bit, 32063 MB, Windows 11, JVM 21.0.5, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk

Reusing configuration cache.
> Task :writeClientLegacyClasspath UP-TO-DATE
> Task :downloadAssets UP-TO-DATE
> Task :createMinecraftArtifacts UP-TO-DATE
> Task :prepareClientRun UP-TO-DATE
> Task :processResources UP-TO-DATE
> Task :compileJava FAILED
: error: ';' expected public static final AnimationDefinition Orb Attack = AnimationDefinition.Builder.withLength(1.0F)
^
: error: expected public static final AnimationDefinition Orb Attack = AnimationDefinition.Builder.withLength(1.0F)
^
2 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler output below.
: error: ';' expected public static final AnimationDefinition Orb Attack = AnimationDefinition.Builder.withLength(1.0F)
^
: error: expected public static final AnimationDefinition Orb Attack = AnimationDefinition.Builder.withLength(1.0F)
^
2 errors
* Try:
> Check your code and dependencies to fix the compilation error(s)
> Run with --scan to get full insights.
BUILD FAILED in 322ms
6 actionable tasks: 1 executed, 5 up-to-date
Configuration cache entry reused.

BUILD FAILED
Task completed in less than a second

 

However if I then import my .java animation then it also fails

so the current situation is that it only loads if I have no imported animation, and overided non-no-animation animations for the model

 

Any fixes for this?

Joined May 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try naming it something like…
Thu, 09/04/2025 - 19:52

Try naming it something like OrbAttack, I'm pretty sure it doesn't like the space in the name. I hope this works and good luck with your project!

Joined Sep 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you so much! That…
Thu, 09/04/2025 - 20:56

Thank you so much! That worked!