mojira.dev
MCPE-119982

Damage Sensor testing for damage as value fatal is broken

In player.json the damage sensor component has some issues. More specifically, the value component. So, I was creating a accurate kill counter with damage sensor, but it won't work as I supposed it would. I'm 100% sure this is a bug with the add-on itself. For damage sensor I was testing for "has_damage" and the value of "fatal", but the value fatal seems to be broken. The value fatal works when the player doesn't have armor, but when they got armor and the player is 3/4 dead it thinks the player died thus executing a event I added. I also heard from one of my friend that it bugs out when the player is taking damage from cactus (not sure about this because I haven't tested the cactus, but it does break with armor)
This is the damage sensor component:

"minecraft:damage_sensor": {
                "triggers": [
                    {
                        "on_damage": {
                            "filters": {
                                "all_of": [
                                    {
                                        "test": "is_family",
                                        "subject": "self",
                                        "value": "player"
                                    },
                                    {
                                        "test": "has_damage",
                                        "value": "fatal"
                                    }
                                ]
                            },
                            "event": "notbeer:kill",
                            "target": "other"
                        }
                    }
                ]
            }
        }

Linked issues

Comments 1

Thank you for your report!
We're tracking this issue in MCPE-105946, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! Please report any issues on Discord or Reddit

Jason Brook

(Unassigned)

Unconfirmed

Multiple

Windows 10

1.16.201 Hotfix

Retrieved