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

Started by crazester899 on

Topic category: Help with modding (Java Edition)

Last seen on 09:10, 18. Apr 2022
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.