function survivalplus:tools/upgrade_effect
data modify entity @s Offers.Recipes append value {maxUses:1,buy:{id:nether_star},sell:{id:knowledge_book,components:{custom_data:{dupetome:tag},recipes:["survivalplus:tomes/dupe"],item_name:{"text":"Duplication Tome","italic":false,"color":"light_purple"},lore:[{"text":"Duplicates the closest sparkling single item","italic":false,"color":"gray"},{"text":"Excludes Enchantments and Contents","italic":false,"color":"red"}],enchantment_glint_override:1b}}}
tag @s add selldupetome