Started by
ninjawizard1234
on
Topic category: Help with Minecraft modding (Java Edition)
this was my snake animation on minecraft 1.16, im trying to update my mod to minecraft 1.20, but everything changed (again) and all thse animations commands dont work anymore :
public void setRotationAngles(Entity e, float f, float f1, float f2, float f3, float f4) {
//this.Head.rotateAngleY = f3 / (180F / (float) Math.PI);
//this.Head.rotateAngleX = f4 / (180F / (float) Math.PI);
//this.MouthUp.rotateAngleX = f3 / (180F / (float) Math.PI);
this.Body.rotateAngleY = MathHelper.cos(f * 0.5F) * 0.5F * f1 -0.3491F;
this.bone0.rotateAngleY = MathHelper.cos(f * 0.5F) * 0.5F * f1 -0.3491F;
this.bone1.rotateAngleY = MathHelper.cos(f * 0.5F) * 0.5F * f1 -0.3491F;
}
anybody knows how can we do on 2023 now? its a snake so i cant use the Mcreator stand animations, need to be custom code.
i notice MathHelper dont exit anymore now :/ i have no idea how to do now lol cant update my mod :(