-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrud_horror.java
More file actions
86 lines (59 loc) · 6.22 KB
/
brud_horror.java
File metadata and controls
86 lines (59 loc) · 6.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
// Made with Blockbench 5.0.4
// Exported for Minecraft version 1.17 or later with Mojang mappings
// Paste this class into your mod and generate all required imports
public class brud_horror<T extends brud_horror> extends EntityModel<T> {
// This layer location should be baked with EntityRendererProvider.Context in the entity renderer and passed into this model's constructor
public static final ModelLayerLocation LAYER_LOCATION = new ModelLayerLocation(new ResourceLocation("modid", "brud_horror"), "main");
private final ModelPart Root;
private final ModelPart Body;
private final ModelPart Head;
private final ModelPart Eyebrows;
private final ModelPart Eyes;
private final ModelPart Mouth;
private final ModelPart M1;
private final ModelPart M2;
public brud_horror(ModelPart root) {
this.Root = root.getChild("Root");
this.Body = this.Root.getChild("Body");
this.Head = this.Body.getChild("Head");
this.Eyebrows = this.Head.getChild("Eyebrows");
this.Eyes = this.Head.getChild("Eyes");
this.Mouth = this.Head.getChild("Mouth");
this.M1 = this.Mouth.getChild("M1");
this.M2 = this.Mouth.getChild("M2");
}
public static LayerDefinition createBodyLayer() {
MeshDefinition meshdefinition = new MeshDefinition();
PartDefinition partdefinition = meshdefinition.getRoot();
PartDefinition Root = partdefinition.addOrReplaceChild("Root", CubeListBuilder.create(), PartPose.offset(0.0F, 24.0F, 0.0F));
PartDefinition Body = Root.addOrReplaceChild("Body", CubeListBuilder.create().texOffs(34, 25).addBox(-2.14F, -11.5105F, -2.14F, 4.28F, 3.21F, 4.28F, new CubeDeformation(0.0F))
.texOffs(0, 31).addBox(-2.3F, -8.7055F, -2.3F, 4.6F, 4.6F, 4.6F, new CubeDeformation(0.0F))
.texOffs(32, 15).addBox(-2.7076F, -5.0695F, -2.7076F, 5.4151F, 5.3279F, 5.4151F, new CubeDeformation(0.0F)), PartPose.offset(0.0F, 0.4055F, 0.0F));
PartDefinition Body_r1 = Body.addOrReplaceChild("Body_r1", CubeListBuilder.create().texOffs(18, 23).addBox(-2.0F, -5.5F, -2.0F, 4.0F, 11.0F, 4.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.9855F, -5.6418F, 0.0F, 0.0F, 0.0F, -0.1745F));
PartDefinition Body_r2 = Body.addOrReplaceChild("Body_r2", CubeListBuilder.create().texOffs(24, 0).addBox(-2.0F, -5.5F, -2.0F, 4.0F, 11.0F, 4.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-0.9855F, -5.6418F, 0.0F, 0.0F, 0.0F, 0.1745F));
PartDefinition Head = Body.addOrReplaceChild("Head", CubeListBuilder.create().texOffs(0, 18).addBox(-1.0F, -10.0F, -4.0F, 1.0F, 5.0F, 8.0F, new CubeDeformation(0.0F))
.texOffs(12, 10).addBox(-1.0F, -5.0F, -4.0F, 2.0F, 5.0F, 8.0F, new CubeDeformation(0.0F)), PartPose.offset(0.0F, -10.4055F, 0.0F));
PartDefinition Head_r1 = Head.addOrReplaceChild("Head_r1", CubeListBuilder.create().texOffs(0, 2).addBox(-1.0F, -1.0F, 0.0F, 2.0F, 2.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(2.5F, -3.3F, -4.01F, 0.0F, 0.0F, 0.2618F));
PartDefinition Head_r2 = Head.addOrReplaceChild("Head_r2", CubeListBuilder.create().texOffs(12, 10).addBox(-1.0F, -2.5F, -4.0F, 2.0F, 5.0F, 8.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-0.9567F, -2.6903F, 0.0F, 0.0F, 0.0F, -2.7489F));
PartDefinition Head_r3 = Head.addOrReplaceChild("Head_r3", CubeListBuilder.create().texOffs(12, 10).addBox(-1.0F, -2.5F, -4.0F, 2.0F, 5.0F, 8.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-1.7678F, -3.2322F, 0.0F, 0.0F, 0.0F, -2.3562F));
PartDefinition Head_r4 = Head.addOrReplaceChild("Head_r4", CubeListBuilder.create().texOffs(12, 10).addBox(-1.0F, -2.5F, -4.0F, 2.0F, 5.0F, 8.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-2.3097F, -4.0433F, 0.0F, 0.0F, 0.0F, -1.9635F));
PartDefinition Head_r5 = Head.addOrReplaceChild("Head_r5", CubeListBuilder.create().texOffs(12, 10).addBox(-1.0F, -2.5F, -4.0F, 2.0F, 5.0F, 8.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-2.5F, -5.0F, 0.0F, 0.0F, 0.0F, -1.5708F));
PartDefinition Head_r6 = Head.addOrReplaceChild("Head_r6", CubeListBuilder.create().texOffs(0, 18).addBox(-0.5F, -2.5F, -4.0F, 1.0F, 5.0F, 8.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(2.1184F, -3.5814F, 0.0F, 0.0F, 0.0F, -1.1781F));
PartDefinition Head_r7 = Head.addOrReplaceChild("Head_r7", CubeListBuilder.create().texOffs(12, 10).addBox(-1.0F, -2.5F, -4.0F, 2.0F, 5.0F, 8.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-2.3097F, -5.9567F, 0.0F, 0.0F, 0.0F, -1.1781F));
PartDefinition Head_r8 = Head.addOrReplaceChild("Head_r8", CubeListBuilder.create().texOffs(0, 0).addBox(-1.0F, -5.0F, -4.0F, 2.0F, 10.0F, 8.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.0F, -5.0F, 0.0F, 0.0F, 0.0F, -0.7854F));
PartDefinition Head_r9 = Head.addOrReplaceChild("Head_r9", CubeListBuilder.create().texOffs(0, 0).addBox(-1.0F, -5.0F, -4.0F, 2.0F, 10.0F, 8.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.0F, -5.0F, 0.0F, 0.0F, 0.0F, -0.3927F));
PartDefinition Eyebrows = Head.addOrReplaceChild("Eyebrows", CubeListBuilder.create().texOffs(0, 0).addBox(-4.0F, -1.85F, 0.0F, 4.0F, 2.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offset(0.0F, -8.15F, -4.01F));
PartDefinition Eyes = Head.addOrReplaceChild("Eyes", CubeListBuilder.create().texOffs(12, 0).addBox(-5.0F, -2.5F, 0.0F, 5.0F, 5.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offset(0.0F, -5.5F, -4.01F));
PartDefinition Mouth = Head.addOrReplaceChild("Mouth", CubeListBuilder.create(), PartPose.offset(0.0F, -2.0F, -4.01F));
PartDefinition M1 = Mouth.addOrReplaceChild("M1", CubeListBuilder.create().texOffs(10, 23).addBox(-3.0F, -1.0F, 0.0F, 6.0F, 2.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offset(0.0F, 0.0F, 0.0F));
PartDefinition M2 = Mouth.addOrReplaceChild("M2", CubeListBuilder.create().texOffs(12, 5).addBox(-3.0F, -1.0F, 0.0F, 6.0F, 2.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offset(0.0F, 0.0F, 0.0F));
return LayerDefinition.create(meshdefinition, 64, 64);
}
@Override
public void setupAnim(brud_horror entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) {
}
@Override
public void renderToBuffer(PoseStack poseStack, VertexConsumer vertexConsumer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) {
Root.render(poseStack, vertexConsumer, packedLight, packedOverlay, red, green, blue, alpha);
}
}