- Fix inconsistency in minecart model
This commit is contained in:
Jozufozu 2021-12-06 17:19:21 -08:00
parent 79fe04c6ab
commit 3a4fb0e43d
2 changed files with 7 additions and 1 deletions

View file

@ -136,6 +136,12 @@ public class PartBuilder {
return this;
}
public CuboidBuilder rotateZ(float z) {
useRotation = true;
this.rotationZ = z;
return this;
}
public CuboidBuilder sprite(TextureAtlasSprite sprite) {
this.sprite = sprite;
return this;

View file

@ -156,7 +156,7 @@ public class MinecartInstance<T extends AbstractMinecart> extends EntityInstance
private IModel getBodyModel() {
int y = -3;
return ModelPart.builder("minecart", 64, 32)
.cuboid().invertYZ().start(-10, -8, -y).size(20, 16, 2).textureOffset(0, 10).rotateX(((float)Math.PI / 2F)).endCuboid()
.cuboid().invertYZ().start(-10, -8, -y).size(20, 16, 2).textureOffset(0, 10).rotateZ((float) Math.PI).rotateX(((float)Math.PI / 2F)).endCuboid()
.cuboid().invertYZ().start(-8, y, -10).size(16, 8, 2).rotateY(((float)Math.PI * 1.5F)).endCuboid()
.cuboid().invertYZ().start(-8, y, -10).size(16, 8, 2).rotateY(((float)Math.PI / 2F)).endCuboid()
.cuboid().invertYZ().start(-8, y, -8).size(16, 8, 2).rotateY((float)Math.PI).endCuboid()