#Trigger Entity Events with Sequence and Filter

1 messages · Page 1 of 1 (latest)

pure shore
#

So I’m trying to make it so whenever an entity dies, it triggers a specific event depending on what component it has. However I’m unsure where exactly I need to put the “Trigger” Parameter when I’m using “sequence” and “filter”. At least I think that’s what’s causing my code to break. I’ve looked at the wiki, but can’t seem to find what I’m looking for

barren tree
#

In the official documentation it says

minecraft:on_death can only be used by the ender_dragon entity.

pure shore
barren tree
#

Looking at the documentation on that page, I don’t think “trigger” is valid there. Or “sequence”. Those are entity event parameters. You can’t just stick them inside any component. Do you have content log warnings on?

violet wolf
#

Try in the damage sensor, fatal damage. Here is my code for my kill count that shows itjson { "on_damage": { "filters": { "all_of": [ {"test":"has_damage","value":"fatal"}, {"test":"is_family","subject":"damager","value":"player"} ] }, "event": "ev:kill_count" } }

pure shore
pure shore