#HOW TO exclude certain damage type when firing an event through damage_sensor

1 messages · Page 1 of 1 (latest)

gusty mulch
#

I need an entity to fire an event when it receives any damage EXCEPT certain damage type, please what am I doing wrong?

        "minecraft:damage_sensor": {
          "triggers": [
            {
              "on_damage": {
                "filters": {
                  "test": "is_family",
                  "subject": "other",
                  "operator": "!=",
                  "value": "lightning"
                },
                "event": "test:event_1"
              }
            }
          ]
        },```The event is still triggered when it gets hit by lightning 🤨
gusty mulch
#

HOW TO exclude certain damage type when firing an event through damage_sensor

vapid fox
gusty mulch
#

nop, I want to fire an event when it takes damage excluding the lightning damage type

vapid fox
#

it might be cause

#

"minecraft:damage_sensor": {
"triggers": {
"cause": "lightning"
},
"event": "test:event_1"
}

#

nvm

#

you want without lightning

#

give me another second

gusty mulch
#

yep

vapid fox
#

have you tried to just getting rid of the operator

vapid fox
#

because they are 2 separate events

gusty mulch
#

got it working excluding fire too yeah, maybe that was the issue (not sure because I tried it a lot of different ways heheh)