Welcome on MasterOf13FPS! MasterOf13FPS

Register today or sign up if you are already a member and never miss any cool content again :)

Exhibition blocking animation [Help plz]

cococa123

New member
Joined
Dec 28, 2022
Messages
3
Reaction score
0
Points
0
Exhibition has one of the best blocking animation ever. If someone has it plz share

 
Exhibition source has been leaked on here before just search
 
Exhis animation is ez;
float f6 = MathHelper.sin((float)(MathHelper.sqrt_float(f1) * 3.1D));
itemRenderer.transformFirstPersonItem(f * 0.5F, -2.0F);
GlStateManager.rotate(-f6 * 55.0F / 2.0F, -8.0F, -0.0F, 9.0F);
GlStateManager.rotate(-f6 * 45.0F, 1.0F, f6 / 2.0F, -0.0F);
itemRenderer.func_178103_d();
GL11.glTranslated(1.2D, 0.3D, 0.5D);
GL11.glTranslatef(-1.0F, -0.1F, 0.2F);
GlStateManager.scale(1.5D, 1.5D, 1.5D);
 
Exhis animation is ez;
float f6 = MathHelper.sin((float)(MathHelper.sqrt_float(f1) * 3.1D));
itemRenderer.transformFirstPersonItem(f * 0.5F, -2.0F);
GlStateManager.rotate(-f6 * 55.0F / 2.0F, -8.0F, -0.0F, 9.0F);
GlStateManager.rotate(-f6 * 45.0F, 1.0F, f6 / 2.0F, -0.0F);
itemRenderer.func_178103_d();
GL11.glTranslated(1.2D, 0.3D, 0.5D);
GL11.glTranslatef(-1.0F, -0.1F, 0.2F);
GlStateManager.scale(1.5D, 1.5D, 1.5D);
thats not the same animation that appears in the video
 
Search for "ItemRenderer" (IntelliJ: CTRL+N | Eclipse: CTRL+SHIFT+R)
If you are on 1.8.8, search for "entityplayersp.getItemInUseCount() > 0" else if you are in 1.8.9 search for "abstractclientplayer.getItemInUseCount() > 0
"
Now scroll down until your find:

1.8.8:

case 4:
this.transformFirstPersonItem(f, 0.0F);
this.func_178103_d();
break;

1.8.9:

case BLOCK:
this.transformFirstPersonItem(f, 0.0F);
this.doBlockTransformations();
break;

and replace the two lines for this

1.8.8:

float var15 = MathHelper.sin(MathHelper.sqrt_float(f2) * (float) Math.PI);
this.transformFirstPersonItem(f / 2.5f, 0.0f);
GL11.glTranslatef(0.1f, 0.4f, -0.1f);
GL11.glRotated(-var15 * 20.0f, var15 / 2.0f, 0.0, 9.0);
GL11.glRotated(-var15 * 50.0f, 0.8f, var15 / 2.0f, 0.0);
this.func_178103_d();

1.8.9: The same code like 1.8.8, but now you will need to replace "MathHelper.sqrt_float(f2)" for "MathHelper.sqrt_float(f1)"

-----

If you have any suggestions, errors or do you want to create it as an module, dm me at discord (niceto#7288)
 
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top