Minecraft wiki entry for Recipe_book, associated text: Recipes are unlocked upon meeting certain criteria (for instance, gathering materials, being near water, having a certain number of filled inventory slots, etc.) or by using a knowledge book. Using a crafting recipe also unlocks it, so long as /gamerule doLimitedCrafting remains false.