advancement revoke @s only rfi:swordbook
recipe take @s rfi:swordbook
clear @s knowledge_book
give @s enchanted_book{display:{Name:'{"text":"Legendary Sword Book","color":"dark_purple","italic":false}'},StoredEnchantments:[{id:"minecraft:sharpness",lvl:3s},{id:"minecraft:fire_aspect",lvl:2s}]} 1