#Fire more than one event with damage_sensor
1 messages · Page 1 of 1 (latest)
I think you can't. Never looked it up, but i think its best to use other components to fire more events
what exactly are you trying to achieve?
I want to fire an event on the entity that suffered the fatal damage and also on the entity that caused this damage
🥲
Have your event trigger the 2nd event... endless with sequence
Or call one event that triggers the 2 events
understand the exit, it will not work if an event triggers another
How about putting the self death part in an animation controller and leave the other for the damage sensor
or.. this worked for me```json
"minecraft:damage_sensor": {
"triggers": [
{
"on_damage": {
"filters": {
"all_of":[
{"test":"has_damage","value":"fatal"},
{"test":"is_family","subject":"damager","value":"player"}
]
},
"event":"ev:death_stuff"
}
},
{"cause":"fall","deals_damage":false}
]
}
"ev:death_stuff":{
"sequence": [
{"run_command":{
"target":"self","command":["say I died"]
}
},
{"run_command":{
"target":"other","command":["say I know, I killed you!"]
}
}
]
}```
I put in a chicken.