Hello, how can I make this animation?

Версия Minecraft
1.7.10
Hi, sorry for the inconvenience but you know a lot and I wanted to ask if someone can help me make this animation for a naruto mod that I am creating. I want to change animation when running, like the one in the video, can someone help me please

 
Решение
Java:
public class ExampleHookLoader extends HookLoader {

    @Override
    public String[] getASMTransformerClass() {
        return new String[]{PrimaryClassTransformer.class.getName()};
    }

    @Override
    public void registerHooks() {
        if (FMLLaunchHandler.side().isClient())
            registerHookContainer("sprint.hook.AnnotationHooksClient");
    }

}
Java:
@SideOnly(Side.CLIENT)
public class AnnotationHooksClient {

    @Hook(injectOnExit = true)
    public static void setRotationAngles(ModelBiped clazz, float p_78087_1_, float p_78087_2_, float p_78087_3_, float p_78087_4_, float p_78087_5_, float...

timaxa007

Модератор
5,831
409
672
Java:
public class ExampleHookLoader extends HookLoader {

    @Override
    public String[] getASMTransformerClass() {
        return new String[]{PrimaryClassTransformer.class.getName()};
    }

    @Override
    public void registerHooks() {
        if (FMLLaunchHandler.side().isClient())
            registerHookContainer("sprint.hook.AnnotationHooksClient");
    }

}
Java:
@SideOnly(Side.CLIENT)
public class AnnotationHooksClient {

    @Hook(injectOnExit = true)
    public static void setRotationAngles(ModelBiped clazz, float p_78087_1_, float p_78087_2_, float p_78087_3_, float p_78087_4_, float p_78087_5_, float p_78087_6_, Entity p_78087_7_) {
        if (p_78087_7_ == null) return;
        if (p_78087_7_.isSprinting()) {
            clazz.bipedBody.rotateAngleX = 0.5F;
            clazz.bipedRightArm.rotateAngleX = 1.35F;
            clazz.bipedLeftArm.rotateAngleX = 1.35F;
            clazz.bipedRightLeg.rotationPointZ = 4.0F;
            clazz.bipedLeftLeg.rotationPointZ = 4.0F;
            clazz.bipedRightLeg.rotationPointY = 9.0F;
            clazz.bipedLeftLeg.rotationPointY = 9.0F;
            clazz.bipedHead.rotationPointY = 1.0F;
            clazz.bipedHeadwear.rotationPointY = 1.0F;
        }
    }

}
 
Последнее редактирование:

timaxa007

Модератор
5,831
409
672
Сверху