Topic category: Help with MCreator software
Executing Gradle task: runClient
Build info: MCreator 2024.4.52410, forge-1.20.1, 64-bit, 16255 MB, Windows 11, JVM 21.0.4, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2025-01-04-14:04:34
> Task :compileJava FAILED
C:\Users\Razor\MCreatorWorkspaces\first_mod\src\main\java\net\mcreator\firstmod\client\model\animations\CustomModelAnimation.java:16: error: ';' expected public static final AnimationDefinition butterfly.animation=AnimationDefinition.Builder.withLength(0.2917F).looping().addAnimation("bone",new AnimationChannel(AnimationChannel.Targets.ROTATION,new Keyframe(0.0F,KeyframeAnimations.degreeVec(0.0F,0.0F,0.0F),AnimationChannel.Interpolations.LINEAR),new Keyframe(0.0417F,KeyframeAnimations.degreeVec(0.0F,-6.5F,0.0F),AnimationChannel.Interpolations.LINEAR),new Keyframe(0.0833F,KeyframeAnimations.degreeVec(0.0F,-12.5F,0.0F),AnimationChannel.Interpolations.LINEAR),new Keyframe(0.125F,KeyframeAnimations.degreeVec(0.0F,-6.5F,0.0F),AnimationChannel.Interpolations.LINEAR),new Keyframe(0.1667F,KeyframeAnimations.degreeVec(0.0F,6.5F,0.0F),AnimationChannel.Interpolations.LINEAR),new Keyframe(0.2083F,KeyframeAnimations.degreeVec(0.0F,12.5F,0.0F),AnimationChannel.Interpolations.LINEAR),new Keyframe(0.25F,KeyframeAnimations.degreeVec(0.0F,6.5F,0.0F),AnimationChannel.Interpolations.LINEAR))).addAnimation("bone2",new AnimationChannel(AnimationChannel.Targets.ROTATION,new Keyframe(0.0F,KeyframeAnimations.degreeVec(0.0F,0.0F,0.0F),AnimationChannel.Interpolations.LINEAR),new Keyframe(0.0417F,KeyframeAnimations.degreeVec(0.0F,6.5F,0.0F),AnimationChannel.Interpolations.LINEAR),new Keyframe(0.0833F,KeyframeAnimations.degreeVec(0.0F,12.5F,0.0F),AnimationChannel.Interpolations.LINEAR),new Keyframe(0.125F,KeyframeAnimations.degreeVec(0.0F,6.5F,0.0F),AnimationChannel.Interpolations.LINEAR),new Keyframe(0.1667F,KeyframeAnimations.degreeVec(0.0F,-6.5F,0.0F),AnimationChannel.Interpolations.LINEAR),new Keyframe(0.2083F,KeyframeAnimations.degreeVec(0.0F,-12.5F,0.0F),AnimationChannel.Interpolations.LINEAR),new Keyframe(0.25F,KeyframeAnimations.degreeVec(0.0F,-6.5F,0.0F),AnimationChannel.Interpolations.LINEAR))).build();
^
C:\Users\Razor\MCreatorWorkspaces\first_mod\src\main\java\net\mcreator\firstmod\client\model\animations\CustomModelAnimation.java:16: error: expected public static final AnimationDefinition butterfly.animation=AnimationDefinition.Builder.withLength(0.2917F).looping().addAnimation("bone",new AnimationChannel(AnimationChannel.Targets.ROTATION,new Keyframe(0.0F,KeyframeAnimations.degreeVec(0.0F,0.0F,0.0F),AnimationChannel.Interpolations.LINEAR),new Keyframe(0.0417F,KeyframeAnimations.degreeVec(0.0F,-6.5F,0.0F),AnimationChannel.Interpolations.LINEAR),new Keyframe(0.0833F,KeyframeAnimations.degreeVec(0.0F,-12.5F,0.0F),AnimationChannel.Interpolations.LINEAR),new Keyframe(0.125F,KeyframeAnimations.degreeVec(0.0F,-6.5F,0.0F),AnimationChannel.Interpolations.LINEAR),new Keyframe(0.1667F,KeyframeAnimations.degreeVec(0.0F,6.5F,0.0F),AnimationChannel.Interpolations.LINEAR),new Keyframe(0.2083F,KeyframeAnimations.degreeVec(0.0F,12.5F,0.0F),AnimationChannel.Interpolations.LINEAR),new Keyframe(0.25F,KeyframeAnimations.degreeVec(0.0F,6.5F,0.0F),AnimationChannel.Interpolations.LINEAR))).addAnimation("bone2",new AnimationChannel(AnimationChannel.Targets.ROTATION,new Keyframe(0.0F,KeyframeAnimations.degreeVec(0.0F,0.0F,0.0F),AnimationChannel.Interpolations.LINEAR),new Keyframe(0.0417F,KeyframeAnimations.degreeVec(0.0F,6.5F,0.0F),AnimationChannel.Interpolations.LINEAR),new Keyframe(0.0833F,KeyframeAnimations.degreeVec(0.0F,12.5F,0.0F),AnimationChannel.Interpolations.LINEAR),new Keyframe(0.125F,KeyframeAnimations.degreeVec(0.0F,6.5F,0.0F),AnimationChannel.Interpolations.LINEAR),new Keyframe(0.1667F,KeyframeAnimations.degreeVec(0.0F,-6.5F,0.0F),AnimationChannel.Interpolations.LINEAR),new Keyframe(0.2083F,KeyframeAnimations.degreeVec(0.0F,-12.5F,0.0F),AnimationChannel.Interpolations.LINEAR),new Keyframe(0.25F,KeyframeAnimations.degreeVec(0.0F,-6.5F,0.0F),AnimationChannel.Interpolations.LINEAR))).build();
^
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 --info option to get more log output.
> Run with --scan to get full insights.
BUILD FAILED in 1s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 1 second
is not a valid Java identifier. You can't include dots in Java names. The animation code you provided is thus not valid.
For posting logs on forums, please also check General Publishing Guidelines.