WIP: custom armor model

This commit is contained in:
Aleksey 2020-11-30 22:47:34 +03:00
parent aac9844252
commit 04de4d0873
7 changed files with 9 additions and 20 deletions

View file

@ -5,13 +5,14 @@ import java.util.Collections;
import com.google.common.collect.Lists;
import net.minecraft.client.model.ModelPart;
import net.minecraft.client.render.RenderLayer;
import net.minecraft.client.render.entity.model.BipedEntityModel;
import net.minecraft.entity.LivingEntity;
public class CrystaliteLeggingsModel extends BipedEntityModel<LivingEntity> {
public CrystaliteLeggingsModel(float scale) {
super(scale);
super(RenderLayer::getEntityTranslucent, scale, 0.0F, 64, 32);
this.rightLeg = new ModelPart(this, 0, 16);
this.rightLeg.addCuboid(-2.0F, 0.0F, -2.0F, 4.0F, 12.0F, 4.0F, scale);
this.rightLeg.setPivot(-1.9F, 12.0F, 0.0F);