#Fire more than one event with damage_sensor

1 messages · Page 1 of 1 (latest)

placid lily
#

Does anyone know how to fire two events?

stray pelican
#

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?

placid lily
placid lily
#

🥲

last pilot
#

Or call one event that triggers the 2 events

placid lily
last pilot
#

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.