Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2015
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. World world = mc.thePlayer.worldObj;
  2. AxisAlignedBB aabb = mc.thePlayer.getEntityBoundingBox().expand(4, 2, 4);
  3. List entities = world.getEntitiesWithinAABBExcludingEntity(mc.thePlayer, aabb);
  4. for(int i = 0; i < entities.size(); i++) {
  5. Random rand = new Random();
  6. Entity entity = (Entity)entities.get(i);
  7. mc.theWorld.spawnParticle(EnumParticleTypes.SPELL_MOB, entity.posX, entity.posY, entity.posZ, (rand.nextDouble() - 0.5D) * (double)entity.width, rand.nextDouble() * (double)entity.height, (rand.nextDouble() - 0.5D) * (double)entity.width, null);
  8. mc.theWorld.spawnParticle(EnumParticleTypes.SPELL_MOB, entity.posX, entity.posY, entity.posZ, (rand.nextDouble() - 0.5D) * (double)entity.width, rand.nextDouble() * (double)entity.height, (rand.nextDouble() - 0.5D) * (double)entity.width, null);
  9. mc.theWorld.spawnParticle(EnumParticleTypes.SPELL_MOB, entity.posX, entity.posY, entity.posZ, (rand.nextDouble() - 0.5D) * (double)entity.width, rand.nextDouble() * (double)entity.height, (rand.nextDouble() - 0.5D) * (double)entity.width, null);
  10. //Potion effect removed
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement