Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- World world = mc.thePlayer.worldObj;
- AxisAlignedBB aabb = mc.thePlayer.getEntityBoundingBox().expand(4, 2, 4);
- List entities = world.getEntitiesWithinAABBExcludingEntity(mc.thePlayer, aabb);
- for(int i = 0; i < entities.size(); i++) {
- Random rand = new Random();
- Entity entity = (Entity)entities.get(i);
- 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);
- 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);
- 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);
- //Potion effect removed
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement