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
Open a world with a pack contains the JSON part of mine
Type “/tag @s add gm:blocking” and enter in the chat box
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
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.
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