You need three things: a smithing template, an item, and a material. The 'Netherite Enchantment' template with a netherite ingot turns a diamond item into netherite while preserving enchantments. The decoration template with a material applies a pattern to armor.