New Paste

 

Recent Pastes

Administrate




iPocalypse Pastebin

PasteID: 76ch7
Pasted by Anonymous, 2011-06-17 15:03:38 GMT
Expires Never
Paste size 1.21 Kb
Toggle Expand   Wrap   Raw
Copy Contents   Copy URL
 
  1.   protected boolean w() {
  2.     return (isSitting()) || (g);
  3.   }
  4.  
  5.   public boolean damageEntity(Entity entity, int i) {
  6.     setSitting(false);
  7.     if ((entity != null) && (!(entity instanceof EntityHuman)) && (!(entity instanceof EntityArrow))) {
  8.       i = (i + 1) / 2;
  9.     }
  10.  
  11.     if (!super.damageEntity(entity, i)) {
  12.       return false;
  13.     }
  14.     if ((!A()) && (!isAngry())) {
  15.       if ((entity instanceof EntityHuman)) {
  16.         setAngry(true);
  17.         target = entity;
  18.       }
  19.  
  20.       if (((entity instanceof EntityArrow)) && (((EntityArrow)entity).shooter != null)) {
  21.         entity = ((EntityArrow)entity).shooter;
  22.       }
  23.  
  24.       if ((entity instanceof EntityLiving)) {
  25.         List list = world.a(EntityWolf.class, AxisAlignedBB.b(locX, locY, locZ, locX + 1.0D, locY + 1.0D, locZ + 1.0D).b(16.0D, 4.0D, 16.0D));
  26.         Iterator iterator = list.iterator();
  27.  
  28.         while (iterator.hasNext()) {
  29.           Entity entity1 = (Entity)iterator.next();
  30.           EntityWolf entitywolf = (EntityWolf)entity1;
  31.  
  32.           if ((!entitywolf.A()) && (entitywolf.target == null)) {
  33.             entitywolf.target = entity;
  34.             if ((entity instanceof EntityHuman))
  35.               entitywolf.setAngry(true);
 
 
 

 
 
 
 
 
Written by Xan Manning, 2010.
YOU NEED FLASH!