Advertisement
Guest User

java

a guest
Nov 6th, 2021
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.32 KB | None | 0 0
  1. // Made with Blockbench 4.0.3
  2. // Exported for Minecraft version 1.15 - 1.16 with Mojang mappings
  3. // Paste this class into your mod and generate all required imports
  4.  
  5.  
  6. public class abyssic extends EntityModel<Entity> {
  7. private final ModelRenderer face;
  8. private final ModelRenderer t_teeth8_r1;
  9. private final ModelRenderer b_teeth7_r1;
  10. private final ModelRenderer body;
  11.  
  12. public abyssic() {
  13. texWidth = 96;
  14. texHeight = 96;
  15.  
  16. face = new ModelRenderer(this);
  17. face.setPos(0.0F, 24.0F, 0.0F);
  18. face.texOffs(0, 0).addBox(-4.0F, -7.0F, -14.0F, 7.0F, 4.0F, 6.0F, 0.0F, false);
  19. face.texOffs(92, 94).addBox(-2.0F, -5.0F, -15.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
  20. face.texOffs(92, 94).addBox(0.0F, -5.0F, -15.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
  21.  
  22. t_teeth8_r1 = new ModelRenderer(this);
  23. t_teeth8_r1.setPos(-0.5F, -1.0F, -11.0F);
  24. face.addChild(t_teeth8_r1);
  25. setRotationAngle(t_teeth8_r1, 0.0F, 0.0F, 0.0F);
  26. t_teeth8_r1.texOffs(0, 0).addBox(-3.5F, -2.0F, 1.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
  27. t_teeth8_r1.texOffs(0, 0).addBox(-3.5F, -2.0F, -1.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
  28. t_teeth8_r1.texOffs(0, 0).addBox(0.5F, -2.0F, -3.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
  29. t_teeth8_r1.texOffs(0, 0).addBox(-1.5F, -2.0F, -3.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
  30. t_teeth8_r1.texOffs(0, 0).addBox(-3.5F, -2.0F, -3.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
  31. t_teeth8_r1.texOffs(0, 0).addBox(2.5F, -2.0F, -3.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
  32. t_teeth8_r1.texOffs(0, 0).addBox(2.5F, -2.0F, 1.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
  33. t_teeth8_r1.texOffs(0, 0).addBox(2.5F, -2.0F, -1.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
  34.  
  35. b_teeth7_r1 = new ModelRenderer(this);
  36. b_teeth7_r1.setPos(-0.5F, -1.0F, -11.0F);
  37. face.addChild(b_teeth7_r1);
  38. setRotationAngle(b_teeth7_r1, 0.1745F, 0.0F, 0.0F);
  39. b_teeth7_r1.texOffs(0, 0).addBox(2.5F, -1.0F, 0.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
  40. b_teeth7_r1.texOffs(0, 0).addBox(2.5F, -1.0F, 2.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
  41. b_teeth7_r1.texOffs(0, 0).addBox(-2.5F, -1.0F, -2.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
  42. b_teeth7_r1.texOffs(0, 0).addBox(1.5F, -1.0F, -2.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
  43. b_teeth7_r1.texOffs(0, 0).addBox(-0.5F, -1.0F, -2.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
  44. b_teeth7_r1.texOffs(0, 0).addBox(-3.5F, -1.0F, 0.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
  45. b_teeth7_r1.texOffs(0, 0).addBox(-3.5F, -1.0F, 2.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
  46. b_teeth7_r1.texOffs(0, 0).addBox(-3.5F, 0.0F, -3.0F, 7.0F, 1.0F, 6.0F, 0.0F, false);
  47.  
  48. body = new ModelRenderer(this);
  49. body.setPos(0.0F, 24.0F, 0.0F);
  50. body.texOffs(0, 0).addBox(-4.0F, -7.0F, -8.0F, 7.0F, 7.0F, 30.0F, 0.0F, false);
  51. }
  52.  
  53. @Override
  54. public void setupAnim(Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch){
  55. //previously the render function, render code was moved to a method below
  56. }
  57.  
  58. @Override
  59. public void renderToBuffer(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha){
  60. face.render(matrixStack, buffer, packedLight, packedOverlay);
  61. body.render(matrixStack, buffer, packedLight, packedOverlay);
  62. }
  63.  
  64. public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {
  65. modelRenderer.xRot = x;
  66. modelRenderer.yRot = y;
  67. modelRenderer.zRot = z;
  68. }
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement