-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsky_horror.java
More file actions
168 lines (108 loc) · 15.4 KB
/
sky_horror.java
File metadata and controls
168 lines (108 loc) · 15.4 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
// 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 sky_horror<T extends sky_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", "sky_horror"), "main");
private final ModelPart Root;
private final ModelPart Body;
private final ModelPart Pipe1;
private final ModelPart Head;
private final ModelPart Rightear;
private final ModelPart Leftear;
private final ModelPart Eyebrows;
private final ModelPart Eyes;
private final ModelPart E1;
private final ModelPart Mouth;
private final ModelPart Pipe2;
private final ModelPart Pipe3;
private final ModelPart Pipe4;
public sky_horror(ModelPart root) {
this.Root = root.getChild("Root");
this.Body = this.Root.getChild("Body");
this.Pipe1 = this.Body.getChild("Pipe1");
this.Head = this.Body.getChild("Head");
this.Rightear = this.Head.getChild("Rightear");
this.Leftear = this.Head.getChild("Leftear");
this.Eyebrows = this.Head.getChild("Eyebrows");
this.Eyes = this.Head.getChild("Eyes");
this.E1 = this.Eyes.getChild("E1");
this.Mouth = this.Head.getChild("Mouth");
this.Pipe2 = this.Head.getChild("Pipe2");
this.Pipe3 = this.Head.getChild("Pipe3");
this.Pipe4 = this.Head.getChild("Pipe4");
}
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(44, 8).addBox(-2.14F, -5.5105F, -2.14F, 4.28F, 3.21F, 4.28F, new CubeDeformation(0.0F))
.texOffs(44, 0).addBox(-2.3F, -2.7055F, -2.3F, 4.6F, 4.6F, 4.6F, new CubeDeformation(0.0F))
.texOffs(16, 40).addBox(-2.7076F, 0.9305F, -2.7076F, 5.4151F, 5.3279F, 5.4151F, new CubeDeformation(0.0F)), PartPose.offset(0.0F, -5.5945F, 0.0F));
PartDefinition Body_r1 = Body.addOrReplaceChild("Body_r1", CubeListBuilder.create().texOffs(46, 29).addBox(-1.0F, -1.0F, -1.0F, 2.0F, 2.0F, 2.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.0567F, 2.546F, 3.6118F, -0.3473F, 0.0352F, -0.0002F));
PartDefinition Body_r2 = Body.addOrReplaceChild("Body_r2", CubeListBuilder.create().texOffs(0, 35).mirror().addBox(-2.0F, -5.5F, -2.0F, 4.0F, 11.0F, 4.0F, new CubeDeformation(0.0F)).mirror(false), PartPose.offsetAndRotation(0.9855F, 0.3582F, 0.0F, 0.0F, 0.0F, -0.1745F));
PartDefinition Body_r3 = Body.addOrReplaceChild("Body_r3", CubeListBuilder.create().texOffs(0, 35).addBox(-2.0F, -5.5F, -2.0F, 4.0F, 11.0F, 4.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-0.9855F, 0.3582F, 0.0F, 0.0F, 0.0F, 0.1745F));
PartDefinition Pipe1 = Body.addOrReplaceChild("Pipe1", CubeListBuilder.create(), PartPose.offset(0.5567F, -1.954F, -0.3882F));
PartDefinition Pipe1_r1 = Pipe1.addOrReplaceChild("Pipe1_r1", CubeListBuilder.create().texOffs(0, 22).addBox(-0.5F, -0.5F, -6.0F, 1.0F, 1.0F, 12.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.0F, 0.0F, 0.0F, 0.0873F, 0.5236F, 0.0F));
PartDefinition Head = Body.addOrReplaceChild("Head", CubeListBuilder.create().texOffs(26, 22).addBox(-1.0F, -10.0F, -4.0F, 2.0F, 10.0F, 8.0F, new CubeDeformation(0.0F))
.texOffs(46, 37).addBox(-1.5F, -12.5F, -4.01F, 3.0F, 3.0F, 0.0F, new CubeDeformation(0.0F))
.texOffs(44, 49).addBox(-4.0F, -4.0F, -4.01F, 3.0F, 3.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offset(0.0F, -4.4055F, 0.0F));
PartDefinition Head_r1 = Head.addOrReplaceChild("Head_r1", CubeListBuilder.create().texOffs(26, 22).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, -2.7489F));
PartDefinition Head_r2 = Head.addOrReplaceChild("Head_r2", CubeListBuilder.create().texOffs(26, 22).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, -2.3562F));
PartDefinition Head_r3 = Head.addOrReplaceChild("Head_r3", CubeListBuilder.create().texOffs(26, 22).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, -1.9635F));
PartDefinition Head_r4 = Head.addOrReplaceChild("Head_r4", CubeListBuilder.create().texOffs(26, 22).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, -1.5708F));
PartDefinition Head_r5 = Head.addOrReplaceChild("Head_r5", CubeListBuilder.create().texOffs(26, 22).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, -1.1781F));
PartDefinition Head_r6 = Head.addOrReplaceChild("Head_r6", CubeListBuilder.create().texOffs(44, 45).addBox(-1.0F, -5.01F, -4.01F, 2.0F, 1.0F, 3.0F, new CubeDeformation(0.0F))
.texOffs(26, 22).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_r7 = Head.addOrReplaceChild("Head_r7", CubeListBuilder.create().texOffs(26, 22).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 Rightear = Head.addOrReplaceChild("Rightear", CubeListBuilder.create().texOffs(46, 22).addBox(-1.5F, -3.5F, -1.0F, 1.0F, 5.0F, 2.0F, new CubeDeformation(0.0F))
.texOffs(0, 50).addBox(-1.5F, -3.0F, -1.3F, 1.0F, 4.0F, 1.0F, new CubeDeformation(0.0F)), PartPose.offset(-4.0F, -8.0F, 0.0F));
PartDefinition Rightear_r1 = Rightear.addOrReplaceChild("Rightear_r1", CubeListBuilder.create().texOffs(0, 50).addBox(-0.5F, -2.0F, -0.5F, 1.0F, 4.0F, 1.0F, new CubeDeformation(0.0F))
.texOffs(46, 22).addBox(-0.5F, -2.5F, -0.2F, 1.0F, 5.0F, 2.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-1.0F, -1.0F, -0.8F, 0.0F, 0.0F, -2.7489F));
PartDefinition Rightear_r2 = Rightear.addOrReplaceChild("Rightear_r2", CubeListBuilder.create().texOffs(0, 50).addBox(-0.5F, -2.0F, -0.5F, 1.0F, 4.0F, 1.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-1.0F, -1.0F, -0.8F, 0.0F, 0.0F, -2.3998F));
PartDefinition Rightear_r3 = Rightear.addOrReplaceChild("Rightear_r3", CubeListBuilder.create().texOffs(0, 50).addBox(-0.5F, -2.0F, -0.5F, 1.0F, 4.0F, 1.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-1.0F, -1.0F, -0.8F, 0.0F, 0.0F, -1.9199F));
PartDefinition Rightear_r4 = Rightear.addOrReplaceChild("Rightear_r4", CubeListBuilder.create().texOffs(0, 50).addBox(-0.5F, -2.0F, -0.5F, 1.0F, 4.0F, 1.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-1.0F, -1.0F, -0.8F, 0.0F, 0.0F, -1.4399F));
PartDefinition Rightear_r5 = Rightear.addOrReplaceChild("Rightear_r5", CubeListBuilder.create().texOffs(0, 50).addBox(-0.5F, -2.0F, -0.5F, 1.0F, 4.0F, 1.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-1.0F, -1.0F, -0.8F, 0.0F, 0.0F, -0.9599F));
PartDefinition Rightear_r6 = Rightear.addOrReplaceChild("Rightear_r6", CubeListBuilder.create().texOffs(0, 50).addBox(-0.5F, -2.0F, -0.5F, 1.0F, 4.0F, 1.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-1.0F, -1.0F, -0.8F, 0.0F, 0.0F, -0.48F));
PartDefinition Rightear_r7 = Rightear.addOrReplaceChild("Rightear_r7", CubeListBuilder.create().texOffs(46, 22).addBox(-0.5F, -2.5F, -1.0F, 1.0F, 5.0F, 2.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-1.0F, -1.0F, 0.0F, 0.0F, 0.0F, -2.3562F));
PartDefinition Rightear_r8 = Rightear.addOrReplaceChild("Rightear_r8", CubeListBuilder.create().texOffs(46, 22).addBox(-0.5F, -2.5F, -1.0F, 1.0F, 5.0F, 2.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-1.0F, -1.0F, 0.0F, 0.0F, 0.0F, -1.9635F));
PartDefinition Rightear_r9 = Rightear.addOrReplaceChild("Rightear_r9", CubeListBuilder.create().texOffs(46, 22).addBox(-0.5F, -2.5F, -1.0F, 1.0F, 5.0F, 2.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-1.0F, -1.0F, 0.0F, 0.0F, 0.0F, -1.5708F));
PartDefinition Rightear_r10 = Rightear.addOrReplaceChild("Rightear_r10", CubeListBuilder.create().texOffs(46, 22).addBox(-0.5F, -2.5F, -1.0F, 1.0F, 5.0F, 2.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-1.0F, -1.0F, 0.0F, 0.0F, 0.0F, -1.1781F));
PartDefinition Rightear_r11 = Rightear.addOrReplaceChild("Rightear_r11", CubeListBuilder.create().texOffs(46, 22).addBox(-0.5F, -2.5F, -1.0F, 1.0F, 5.0F, 2.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-1.0F, -1.0F, 0.0F, 0.0F, 0.0F, -0.7854F));
PartDefinition Rightear_r12 = Rightear.addOrReplaceChild("Rightear_r12", CubeListBuilder.create().texOffs(46, 22).addBox(-0.5F, -2.5F, -1.0F, 1.0F, 5.0F, 2.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-1.0F, -1.0F, 0.0F, 0.0F, 0.0F, -0.3927F));
PartDefinition Leftear = Head.addOrReplaceChild("Leftear", CubeListBuilder.create().texOffs(46, 22).mirror().addBox(0.5F, -3.5F, -1.0F, 1.0F, 5.0F, 2.0F, new CubeDeformation(0.0F)).mirror(false)
.texOffs(0, 50).mirror().addBox(0.5F, -3.0F, -1.3F, 1.0F, 4.0F, 1.0F, new CubeDeformation(0.0F)).mirror(false), PartPose.offset(4.0F, -8.0F, 0.0F));
PartDefinition Leftear_r1 = Leftear.addOrReplaceChild("Leftear_r1", CubeListBuilder.create().texOffs(0, 50).mirror().addBox(-0.5F, -2.0F, -0.5F, 1.0F, 4.0F, 1.0F, new CubeDeformation(0.0F)).mirror(false)
.texOffs(46, 22).mirror().addBox(-0.5F, -2.5F, -0.2F, 1.0F, 5.0F, 2.0F, new CubeDeformation(0.0F)).mirror(false), PartPose.offsetAndRotation(1.0F, -1.0F, -0.8F, 0.0F, 0.0F, 2.7489F));
PartDefinition Leftear_r2 = Leftear.addOrReplaceChild("Leftear_r2", CubeListBuilder.create().texOffs(0, 50).mirror().addBox(-0.5F, -2.0F, -0.5F, 1.0F, 4.0F, 1.0F, new CubeDeformation(0.0F)).mirror(false), PartPose.offsetAndRotation(1.0F, -1.0F, -0.8F, 0.0F, 0.0F, 2.3998F));
PartDefinition Leftear_r3 = Leftear.addOrReplaceChild("Leftear_r3", CubeListBuilder.create().texOffs(0, 50).mirror().addBox(-0.5F, -2.0F, -0.5F, 1.0F, 4.0F, 1.0F, new CubeDeformation(0.0F)).mirror(false), PartPose.offsetAndRotation(1.0F, -1.0F, -0.8F, 0.0F, 0.0F, 1.9199F));
PartDefinition Leftear_r4 = Leftear.addOrReplaceChild("Leftear_r4", CubeListBuilder.create().texOffs(0, 50).mirror().addBox(-0.5F, -2.0F, -0.5F, 1.0F, 4.0F, 1.0F, new CubeDeformation(0.0F)).mirror(false), PartPose.offsetAndRotation(1.0F, -1.0F, -0.8F, 0.0F, 0.0F, 1.4399F));
PartDefinition Leftear_r5 = Leftear.addOrReplaceChild("Leftear_r5", CubeListBuilder.create().texOffs(0, 50).mirror().addBox(-0.5F, -2.0F, -0.5F, 1.0F, 4.0F, 1.0F, new CubeDeformation(0.0F)).mirror(false), PartPose.offsetAndRotation(1.0F, -1.0F, -0.8F, 0.0F, 0.0F, 0.9599F));
PartDefinition Leftear_r6 = Leftear.addOrReplaceChild("Leftear_r6", CubeListBuilder.create().texOffs(0, 50).mirror().addBox(-0.5F, -2.0F, -0.5F, 1.0F, 4.0F, 1.0F, new CubeDeformation(0.0F)).mirror(false), PartPose.offsetAndRotation(1.0F, -1.0F, -0.8F, 0.0F, 0.0F, 0.48F));
PartDefinition Leftear_r7 = Leftear.addOrReplaceChild("Leftear_r7", CubeListBuilder.create().texOffs(46, 22).mirror().addBox(-0.5F, -2.5F, -1.0F, 1.0F, 5.0F, 2.0F, new CubeDeformation(0.0F)).mirror(false), PartPose.offsetAndRotation(1.0F, -1.0F, 0.0F, 0.0F, 0.0F, 2.3562F));
PartDefinition Leftear_r8 = Leftear.addOrReplaceChild("Leftear_r8", CubeListBuilder.create().texOffs(46, 22).mirror().addBox(-0.5F, -2.5F, -1.0F, 1.0F, 5.0F, 2.0F, new CubeDeformation(0.0F)).mirror(false), PartPose.offsetAndRotation(1.0F, -1.0F, 0.0F, 0.0F, 0.0F, 1.9635F));
PartDefinition Leftear_r9 = Leftear.addOrReplaceChild("Leftear_r9", CubeListBuilder.create().texOffs(46, 22).mirror().addBox(-0.5F, -2.5F, -1.0F, 1.0F, 5.0F, 2.0F, new CubeDeformation(0.0F)).mirror(false), PartPose.offsetAndRotation(1.0F, -1.0F, 0.0F, 0.0F, 0.0F, 1.5708F));
PartDefinition Leftear_r10 = Leftear.addOrReplaceChild("Leftear_r10", CubeListBuilder.create().texOffs(46, 22).mirror().addBox(-0.5F, -2.5F, -1.0F, 1.0F, 5.0F, 2.0F, new CubeDeformation(0.0F)).mirror(false), PartPose.offsetAndRotation(1.0F, -1.0F, 0.0F, 0.0F, 0.0F, 1.1781F));
PartDefinition Leftear_r11 = Leftear.addOrReplaceChild("Leftear_r11", CubeListBuilder.create().texOffs(46, 22).mirror().addBox(-0.5F, -2.5F, -1.0F, 1.0F, 5.0F, 2.0F, new CubeDeformation(0.0F)).mirror(false), PartPose.offsetAndRotation(1.0F, -1.0F, 0.0F, 0.0F, 0.0F, 0.7854F));
PartDefinition Leftear_r12 = Leftear.addOrReplaceChild("Leftear_r12", CubeListBuilder.create().texOffs(46, 22).mirror().addBox(-0.5F, -2.5F, -1.0F, 1.0F, 5.0F, 2.0F, new CubeDeformation(0.0F)).mirror(false), PartPose.offsetAndRotation(1.0F, -1.0F, 0.0F, 0.0F, 0.0F, 0.3927F));
PartDefinition Eyebrows = Head.addOrReplaceChild("Eyebrows", CubeListBuilder.create().texOffs(44, 15).addBox(-4.0F, -1.0F, 0.0F, 8.0F, 2.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offset(0.0F, -9.0F, -4.01F));
PartDefinition Eyes = Head.addOrReplaceChild("Eyes", CubeListBuilder.create().texOffs(36, 40).addBox(-5.0F, -2.5F, 0.0F, 10.0F, 5.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offset(0.0F, -5.5F, -4.01F));
PartDefinition E1 = Eyes.addOrReplaceChild("E1", CubeListBuilder.create().texOffs(16, 35).addBox(-2.5F, -2.5F, 0.0F, 5.0F, 5.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offset(-2.5F, 0.0F, -0.01F));
PartDefinition Mouth = Head.addOrReplaceChild("Mouth", CubeListBuilder.create().texOffs(46, 33).addBox(-2.0F, -2.0F, 0.0F, 4.0F, 4.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offset(0.0F, -2.0F, -4.01F));
PartDefinition Pipe2 = Head.addOrReplaceChild("Pipe2", CubeListBuilder.create(), PartPose.offset(0.0F, -5.0F, 0.0F));
PartDefinition Pipe2_r1 = Pipe2.addOrReplaceChild("Pipe2_r1", CubeListBuilder.create().texOffs(44, 17).addBox(-2.5F, -2.5F, 0.0F, 5.0F, 5.0F, 0.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(5.8616F, -2.0339F, -6.4055F, -0.263F, -0.077F, -0.2729F));
PartDefinition Pipe2_r2 = Pipe2.addOrReplaceChild("Pipe2_r2", CubeListBuilder.create().texOffs(0, 0).addBox(-0.5F, -0.5F, -10.5F, 1.0F, 1.0F, 21.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.6735F, 0.2518F, -2.4674F, -0.3054F, -0.8727F, 0.0F));
PartDefinition Pipe3 = Head.addOrReplaceChild("Pipe3", CubeListBuilder.create(), PartPose.offset(-3.5F, -8.5F, -1.5F));
PartDefinition Pipe3_r1 = Pipe3.addOrReplaceChild("Pipe3_r1", CubeListBuilder.create().texOffs(40, 45).addBox(-0.5F, -8.5F, -0.5F, 1.0F, 17.0F, 1.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.0F, 0.0F, 0.0F, 0.2766F, 0.3419F, -0.8682F));
PartDefinition Pipe4 = Head.addOrReplaceChild("Pipe4", CubeListBuilder.create(), PartPose.offset(0.0F, 0.0F, 0.0F));
PartDefinition Pipe4_r1 = Pipe4.addOrReplaceChild("Pipe4_r1", CubeListBuilder.create().texOffs(36, 45).addBox(-0.5F, -9.0F, -0.5F, 1.0F, 18.0F, 1.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(-0.3467F, -5.8478F, -1.647F, -0.2174F, -0.0189F, -0.0852F));
return LayerDefinition.create(meshdefinition, 64, 64);
}
@Override
public void setupAnim(sky_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);
}
}