/give @s lavender:dynamic_book[lavender:book_id="guidebook:book"]
/give @s modopedia:book[modopedia:book="enchanted:art_of_witchcraft"]

setblock ~ ~ ~ chest{LootTable:"mod:table/path"}