mojira.dev
MCPE-105946

on Damage Sensors test : has Damage and Value : Fatal doesn't work properly

1. Within Minecraft code "Damage Sensors" with "has damage" there's a value called "Fatal" attach that to a player
2. Probably want an event to show what happend
3. hit an enemy to be low
4. The Code I used
{
"minecraft:damage_sensor": {
"triggers": [
{
"on_damage": {
"filters": {
"all_of": [
{
"test": "has_damage",
"value": "fatal"
},
{
"test": "is_family",
"subject": "other",
"value": "player"
}
]
},
"event": "sand:syphon",
"target": "other"
}
}
]
}
}
Observed Results:
when you hit a target to half a heart or kill it, it activates the value (Edit; new patch it does it when you get an enemy low)
Expected Results:
It should only work if you kill it

Linked issues

Comments 6

Please clarify the Description section above using this format:
Steps to Reproduce:
1. (be complete and precise so someone else can repeat your exact steps)
2.
3.
Observed Results:
(briefly describe what actually happens, including exact message(s) shown)
Expected Results:
(briefly describe what should happen)

(attach screenshot to help explain the issue)

This ticket has been temporarily closed as Awaiting Response. It will automatically reopen when you add information. Please follow the format shown and include all sections (steps, observed, expected). Tickets that do not contain all of the requested information may be closed as Incomplete.

Edit It's worse than I thought not just when an enemy is half a heart now it does it when there just low

Apparently, if a player is wearing armor and they receive an amount damage that would kill them without armor, it triggers as fatal even though the player is not dead.

Steps to Reproduce:
1. create a damage sensor component in player.json with a test for fatal that runs a command on "other" which is the attacker.
2. give the player a full set of any diamond armor.
3. crit hit the player with a sharpness 5 diamond sword.
Observed Results:
the command runs even though the player attacked is alive
Expected Results:
no command is run

Thank you for your report!

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

Is this still an issue in the latest version? If yes, can you please add it to the affected versions (or mention it if you are not the reporter)?

This ticket will automatically reopen when you reply.

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

John Luciano Montgomery-Russo

(Unassigned)

Unconfirmed

Windows

Windows 10

code

1.16.100, 1.16.201 Hotfix

Retrieved