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

Started by CyberTuttel on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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).

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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?

 

Joined Apr 2021
Points:

User statistics:

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

discord is 1CyberTuttel9#1952 you can add me

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I might have a usable…
Mon, 10/02/2023 - 01:20

I might have a usable solution here