@Override public void do_spell(IMagicEntity magic_caster, Entity target, Stats stat) { EntityDoppleganger entity; Entity caster; caster = magic_caster.getEntity(); entity = new EntityDoppleganger(caster.worldObj, caster); entity.setLocationAndAngles(caster.posX + 1, caster.posY, caster.posZ, 0.1f, 0.1f); caster.worldObj.spawnEntityInWorld(entity); entity = new EntityDoppleganger(caster.worldObj, caster); entity.setLocationAndAngles(caster.posX - 1, caster.posY, caster.posZ, 0.1f, 0.1f); caster.worldObj.spawnEntityInWorld(entity); }
@Override public void do_spell(IMagicEntity caster, Entity target, Stats stat) { caster.getEntity().addPotionEffect(new PotionEffect(Potion.invisibility.id, 10 * 20)); }