#Dommage sensor

1 messages · Page 1 of 1 (latest)

heady apex
#

hello the damage is permanently canceled

#

"minecraft:damage_sensor": { "triggers": [ { "on_damage": { "filters": { "any_of": [ { "all_of": [ {"test": "has_tag",
"subject": "self",
"operator": "equals",
"value": "e_1" },

{ "test": "has_tag",
 "subject": "other",
  "operator": "equals",
   "value": "e_1" } ] } ] } }, "deals_damage": false } ] } },
#

I would like to understand why normally the sum equals is for an equality between the 2 has tags e_1 and e_1?

wary zealot
#
  "minecraft:damage_sensor": {
    "triggers": [
      {
        "on_damage": {
          "filters": {
            "any_of": [
              {
                "all_of": [
                  {
                    "test": "has_tag",
                    "subject": "self",
                    "operator": "equals",
                    "value": "e_1"
                  },
                  {
                    "test": "has_tag",
                    "subject": "other",
                    "operator": "equals",
                    "value": "e_1"
                  }
                ]
              }
            ]
          },
          "deals_damage": false
        }
      }
    ]
  }
heady apex
#

I would like to cancel the damages between people with the tag e_1

#

I would also like to know if there is a difference between the values.
= Test for equality.
And
equals Test for equality.

wary zealot
heady apex
wary zealot
#

I don't understand what you're trying to do.