How to make mob ONLY attack monsters under a tag?

Started by BryAstro on

Topic category: Help with modding (Java Edition)

Last seen on 12:20, 29. Aug 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make mob ONLY attack monsters under a tag?
Mon, 01/22/2024 - 00:52 (edited)

Version 2023.4 (1.20.1 Forge)

The title is self explanatory, I would like to make a mob immediately attack monster entities that are under a specific tag.

 

I tried this, but it didn't work.

Edited by BryAstro on Mon, 01/22/2024 - 00:52
Last seen on 11:36, 30. Aug 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Maybe you could check if an…
Mon, 01/22/2024 - 14:52

Maybe you could check if an entity with that tag is nearby, and if it is, the entity moves to that location. If it find an entity nearby without that tag, it moves to its current location, or is given slowness.