#Mobs with the Same Name shouldn't Attack Each Other?

1 messages · Page 1 of 1 (latest)

ebon hearth
#

Hello, can I make mobs with the same name or tag not attack each other but attacks everyone else?

jagged basalt
#

Make it attack familys that dont match its family

#

{
"filters": {
"any_of": [
{
"test": "is_family",
"subject": "other",
"value": "player"
}
]
},

#

Want it to attack the family players?

#

That

#

swap it for monsters to attack them

#

},
"components": {
"minecraft:collision_box": {
"width": 0.8,
"height": 1.8
},
"minecraft:type_family": {
"family": ["enclave", "monster"]

#

Use the type_family for your family

#

if wont it to attack entitys that arent family players use !players

#

if you want it to attack non monsters
!monsters

ebon hearth
jagged basalt
ebon hearth
#

what i want to do is to integrate tiktok interactions to it so like mobs summoned by this gifter will not attack the other mobs summoned by the same gifter but attack everyone else