How do I make a custom mob attack any mob with a specific name tag?

Started by CyberTuttel on Fri, 05/21/2021 - 17:54

Topic category: Help with modding (Java Edition)

Last seen on 23:50, 4. Jul 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I make a custom mob attack any mob with a specific name tag?
Fri, 05/21/2021 - 19:53 (edited)

I want my custom mob to automatically attack any nearby mob with a specific name tag. Is this possible?

Edit: Never mind, I solved it

Edited by CyberTuttel on Fri, 05/21/2021 - 19:53
Last seen on 22:47, 27. Jun 2022
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
how did you made it?  
Fri, 06/17/2022 - 02:01

how did you made it?

 

Last seen on 23:50, 4. Jul 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I didn't really make it so…
Sun, 06/26/2022 - 17:01

I didn't really make it so that it automatically chased down the mobs.
I just made the custom mob constantly check its surroundings for mobs with a specific display name and kill them via commands, which is probably not what you're looking for... It's likely not the best way, but it was the only thing I thought of 1 year ago.

If you still need the cluttered code for this, lmk (and sorry if I don't respond because I don't check this website often).

Last seen on 22:47, 27. Jun 2022
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
what do you mean with "kill…
Sun, 06/26/2022 - 23:09

what do you mean with "kill them via commands?" also, do you have discord so we can chat better?

 

Last seen on 23:50, 4. Jul 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
discord is 1CyberTuttel9…
Tue, 06/28/2022 - 03:40

discord is 1CyberTuttel9#1952 you can add me