mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-26 22:38:00 +01:00
Skeletons have a 1/3 chance of spawning without a horn
This commit is contained in:
parent
f49d8bcadf
commit
85622b335d
2 changed files with 11 additions and 5 deletions
|
@ -33,6 +33,7 @@ public class ModelEnderStallion extends ModelSkeletonPony {
|
|||
rightArmPose = isCarrying ? ArmPose.BLOCK : ArmPose.EMPTY;
|
||||
leftArmPose = rightArmPose;
|
||||
|
||||
isUnicorn = true;
|
||||
isAlicorn = entity.getUniqueID().getLeastSignificantBits() % 3 == 0;
|
||||
isBoss = !isAlicorn && entity.getUniqueID().getLeastSignificantBits() % 90 == 0;
|
||||
|
||||
|
@ -74,11 +75,6 @@ public class ModelEnderStallion extends ModelSkeletonPony {
|
|||
GlStateManager.popMatrix();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canCast() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canFly() {
|
||||
return isAlicorn;
|
||||
|
|
|
@ -10,8 +10,13 @@ import net.minecraft.util.EnumHand;
|
|||
import net.minecraft.util.EnumHandSide;
|
||||
|
||||
public class ModelSkeletonPony extends ModelMobPony {
|
||||
|
||||
public boolean isUnicorn;
|
||||
|
||||
@Override
|
||||
public void setLivingAnimations(EntityLivingBase entity, float move, float swing, float ticks) {
|
||||
isUnicorn = entity.getUniqueID().getLeastSignificantBits() % 3 != 0;
|
||||
|
||||
rightArmPose = ArmPose.EMPTY;
|
||||
leftArmPose = ArmPose.EMPTY;
|
||||
|
||||
|
@ -42,6 +47,11 @@ public class ModelSkeletonPony extends ModelMobPony {
|
|||
super.setLivingAnimations(entity, move, swing, ticks);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canCast() {
|
||||
return isUnicorn;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected float getLegOutset() {
|
||||
if (isSleeping()) return 2.6f;
|
||||
|
|
Loading…
Reference in a new issue