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

Started by CyberTuttel on

Topic category: Help with modding (Java Edition)

Last seen on 01:25, 14. Feb 2023
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
Last seen on 20:54, 13. Apr 2024
Joined Jan 2021
Points:

User statistics:

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

how did you made it?

 

Last seen on 01:25, 14. Feb 2023
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).

Last seen on 20:54, 13. Apr 2024
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?

 

Last seen on 01:25, 14. Feb 2023
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

Last seen on 20:01, 8. Dec 2023
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