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,6 +5,7 @@ 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;
@ -14,7 +15,7 @@ public class CrystaliteBootsModel extends BipedEntityModel<LivingEntity> {
public ModelPart rightBoot;
public CrystaliteBootsModel(float scale) {
super(scale);
super(RenderLayer::getEntityTranslucent, scale, 0.0F, 64, 32);
this.leftBoot = new ModelPart(this, 0, 16);
this.leftBoot.addCuboid(-2.0F, 0.0F, -2.0F, 4.0F, 12.0F, 4.0F, scale + 0.25F);
this.leftBoot.setPivot(1.9F, 12.0F, 0.0F);