I want the endermans and the bees spawn in anger, and when some mob are close to me apply an effect
I've been trying to do this but I just can't, need help, I've run out of ideas on how to do it, I'm not an expert at making datapacks and I'm having a hard time doing this.
I need a way that when a mob is nearby it applies an effect such as hunger or any other effect.
Sorry if this is too much:(