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

The "armor_effectiveness" effect does not work with projectiles or indirect damage

XMLWordPrintable

    • Community Consensus
    • Enchantments
    • Normal
    • Platform

      The "minecraft:armor_effectiveness" effect in enchantments does not work with projectiles or indirect damage.

      Using a datapack it is possible do a custom enchantment. If this enchantment has the "minecraft:armor_effectiveness" effect and its value is -1,

      //unarmored.json
      //...
        "effects": {
          "minecraft:armor_effectiveness": [
            {
              "effect": {
                "type": "minecraft:add",
                "value": -1
              }
            }
          ]
        }
      //...

      this will remove the entity's entire armor.

      How to reproduce:

      1. Download a pack or create one with a custom enchantment that remove the armor and enable it.
      2. Summon some entities with armor (or full armor) to test.
      3. Give you a trident (/give @s minecraft:trident)
      4. Enchant an item with the custom enchantment (in this case: /enchant @s test:unarmored).
      5. Deal damage to the entities.

      You will notice that the direct damage (melee) is ignoring the armor, but the indirect damage (projectiles) is not ignoring the armor. You can use /data get entity @e[sort=nearest,type=!minecraft:player,limit=1] Health to see their health.

        1. MC-272053.mp4
          7.79 MB
        2. datapack.zip
          0.8 kB

            gegy1000 [Mojang] Gegy
            Fernandg66 Fernandg66
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: