Supplementaries

Supplementaries

127M Downloads

[๐Ÿ—ƒ]: Custom PlayerModel should have their class

Closed this issue ยท 5 comments

commented

PlayerModel, is for player, should have full player parts. Instead of modify from PlayerModel, make another model class can be a better way for mod compatibility.

MeshDefinition mesh = PlayerModel.createMesh(CubeDeformation.NONE, false);
PartDefinition root = mesh.getRoot();
root.addOrReplaceChild("head", CubeListBuilder.create(), PartPose.offset(0, 13, 0));
root.addOrReplaceChild("hat", CubeListBuilder.create(), PartPose.offset(0, 13, 0));
root.addOrReplaceChild("body", CubeListBuilder.create()

Yes it crashed with my mod. Why player is headless???

commented

Actually if a mod were to modify an existing vanilla model, then that's their fault

commented

It's unsafe to modify existing models as mods expect them to have those children

commented

Maybe you are right...

commented

Which mod was doing that?

commented

Actually, it's my mod.
In summary, I replace player's HEAD for render
I couldn't find a better solution for this