The Thorns enchantment is added to your armor so that when a player or mob physically attacks you, they will take damage from your armor. You can add the Thorns enchantment to any piece of armor such as helmets, chestplates, leggings or boots using an enchanting table, anvil, or game command.