• Chào bạn, hãy đăng ký hoặc đăng nhập để tham gia cùng bọn mình và sử dụng được đầy đủ chức năng của diễn đàn :).
minhmvc1234

Thảo luận MC Server mn ơi cho mik hỏi khi cho model vào mccreator cứ bị lỗi í!Mn giúp mình với ạ

minhmvc1234

THÀNH VIÊN
Tham gia
04/04/2022
Bài viết
12
37964
 
Thảo luận MC Server  MUA ANTI JOIN BOT
"giải pháp tốt nhất cho vấn đề này là xác định đúng tên mô hình trong trình mô hình của bạn trước khi xuất mô hình"
đây là phần mình dịch đc nhưng mik chx hiểu lắm
 
mình ghi thế này:
// Made with Blockbench 4.2.2
// Exported for Minecraft version 1.14 with Mojang mappings
// Paste this class into your mod and generate all required imports


public class irongolem extends EntityModel {
private final RendererModel body;
private final RendererModel head;
private final RendererModel arm0;
private final RendererModel arm1;
private final RendererModel leg0;
private final RendererModel leg1;

public Irongolem() {
texWidth = 128;
texHeight = 128;

body = new Irongolem Model(this);
body.setPos(0.0F, -7.0F, 0.0F);
body.cubes.add(new ModelBox(body, 0, 40, -9.0F, -2.0F, -6.0F, 18, 12, 11, 0.0F, true));
body.cubes.add(new ModelBox(body, 0, 70, -4.5F, 10.0F, -3.0F, 9, 5, 6, 0.5F, true));

head = new Irongolem Model(this);
head.setPos(0.0F, -7.0F, -2.0F);
head.cubes.add(new ModelBox(head, 0, 0, -4.0F, -12.0F, -5.5F, 8, 10, 8, 0.0F, true));
head.cubes.add(new ModelBox(head, 24, 0, -1.0F, -5.0F, -7.5F, 2, 4, 2, 0.0F, true));

arm0 = new Irongolem Model(this);
arm0.setPos(0.0F, -7.0F, 0.0F);
arm0.cubes.add(new ModelBox(arm0, 60, 21, 9.0F, -2.5F, -3.0F, 4, 30, 6, 0.0F, true));

arm1 = new RendererModel(this);
arm1.setPos(0.0F, -7.0F, 0.0F);
arm1.cubes.add(new ModelBox(arm1, 60, 58, -13.0F, -2.5F, -3.0F, 4, 30, 6, 0.0F, true));

leg0 = new IrongolemModel(this);
leg0.setPos(4.0F, 11.0F, 0.0F);
leg0.cubes.add(new ModelBox(leg0, 37, 0, -2.5F, -3.0F, -3.0F, 6, 16, 5, 0.0F, true));

leg1 = new IrongolemModel(this);
leg1.setPos(-5.0F, 11.0F, 0.0F);
leg1.cubes.add(new ModelBox(leg1, 60, 0, -2.5F, -3.0F, -3.0F, 6, 16, 5, 0.0F, false));
}

@Override
public void render(Irongolem Irongolem, float f, float f1, float f2, float f3, float f4, float f5) {
body.render(f5);
head.render(f5);
arm0.render(f5);
arm1.render(f5);
leg0.render(f5);
leg1.render(f5);
}

public void setRotationAngle(IrongolemModel modelIrongolem, float x, float y, float z) {
modelIrongolem.xRot = x;
modelIrongolem.yRot = y;
modelIrongolem.zRot = z;
}
}


có gì sai sót thay cho mình nhé
 
Back
Top Bottom