Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 KB | None | 0 0
  1.             List<EntityLivingBase> targetList = this.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, this.boundingBox.expand(6.0F, 6.0F, 6.0F));
  2.             EntityLivingBase owner = this.getOwner();  
  3.             slowPulseFXCounter = 0;
  4.             for (EntityLivingBase targets : targetList)
  5.             {
  6.                 if ( targets != null)
  7.                 {
  8.                     if ( targets != this.getOwner() && targets != this)
  9.                     {
  10.                         targets.addPotionEffect(new PotionEffect(Potion.moveSlowdown.getId(), 100, 5));
  11.                     }
  12.  
  13.                 }
  14.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement