I can't answer you question directly, but as an alternative, you could use items such as the Interdiction torch, or magnum torch. Those don't make mobs friendly, but they prevent mob spawning or even crossing over into a limited area. These items can keep you safe from mobs in certain areas, but...