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:
Download a pack or create one with a custom enchantment that remove the armor and enable it.
Summon some entities with armor (or full armor) to test.
Give you a trident (/give @s minecraft:trident)
Enchant an item with the custom enchantment (in this case: /enchant @s test:unarmored).
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.
Attachments
Comments 2
Can confirm, relates to MC-272006
The skeleton wither D should have 12.0 health points, not 17.7.