I have created a file at <world_save>/data/advancements/zed/challenges/root.json with the following contents:
I am unable to get the advancement to trigger using either a Book named Zedcraft challenges in an anvil or by using the following give command:
However if I remove the NBT condition it works correctly for any book, and I know that Minecraft is recognising the NBT string as if I make the syntax invalid in the JSON file, I get an exception in the logs. I tried it with written_ book as well with a 'title' condition as well as with various different title/name strings. This could be true for other NBT related conditions/triggers as well, but I have only tested it on inventory_changed.