#Entity killed detect
1 messages · Page 1 of 1 (latest)
You can try this, I haven't tested it so I'm not sure if it would work:
"minecraft:damage_sensor": {
"triggers": {
"on_damage": {
"filters": {
"all_of": [
// Detects the family of the entity that caused the damage
{ "test": "is_family", "subject": "other", "value": "monster" },
// Check the variant
{ "test": "is_variant", "subject": "other", "value": 0 },
// Detects if it was fatal damage
{ "test": "has_damage", "subject": "self", "value": "fatal" }
]
},
"event": "event_name"
},
"cause": "all",
"deals_damage": true
}
}
oh forgot fatal was a thing 
how can I expand this?
"minecraft:damage_sensor": {
"triggers": {
"on_damage": {
"filters": {
"all_of": [
{
"test": "is_family",
"subject": "other",
"operator": "!=",
"value": "shinigami"
},
{
"test": "is_family",
"subject": "other",
"operator": "!=",
"value": "hollow"
}
]
}
},
"deals_damage": false
}
},```
like adding other filters and those filters deals damage
You have to make an array of triggers. Now you have "triggers": {...}, you have to set "triggers": [{...}, {...}]. You can insert as many triggers as you want.