How to make a mob attack everyone except its own kind

Started by A_WeirdoDev on

Topic category: Help with Minecraft modding (Java Edition)

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.

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

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

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 ?

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