Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Made with Blockbench 4.0.3
- // Exported for Minecraft version 1.15 - 1.16 with Mojang mappings
- // Paste this class into your mod and generate all required imports
- public class abyssic extends EntityModel<Entity> {
- private final ModelRenderer face;
- private final ModelRenderer t_teeth8_r1;
- private final ModelRenderer b_teeth7_r1;
- private final ModelRenderer body;
- public abyssic() {
- texWidth = 96;
- texHeight = 96;
- face = new ModelRenderer(this);
- face.setPos(0.0F, 24.0F, 0.0F);
- face.texOffs(0, 0).addBox(-4.0F, -7.0F, -14.0F, 7.0F, 4.0F, 6.0F, 0.0F, false);
- face.texOffs(92, 94).addBox(-2.0F, -5.0F, -15.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
- face.texOffs(92, 94).addBox(0.0F, -5.0F, -15.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
- t_teeth8_r1 = new ModelRenderer(this);
- t_teeth8_r1.setPos(-0.5F, -1.0F, -11.0F);
- face.addChild(t_teeth8_r1);
- setRotationAngle(t_teeth8_r1, 0.0F, 0.0F, 0.0F);
- t_teeth8_r1.texOffs(0, 0).addBox(-3.5F, -2.0F, 1.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
- t_teeth8_r1.texOffs(0, 0).addBox(-3.5F, -2.0F, -1.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
- t_teeth8_r1.texOffs(0, 0).addBox(0.5F, -2.0F, -3.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
- t_teeth8_r1.texOffs(0, 0).addBox(-1.5F, -2.0F, -3.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
- t_teeth8_r1.texOffs(0, 0).addBox(-3.5F, -2.0F, -3.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
- t_teeth8_r1.texOffs(0, 0).addBox(2.5F, -2.0F, -3.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
- t_teeth8_r1.texOffs(0, 0).addBox(2.5F, -2.0F, 1.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
- t_teeth8_r1.texOffs(0, 0).addBox(2.5F, -2.0F, -1.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
- b_teeth7_r1 = new ModelRenderer(this);
- b_teeth7_r1.setPos(-0.5F, -1.0F, -11.0F);
- face.addChild(b_teeth7_r1);
- setRotationAngle(b_teeth7_r1, 0.1745F, 0.0F, 0.0F);
- b_teeth7_r1.texOffs(0, 0).addBox(2.5F, -1.0F, 0.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
- b_teeth7_r1.texOffs(0, 0).addBox(2.5F, -1.0F, 2.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
- b_teeth7_r1.texOffs(0, 0).addBox(-2.5F, -1.0F, -2.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
- b_teeth7_r1.texOffs(0, 0).addBox(1.5F, -1.0F, -2.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
- b_teeth7_r1.texOffs(0, 0).addBox(-0.5F, -1.0F, -2.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
- b_teeth7_r1.texOffs(0, 0).addBox(-3.5F, -1.0F, 0.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
- b_teeth7_r1.texOffs(0, 0).addBox(-3.5F, -1.0F, 2.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
- b_teeth7_r1.texOffs(0, 0).addBox(-3.5F, 0.0F, -3.0F, 7.0F, 1.0F, 6.0F, 0.0F, false);
- body = new ModelRenderer(this);
- body.setPos(0.0F, 24.0F, 0.0F);
- body.texOffs(0, 0).addBox(-4.0F, -7.0F, -8.0F, 7.0F, 7.0F, 30.0F, 0.0F, false);
- }
- @Override
- public void setupAnim(Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch){
- //previously the render function, render code was moved to a method below
- }
- @Override
- public void renderToBuffer(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha){
- face.render(matrixStack, buffer, packedLight, packedOverlay);
- body.render(matrixStack, buffer, packedLight, packedOverlay);
- }
- public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {
- modelRenderer.xRot = x;
- modelRenderer.yRot = y;
- modelRenderer.zRot = z;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement