Started by
A_WeirdoDev
on
Topic category: Help with Minecraft modding (Java Edition)
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.
Topic category: Help with Minecraft modding (Java Edition)
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.
You can't with Mcreator
Ask for code if anyone can help
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
how did you made this code, @TheDragon'sSon ?
I tried to create what you described, but when you start the game stupidly crashes T-T