Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<EntityLivingBase> targetList = this.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, this.boundingBox.expand(6.0F, 6.0F, 6.0F));
- EntityLivingBase owner = this.getOwner();
- slowPulseFXCounter = 0;
- for (EntityLivingBase targets : targetList)
- {
- if ( targets != null)
- {
- if ( targets != this.getOwner() && targets != this)
- {
- targets.addPotionEffect(new PotionEffect(Potion.moveSlowdown.getId(), 100, 5));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement