Topic category: Help with MCreator software
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?
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!
Thank you so much! That worked!