What you described is from modders perspective, not the user perspective.
Let's say you make an Item which attacks all mobs around you. The only thing a user sees is that all mobs around him/her are attacked.
Describe from a user's perspective what should happen. This way we can help you with the implementation details.