Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-119982

Damage Sensor testing for damage as value fatal is broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.16.201 Hotfix
    • None
    • Unconfirmed
    • Multiple

      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"
                              }
                          }
                      ]
                  }
              }

            ColoringEmy86 Jason Brook
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: