mojira.dev
MCPE-237034

"deals_damage" field doesn't work on player entity

I only provide a part of my JSON for this issue.

"minecraft:damage_sensor": {
        "triggers": [
          {
            "on_damage": {
              "filters": {
                "all_of": [
                  {
                    "test": "has_tag",
                    "subject": "self",
                    "value": "gm:blocking"
                  }
                ]
              },
              "event": "gm:blocking"
            },
            "deals_damage": "no"
          }
        ]
      }

See? The level of “deal_damage” is same to the sample in Allay.json

"minecraft:damage_sensor": {
  "triggers": [
    {
      "deals_damage": "no",
      "on_damage": {
        "filters": {
          "all_of": [
            {
              "subject": "other",
              "test": "is_family",
              "value": "player"
            },
            {
              "subject": "other",
              "test": "is_owner"
            }
          ]
        }
      }
    }
  ]
}

Still, it doesn’t work properly. If any of reviewers regard it as incorrect usage of coding, please prove it with your correct code that it’s not a bug, but not to simply close my request.

Steps to reproduce

  1. Open a world with a pack contains the JSON part of mine

  2. Type “/tag @s add gm:blocking” and enter in the chat box

  3. Summon a zombie to attack you

Expected result

Anvil sound is played, no damage applied

Observed result

Anvil sound is played, damage is applied

Attachments

Comments 3

Thank you for your report!

However, this issue has been temporarily closed as Awaiting Response.

Could you please attach an example addon showcasing the issue?

This ticket will automatically reopen when you reply.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

[media]

You want an example, that’s it. But I must clarify that I’m not asking for help on addon, I seriously consider it as a bug.

"no"/"yes" is only available in format_version 1.21.40 or greater. Prior to that, you must use true/false. Please do not create further reports about this issue.

mingwangdada

(Unassigned)

Unconfirmed

Multiple

26.3

Retrieved