Custom Mob Not Compiling

Started by Alexander Frye on

Topic category: Help with modding (Java Edition)

Last seen on 03:59, 1. Oct 2019
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom Mob Not Compiling

Hi, whenever I try to compile my mod, my custom scarecrow mob causes an error. I've looked around the forums but nothing has solved my problem. Here's the error I'm getting: 

 

D:\Program Files\MCreator\Mods\build\sources\main\java\net\mcreator\fallcraft\MCreatorScarecrowPassive.java:175: error: no suitable method found for setRotationAngles(ModelRenderer,float,float,float)
            this.setRotationAngles(this.Arm_r, -0.2617993877991494F, 0.0F, 0.17453292519943295F);
                ^
    method ModelBase.setRotationAngles(float,float,float,float,float,float,Entity) is not applicable
      (actual and formal argument lists differ in length)
    method ModelScarecrow.setRotationAngles(float,float,float,float,float,float,Entity) is not applicable
      (actual and formal argument lists differ in length)
D:\Program Files\MCreator\Mods\build\sources\main\java\net\mcreator\fallcraft\MCreatorScarecrowPassive.java:179: error: no suitable method found for setRotationAngles(ModelRenderer,float,float,float)
            this.setRotationAngles(this.Leg_L, 0.017453292519943295F, 0.0F, 0.017453292519943295F);
                ^
    method ModelBase.setRotationAngles(float,float,float,float,float,float,Entity) is not applicable
      (actual and formal argument lists differ in length)
    method ModelScarecrow.setRotationAngles(float,float,float,float,float,float,Entity) is not applicable
      (actual and formal argument lists differ in length)
D:\Program Files\MCreator\Mods\build\sources\main\java\net\mcreator\fallcraft\MCreatorScarecrowPassive.java:190: error: no suitable method found for setRotationAngles(ModelRenderer,float,float,float)
            this.setRotationAngles(this.Arm_R, -0.17453292519943295F, 0.0F, -0.17453292519943295F);
                ^
    method ModelBase.setRotationAngles(float,float,float,float,float,float,Entity) is not applicable
      (actual and formal argument lists differ in length)
    method ModelScarecrow.setRotationAngles(float,float,float,float,float,float,Entity) is not applicable
      (actual and formal argument lists differ in length)
D:\Program Files\MCreator\Mods\build\sources\main\java\net\mcreator\fallcraft\MCreatorScarecrowPassive.java:195: error: no suitable method found for setRotationAngles(ModelRenderer,float,float,float)
            this.setRotationAngles(this.Leg_R, -0.017453292519943295F, 0.0F, -0.017453292519943295F);
                ^
    method ModelBase.setRotationAngles(float,float,float,float,float,float,Entity) is not applicable
      (actual and formal argument lists differ in length)
    method ModelScarecrow.setRotationAngles(float,float,float,float,float,float,Entity) is not applicable
      (actual and formal argument lists differ in length)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: D:\Program Files\MCreator\Mods\build\sources\main\java\net\mcreator\fallcraft\MCreatorScarecrowPassive.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 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 --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

BUILD FAILED in 2s
 

 

I feel like it's worth noting that this is my first time using MCreator, so if this is a common problem then I'm sorry! 

Last seen on 03:59, 1. Oct 2019
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I remade the model in…
Mon, 09/30/2019 - 06:02

I remade the model in Blockbench and it ended up working so I guess the problem is solved.