How to exclude source entity from For each entity in radius block

Started by crazester899 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to exclude source entity from For each entity in radius block

I'm trying to give an effect to all entities in a radius of 15 blocks by right clicking a item. This should work but the effect is applied to the source entity too that is who right clicks the item. How do I exclude the source entity from the radius? Some procedure to check if an entity that is inside the radius if its the source entity.