I tried adding costum animation and it failed does anyone know how to do costum animation for mcreato 2020.4

Started by MB_Charly on Fri, 09/11/2020 - 18:19

Topic category: Help with modding (Java Edition)

Last seen on 17:35, 27. Oct 2020
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I tried adding costum animation and it failed does anyone know how to do costum animation for mcreato 2020.4
Fri, 09/11/2020 - 18:19

so I folowed the tutorial https://mcreator.net/forum/46658/how-animate-your-custom-mob and tried to make my own animation but it doesn't work

Here is the code I added:

@Override
        public void setRotationAngles(float f, float f1, float f2, float f3, float f4,entity Entity) {
            super.setRotationAngles (f, f1, f2, f3, f4, entity);
            this.brain.rotateAngleY = f3 / (180F / (float) Math.PI);
            this.brain.rotateAngleX = f4 / (180F / (float) Math.PI);
            this.left_tentacle1.rotateAngleX = MathHelper.cos (f * 1.0F) * -1.0F * f1;
            this.right_tentacle1.rotateAngleX = MathHelper.cos (f * 1.0F) * 1.0F * f1;
            this.right_tentacle2.rotateAngleX = MathHelper.cos (f * 0.6662F + (float) Math.PI) * 2.0F * f1 * 0.5F;
            this.left_tentacle2.rotateAngleX = MathHelper.cos (f * 0.6662F + (float) Math.PI) * 2.0F * f1 * 0.5F;
        }

and it give me this error and I tried 3 times so there is 3 different error:

Executing Gradle task: runClient
Build info: MCreator 2020.4.32115, forge-1.15.2, 64-bit, 12168 MB, Windows 10, JVM 1.8.0_252, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk
> Configure project :
New Dep: net.minecraftforge:forge:1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1
> Task :compileJava FAILED
C:\Users\Admin\MCreatorWorkspaces\terracraftjava\src\main\java\net\mcreator\terracraftjava\entity\BrainofcthulhuEntity.java:420: error: cannot find symbol public void setRotationAngles(float f, float f1, float f2, float f3, float f4,entity Entity) {
^
symbol: class entity
location: class Modelbrain_of_cthlhu_geo
1 error
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 --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.3/userguide/command_line_interface.html#se…
BUILD FAILED in 3s
1 actionable task: 1 executed
> Configure project :
New Dep: net.minecraftforge:forge:1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1
BUILD FAILED
Task completed in 4955 milliseconds
> Task :compileJava FAILED
C:\Users\Admin\MCreatorWorkspaces\terracraftjava\src\main\java\net\mcreator\terracraftjava\entity\BrainofcthulhuEntity.java:420: error: cannot find symbol public void setRotationAngles(float f, float f1, float f2, float f3, float f4,entity Entity) {
^
symbol: class entity
location: class Modelbrain_of_cthlhu_geo
1 error
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 --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.3/userguide/command_line_interface.html#se…
BUILD FAILED in 7s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 9580 milliseconds
 

Please help

sorry if I my english is bad, I'm french.

Last seen on 17:35, 27. Oct 2020
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I fixed some problems but it…
Fri, 09/11/2020 - 19:05

I fixed some problems but it's still not working

 

Last seen on 17:35, 27. Oct 2020
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I found how to do it so its…
Sat, 09/26/2020 - 20:04

I found how to do it so its fixed