не могу понять коменты удалил как и всегда имя совпадает но ошибку выдает вот код public class magbossone<T extends Entity> extends EntityModel<T> { public static final ModelLayerLocation LAYER_LOCATION = new ModelLayerLocation(new ResourceLocation("modid", "magbossone"), "main"); private final ModelPart body; private final ModelPart Larm; private final ModelPart Rarm; private final ModelPart Lleg; private final ModelPart Rleg; private final ModelPart bohkaBLAT; private final ModelPart odegbaDLAobeziana;
public class magbossone<T extends Entity> extends EntityModel<T> {
public static final ModelLayerLocation LAYER_LOCATION = new ModelLayerLocation(new ResourceLocation("modid", "magbossone"), "main");
private final ModelPart body;
private final ModelPart Larm;
private final ModelPart Rarm;
private final ModelPart Lleg;
private final ModelPart Rleg;
private final ModelPart bohkaBLAT;
private final ModelPart odegbaDLAobeziana;
public magbossone(ModelPart root) {
this.body = root.getChild("body");
this.Larm = root.getChild("Larm");
this.Rarm = root.getChild("Rarm");
this.Lleg = root.getChild("Lleg");
this.Rleg = root.getChild("Rleg");
this.bohkaBLAT = root.getChild("bohkaBLAT");
this.odegbaDLAobeziana = root.getChild("odegbaDLAobeziana");
}
public static LayerDefinition createBodyLayer() {
MeshDefinition meshdefinition = new MeshDefinition();
PartDefinition partdefinition = meshdefinition.getRoot();
PartDefinition body = partdefinition.addOrReplaceChild("body", CubeListBuilder.create().texOffs(0, 15).addBox(-4.5F, -24.0F, -2.5F, 9.0F, 12.0F, 5.0F, new CubeDeformation(0.0F)), PartPose.offset(0.0F, 24.0F, 0.0F));
PartDefinition Larm = partdefinition.addOrReplaceChild("Larm", CubeListBuilder.create().texOffs(50, 34).addBox(-8.75F, -18.0F, -2.0F, 4.0F, 6.0F, 4.0F, new CubeDeformation(0.0F)), PartPose.offset(0.0F, 24.0F, 0.0F));
PartDefinition cube_r1 = Larm.addOrReplaceChild("cube_r1", CubeListBuilder.create().texOffs(0, 51).addBox(-9.5F, -23.75F, -2.0F, 4.0F, 6.0F, 4.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0436F));
PartDefinition Rarm = partdefinition.addOrReplaceChild("Rarm", CubeListBuilder.create().texOffs(52, 15).addBox(-8.75F, -18.0F, -2.0F, 4.0F, 6.0F, 4.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.0F, 24.0F, 0.0F, 3.1416F, 0.0F, -3.1416F));
PartDefinition cube_r2 = Rarm.addOrReplaceChild("cube_r2", CubeListBuilder.create().texOffs(0, 61).addBox(-9.5F, -23.75F, -2.0F, 4.0F, 6.0F, 4.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0436F));
PartDefinition Lleg = partdefinition.addOrReplaceChild("Lleg", CubeListBuilder.create(), PartPose.offset(0.0F, 24.0F, 0.0F));
PartDefinition cube_r3 = Lleg.addOrReplaceChild("cube_r3", CubeListBuilder.create().texOffs(55, 58).addBox(-4.25F, -6.0F, -2.25F, 4.0F, 6.0F, 4.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.0F, 0.0F, 0.0F, 0.0436F, 0.0F, 0.0F));
PartDefinition cube_r4 = Lleg.addOrReplaceChild("cube_r4", CubeListBuilder.create().texOffs(28, 59).addBox(-4.25F, -12.0F, -2.25F, 4.0F, 6.0F, 4.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.0F, 0.0F, -0.5F, -0.0436F, 0.0F, 0.0F));
PartDefinition Rleg = partdefinition.addOrReplaceChild("Rleg", CubeListBuilder.create(), PartPose.offset(4.5F, 24.0F, 0.0F));