How to make a mob attack everyone except its own kind

Started by A_WeirdoDev on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Mar 2022
Points:
510

User statistics:

  • Modifications: 1
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 14
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.

Active 6 months ago
Joined Mar 2021
Points:
1020

User statistics:

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

You can't with Mcreator

Ask for code if anyone can help

Active 1 year ago
Joined Mar 2022
Points:
551

User statistics:

  • Modifications: 1
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 121
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

Active 8 months ago
Joined Jan 2021
Points:
611

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 16
how did you made this code, …
Sun, 06/26/2022 - 19:21

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

Active 6 months ago
Joined Mar 2018
Points:
776

User statistics:

  • Modifications: 0
  • Forum topics: 13
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 46
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