Skip to content

Commit

Permalink
Attempts to fix Evolved Zombie #5
Browse files Browse the repository at this point in the history
  • Loading branch information
craftablescience committed Feb 17, 2020
1 parent f59274d commit 9deca13
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@

import net.minecraft.client.model.Box;
import net.minecraft.client.model.Model;
import net.minecraft.client.render.entity.model.ZombieEntityModel;
import net.minecraft.client.render.entity.model.BipedEntityModel;

/**
* @author <a href="https://github.com/StellarHorizons">StellarHorizons</a> and made with the help of <a href="https://blockbench.net/https://blockbench.net/">Blockbench</a>
*/
public class EvolvedZombieModel<EVOLVEDZOMBIE_ENTITY> extends ZombieEntityModel<EvolvedZombieEntity> {
public class EvolvedZombieModel<EVOLVEDZOMBIE_ENTITY> extends BipedEntityModel<EvolvedZombieEntity> {

/**
* Work in Progress. This model should work, but it refuses to show up :(
Expand Down Expand Up @@ -69,8 +69,8 @@ public EvolvedZombieModel(float scale, int textureWidth, int textureHeight) {

//this.leftArm.setRotationPoint(5.0F, 2.0F, 0.0F);
this.leftArm.boxes.clear();
//this.body.addChild(this.leftArm);
//this.leftArm.boxes.add(new Box(this.leftArm, 40, 16, -1.0F, -2.0F, -2.0F, 4, 12, 4, 0.0F, true));
this.body.addChild(this.leftArm);
this.leftArm.boxes.add(new Box(this.leftArm, 40, 16, -1.0F, -2.0F, -2.0F, 4, 12, 4, 0.0F, true));

this.rightLeg.setRotationPoint(-1.9F, 12.0F, 0.0F);
this.rightLeg.boxes.clear();
Expand All @@ -86,5 +86,6 @@ public EvolvedZombieModel(float scale, int textureWidth, int textureHeight) {
@Override
public void render(EvolvedZombieEntity entity, float f, float f1, float f2, float f3, float f4, float f5) {
super.render(entity, f, f1, f2, f3, f4, f5);
this.body.render(1F);
}
}

0 comments on commit 9deca13

Please sign in to comment.