execute as 6df83f08-d164-49b2-8c8b-95395d17e0cf unless entity @s[tag=trade_enchanter_book] at @s run tellraw @a[distance=..5] [{"text":"<"},{"selector":"@s"},{"text":"> "},{"text":"Pleasure. Use the book on that ","color":"gray"},{"text":"Enchanting Table","color":"gold"},{"text":" to get your items enchanted.","color":"gray"}]
execute as 6df83f08-d164-49b2-8c8b-95395d17e0cf unless entity @s[tag=trade_enchanter_book] run tag @s add trade_enchanter_book
advancement revoke @s only projectswords:enchanter_trade_book