Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-120066

Advancement damage taken condition does not consider reduction from armor/potions/absorption

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.12.1, Minecraft 1.12.2
    • Fix Version/s: None
    • Labels:
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      Advancement damage taken condition does not consider reduction from armor/potions/absorption.

      How to reproduce

      1. Create an advancement with a "taken": "min": 1.0 condition
      2. Summon a zombie with either armor or the generic armor attribute
      3. Punch zombie
      4. Advancement triggers even though the zombie sustained less than 1.0 damage

      Example advancement:

      {
         "criteria": {
              "custom_test_name": {
                  "trigger": "minecraft:player_hurt_entity",
                  "conditions": {
                      "damage": {
                          "taken": {
                              "min": 1.0
                          }
                      }
                  }
              }
         }
      }
      

      Example command:

      summon zombie ~ ~1 ~ {Attributes:[{Name:"generic.armor",Base:30.0}],NoAI:1b}
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Karewit Karewit
              • Votes:
                5 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: