How to make a mob attack everyone except its own kind

Started by A_WeirdoDev on Tue, 03/22/2022 - 02:21

Topic category: Help with modding (Java Edition)

Last seen on 23:18, 23. Mar 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make a mob attack everyone except its own kind
Tue, 03/22/2022 - 02:21

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 17:50, 16. Aug 2022
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 18:38, 16. Aug 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 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 this code, …
Sun, 06/26/2022 - 19:21

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