Initial 1.11.2 update

This commit is contained in:
Electroblob
2018-02-07 21:15:50 +00:00
parent 67f6be0671
commit 3df5597dcc
368 changed files with 17234 additions and 15082 deletions
@@ -17,19 +17,19 @@ import net.minecraft.world.World;
public class Shield extends Spell {
public Shield() {
public Shield(){
super(Tier.APPRENTICE, 5, Element.HEALING, "shield", SpellType.DEFENCE, 0, EnumAction.BLOCK, true);
}
@Override
public boolean cast(World world, EntityPlayer caster, EnumHand hand, int ticksInUse, SpellModifiers modifiers) {
public boolean cast(World world, EntityPlayer caster, EnumHand hand, int ticksInUse, SpellModifiers modifiers){
caster.addPotionEffect(new PotionEffect(MobEffects.RESISTANCE, 10, 0, false, false));
if(WizardData.get(caster).shield == null){
WizardData.get(caster).shield = new EntityShield(world, caster);
if(!world.isRemote){
world.spawnEntityInWorld(WizardData.get(caster).shield);
world.spawnEntity(WizardData.get(caster).shield);
}
}
if(ticksInUse == 0){
@@ -38,5 +38,4 @@ public class Shield extends Spell {
return true;
}
}