How do I make it so new entities entering Entity Iterator range also get affected by it?

Started by Nazzz on

Topic category: Help with modding (Java Edition)

Last seen on 21:43, 22. Apr 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make it so new entities entering Entity Iterator range also get affected by it?

So I stumbled upon a problem. I made an item that after right clicking makes every mob in range take some damage and add some effects, but then I realized that new entities entering that range aren't getting affected by it, is there a way to fix that?

Last seen on 04:16, 15. Jul 2024
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what you could do is have an…
Sun, 01/07/2024 - 23:59

what you could do is have an effect that makes entity iterators take damage and give an effect which is given to you by the item on right click(you can make it check if user already has the effect to remove it, like a toggle) though this could result in the entities taking damage every tick they do not have invulnerable ticks, unless you already made a way to bypass that