# Pastebin UzpjrfhF if(ticksExisted % 4 == 0){ List list = worldObj.getEntitiesWithinAABBExcludingEntity(this, boundingBox.expand(15, 15, 15)); for(EntityLivingBase e : list){ if(e instanceof EntityMob && canAttackEntity(e)){ this.setAttackTarget(e); break; } } }