Make remnants spawn from obelisk spawners (bye bye mobelisks o/)

This commit is contained in:
Electroblob77
2020-05-21 20:55:10 +01:00
parent 1275f1d31f
commit dd137c68f6
2 changed files with 34 additions and 17 deletions
@@ -43,7 +43,6 @@ public class EntityRemnant extends EntityMob {
public EntityRemnant(World world){
super(world);
this.setSize(0.8f, 0.8f);
this.isImmuneToFire = true;
this.moveHelper = new EntityRemnant.AIMoveControl(this);
this.experienceValue = 8;
}
@@ -113,6 +112,19 @@ public class EntityRemnant extends EntityMob {
return true;
}
@Override
public float getBlockPathWeight(BlockPos pos){
// Goddamnit Minecraft, stop imposing obscure spawning restrictions
return 1; // This won't affect pathfinding since remnants are flying mobs anyway
}
@Override
protected float applyPotionDamageCalculations(DamageSource source, float damage){
damage = super.applyPotionDamageCalculations(source, damage);
if(source.isMagicDamage()) damage *= 0.25f; // Remnants are 75% resistant to magic damage
return damage;
}
@Override
public void onUpdate(){