Using an item to affect other nearby players

Is it possible to make a mod so that using the mod item in my inventory will affect all nearby players within a radius and change their stats, for example making their biome hot/cold or replenishing their hunger back to full?