Minecraft wiki entry for Thorns, associated text: While wearing any piece of armor with the Thorns enchantment, the wearer has a Level × 15% chance of inflicting 1–4 damage on anyone who attacks them, regardless of whether they were hit by a melee attack, arrow, or other projectile. The entity also gets knocked back when being attacked by the enchantment.‌[JE only][1]