living entity with custom model doesnt compile

Started by FlameVex2211 on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 16:20, 22. Apr 2023
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
living entity with custom model doesnt compile

i tried to make an entity im dumb and i dont know how to fix this.

...C:\Users\User\MCreatorWorkspaces\fnaf_security_breach_902141412414802840214\src\main\java\net\mcreator\fnafsecuritybreach\entity\renderer\FreddyRenderer.java:170: error: cannot find symbol this.head.xRot = headPitch / (180F / (float) Math.PI);
^
symbol: variable xRot
location: variable head of type net.minecraft.client.renderer.model.ModelRenderer
C:\Users\User\MCreatorWorkspaces\fnaf_security_breach_902141412414802840214\src\main\java\net\mcreator\fnafsecuritybreach\entity\renderer\FreddyRenderer.java:171: error: cannot find symbol this.legright.xRot = Mth.cos(limbSwing * 1.0F) * 1.0F * limbSwingAmount;
^
symbol: variable xRot
location: variable legright of type net.minecraft.client.renderer.model.ModelRenderer
C:\Users\User\MCreatorWorkspaces\fnaf_security_breach_902141412414802840214\src\main\java\net\mcreator\fnafsecuritybreach\entity\renderer\FreddyRenderer.java:171: error: cannot find symbol this.legright.xRot = Mth.cos(limbSwing * 1.0F) * 1.0F * limbSwingAmount;
^
symbol: variable Mth
location: class net.mcreator.fnafsecuritybreach.entity.renderer.FreddyRenderer.Modelglamfreddy
C:\Users\User\MCreatorWorkspaces\fnaf_security_breach_902141412414802840214\src\main\java\net\mcreator\fnafsecuritybreach\entity\renderer\FreddyRenderer.java:172: error: cannot find symbol this.armleft.xRot = Mth.cos(limbSwing * 0.6662F + (float) Math.PI) * limbSwingAmount;
^
symbol: variable xRot
location: variable armleft of type net.minecraft.client.renderer.model.ModelRenderer
C:\Users\User\MCreatorWorkspaces\fnaf_security_breach_902141412414802840214\src\main\java\net\mcreator\fnafsecuritybreach\entity\renderer\FreddyRenderer.java:172: error: cannot find symbol this.armleft.xRot = Mth.cos(limbSwing * 0.6662F + (float) Math.PI) * limbSwingAmount;
^
symbol: variable Mth
location: class net.mcreator.fnafsecuritybreach.entity.renderer.FreddyRenderer.Modelglamfreddy
C:\Users\User\MCreatorWorkspaces\fnaf_security_breach_902141412414802840214\src\main\java\net\mcreator\fnafsecuritybreach\entity\renderer\FreddyRenderer.java:173: error: cannot find symbol this.legleft.xRot = Mth.cos(limbSwing * 1.0F) * -1.0F * limbSwingAmount;
^
symbol: variable xRot
location: variable legleft of type net.minecraft.client.renderer.model.ModelRenderer
C:\Users\User\MCreatorWorkspaces\fnaf_security_breach_902141412414802840214\src\main\java\net\mcreator\fnafsecuritybreach\entity\renderer\FreddyRenderer.java:173: error: cannot find symbol this.legleft.xRot = Mth.cos(limbSwing * 1.0F) * -1.0F * limbSwingAmount;
^
symbol: variable Mth
location: class net.mcreator.fnafsecuritybreach.entity.renderer.FreddyRenderer.Modelglamfreddy
81 errors
> Task :compileJava FAILED
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 2m 2s
1 actionable task: 1 executed

BUILD FAILED
Task completed in 2 minutes and 12 seconds

Last seen on 03:47, 15. Feb 2024
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
is the export version…
Tue, 02/08/2022 - 18:40

is the export version correct? in blockbench (if you're using it) go to File > Project > and then check what the export version is. it should be "Forge 1.17 (Mojmaps)", and if you click on it you can access different versions in case you're using an older mcreator build

if this isn't the case, then i'm not sure hoow else to help

Last seen on 03:47, 15. Feb 2024
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
sorry the image didn't attach
Tue, 02/08/2022 - 18:42

this is what the mojmaps thing should look likesorry the image didn't attach

Last seen on 16:20, 22. Apr 2023
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Endro thx but i figured out…
Wed, 06/15/2022 - 09:49

Endro thx but i figured out the problem myself... you were right tho, the export version was wrong.