How to make a mob attack everyone except its own kind

Started by A_WeirdoDev on

Topic category: Help with modding (Java Edition)

Last seen on 02:22, 11. Nov 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a mob attack everyone except its own kind

How do i make a mob attack everyone except its own kind, in other words its hostile to all mobs except its self/its own kind.

Last seen on 15:20, 19. Apr 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can't with Mcreator Ask…
Tue, 03/22/2022 - 06:11

You can't with Mcreator

Ask for code if anyone can help

Last seen on 15:34, 1. Mar 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Create a procedure in "when…
Fri, 04/29/2022 - 19:28

Create a procedure in "when the entity spawn" that say :

define a entity NBT tag [your tag] to event/target entity

 

In your entity AI, in the code that say "attack everyone", add a condition of start :

| If entity target has the tag [your tag]

|- return false

return true

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 this code, …
Sun, 06/26/2022 - 19:21

how did you made this code, @TheDragon'sSon ?

Last seen on 13:21, 6. Apr 2024
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I tried to create what you…
Thu, 08/18/2022 - 13:10

I tried to create what you described, but when you start the game stupidly crashes T-T
DontKillYouFamily