execute store result score random itemcount run random value 1..10
execute if score random itemcount matches 1 run data modify entity @s Offers.Recipes append value {maxUses:1,buy:{id:emerald,count:12},sell:{id:written_book,components:{"minecraft:written_book_content":{"pages": ["        ________               /             \\             \\             /             /             \\            /               \\           |      /|         |           |    /  |  |\\     |           | /| |   \\/  \\   |           \\| \\| /\\     |/|/            |   /   \\/\\  |              \\  |        | /                                          Cooking Vol. I                Smoking","Something about smoked meat leaves me feeling so much more satisfied. After catching some game and cooking it, I like to roast it slowly over a campfire to fully bake in that smoky flavor. It's super simple to make, all it takes is a campfire and bit of time.","What you'll need:         A campfire                                                                          The trick is to roast it carefully.                 DO NOT put it directly in the fire, or it will burn and taste like charcoal.                 I've made that mistake too many times to count when I was in a hurry."],"title":"Cooking Vol. I","author":"Unknown","generation":1}}}}
execute if score random itemcount matches 2 run data modify entity @s Offers.Recipes append value {maxUses:1,buy:{id:emerald,count:12},sell:{id:written_book,components:{"minecraft:written_book_content":{"pages": ["        ________               /             \\             \\             /             /             \\            /               \\           |      /|         |           |    /  |  |\\     |           | /| |   \\/  \\   |           \\| \\| /\\     |/|/            |   /   \\/\\  |              \\  |        | /                                          Cooking Vol. II                 Honey","Lately, I've been smothering my cooked meats in honey. It puts a pep in my step and makes me feel so energized! It's a lot of work to collect all that honey but in the end it's worth it to help you get through the day.","What you Need:           Honey Bottles            Cooked Meats                                                                  First start by matching your ratio of honey and meat to 1:1  Then lather in the honey until the meat is soaked in that sweet golden nectar. And it's ready to eat!","Something that I noticed while harvesting honey from my nearby forest, was a bee with golden pollen? When I followed it to it's hive and harvested the honey, I had found something far sweeter and richer than any ordinary honey. It can only be described as royalty!","It's a waste to use it in cooking! I tried adding it to my meats and was greatly disappointed by how it then tasted like regular honeyed meat... To obtain this rich treasure, you must make sure to not disturb the bees and the one with the golden pollen must be inside."],"title":"Cooking Vol. II","author":"Unknown","generation":1}}}}
execute if score random itemcount matches 3 run data modify entity @s Offers.Recipes append value {maxUses:1,buy:{id:emerald,count:12},sell:{id:written_book,components:{"minecraft:written_book_content":{"pages": ["        ________               /             \\             \\             /             /             \\            /               \\           |      /|         |           |    /  |  |\\     |           | /| |   \\/  \\   |           \\| \\| /\\     |/|/            |   /   \\/\\  |              \\  |        | /                                          Cooking Vol. III             Cooking Pot","Setting up a cooking pot to make various meals can be awfully convenient. Keep in mind though that you must use raw meat and an even amount of ingredients. Cooked meat is already a meal so there's no point in cooking it again.","What you Need:           A Campfire                A Cauldron               And some Water                                       Make sure your campfire is lit first. Then place your pot over the flame and fill with water and let it simmer for a bit. Now it's ready for later recipes.","Personally, I like to put a trapdoor over it to double as a grill for smoking later. Make sure that you always have water in your pot or your ingredients will not cook properly!"],"title":"Cooking Vol. III","author":"Unknown","generation":1}}}}
execute if score random itemcount matches 4 run data modify entity @s Offers.Recipes append value {maxUses:1,buy:{id:emerald,count:12},sell:{id:written_book,components:{"minecraft:written_book_content":{"pages": ["        ________               /             \\             \\             /             /             \\            /               \\           |      /|         |           |    /  |  |\\     |           | /| |   \\/  \\   |           \\| \\| /\\     |/|/            |   /   \\/\\  |              \\  |        | /                                          Cooking Vol. IV          Wild Ingredients    ","In my travels I've come across some carrots and potatoes growing in the wild. Wild roots such as these are much richer and filling when used in soup. As they are wild roots they cannot be farmed by traditional means. However there was one time I ha tossed my leftovers behind my tent and the","next morning they had replanted themselves! After coming back through the area on another trip (and after a few rainy days) those leftovers had regrown again! I was delighted to have another meal using the same family of roots.","What you Need:           Cooking Pot               Wild Roots                 Bucket of Milk           Bowls                              Chop your carrots and potatoes and put them in the pot. Pour in the milk and cook evenly. Once it's finished, use your bowls to scoop it up.","Planting them too close to each other may hinder their growth. so keep that in mind when forgetting your leftovers."],"title":"Cooking Vol. IV","author":"Unknown","generation":1}}}}
execute if score random itemcount matches 5 run data modify entity @s Offers.Recipes append value {maxUses:1,buy:{id:emerald,count:12},sell:{id:written_book,components:{"minecraft:written_book_content":{"pages": ["        ________               /             \\             \\             /             /             \\            /               \\           |      /|         |           |    /  |  |\\     |           | /| |   \\/  \\   |           \\| \\| /\\     |/|/            |   /   \\/\\  |              \\  |        | /                                          Cooking Vol. V               Beetroot    ","I had obtained some good beetroots from a trader recently. Most people don't realize how healthy beetroots are. When mashed and mixed into a soup, it becomes a super food that heals you greatly!","What you Need:           Crafting Table           6 Beetroots              A Wooden Bowl                                        Take your bowl and fill it with beetroots. Start mashing until its a fine paste and add water to thin it as needed until it becomes a fine soup.","I tried to turn my soup into a sauce for my meats one day. And discovered it has a lasting effect! It's not quite as potent as the soup is, but it's still better than just the nourishment of meat alone. I also added some milk to give the sauce a creamier texture.","What you Need:           Cooking Pot               Raw Meat                  Bucket of Milk            Beetroots                                         Take your raw meat and beetroots and throw them into your pot. Then pour the milk in and mix well.","Water is required to cook everything evenly, so don't forget to put water in your cauldron! Simmer the meat in the sauce until it soaks it up, making it super juicy and tender. Then serve and enjoy!"],"title":"Cooking Vol. V","author":"Unknown","generation":1}}}}
execute if score random itemcount matches 6 run data modify entity @s Offers.Recipes append value {maxUses:1,buy:{id:emerald,count:12},sell:{id:written_book,components:{"minecraft:written_book_content":{"pages": ["        ________               /             \\             \\             /             /             \\            /               \\           |      /|         |           |    /  |  |\\     |           | /| |   \\/  \\   |           \\| \\| /\\     |/|/            |   /   \\/\\  |              \\  |        | /                                          Cooking Vol. VI            Cold Berries    ","Native to the north, cold berries are great ingredients in cooking despite nearly freezing you over if you eat them soley. If used to make a sauce, it can greatly increase your defensive capabilites for a time.","What you Need:           Cooking Pot               Raw Meat                  Bucket of Milk            Cold Berries                                          Leave the berries on low heat to fully soften the flesh. Then add your meat and milk. Let stand for a while to let the flavor soak into the meat."],"title":"Cooking Vol. VI","author":"Unknown","generation":1}}}}
execute if score random itemcount matches 7 run data modify entity @s Offers.Recipes append value {maxUses:1,buy:{id:emerald,count:12},sell:{id:written_book,components:{"minecraft:written_book_content":{"pages": ["        ________               /             \\             \\             /             /             \\            /               \\           |      /|         |           |    /  |  |\\     |           | /| |   \\/  \\   |           \\| \\| /\\     |/|/            |   /   \\/\\  |              \\  |        | /                                          Cooking Vol. VII          Honey Berries    ","Found in huge hives, honey berries are a sweet, chewy treat. Brewing them into a sauce brings out the deeper flavor that these little things are hiding. Being covered in beeswax, it's best to cook them on high heat. The wax can also be smeared on copper to prevent rusting too.","What you Need:           Cooking Pot               Raw Meat                  Bucket of Milk            Honey Berries                                        Start by fueling your fire to full to melt off the beeswax. Then skim the wax off the top with a ladel. Add in the meat and milk and let simmer for an hour."],"title":"Cooking Vol. VII","author":"Unknown","generation":1}}}}
execute if score random itemcount matches 8 run data modify entity @s Offers.Recipes append value {maxUses:1,buy:{id:emerald,count:12},sell:{id:written_book,components:{"minecraft:written_book_content":{"pages": ["        ________               /             \\             \\             /             /             \\            /               \\           |      /|         |           |    /  |  |\\     |           | /| |   \\/  \\   |           \\| \\| /\\     |/|/            |   /   \\/\\  |              \\  |        | /                                         Cooking Vol. VIII           Glow Berries","Glow berries can be found in lush caves and are a pretty common ingredient for the workers down in the mines. They shared their own recipe with me called \"Miner's Treat.\" They say it helps get their mining days go by faster.","What you Need:           Cooking Pot               Raw Meat                  Bucket of Milk            Glow Berries                                          Remove the skin of the berries and mash into a paste. Add milk and mix. Then add the meat to the pot and the paste mix. Stir until you can't stand to wait anymore. Enjoy!"],"title":"Cooking Vol. VIII","author":"Unknown","generation":1}}}}
execute if score random itemcount matches 9 run data modify entity @s Offers.Recipes append value {maxUses:1,buy:{id:emerald,count:12},sell:{id:written_book,components:{"minecraft:written_book_content":{"pages": ["        ________               /             \\             \\             /             /             \\            /               \\           |      /|         |           |    /  |  |\\     |           | /| |   \\/  \\   |           \\| \\| /\\     |/|/            |   /   \\/\\  |              \\  |        | /                                          Cooking Vol. IX            Bold Berries","Bold berries have very hard skin and need to be pounded to be pryed open. A hard exterior with velvety meaty innards. Eating them makes me feel stronger than before but mixed into a sauce amplifies the effects duration.","What you Need:           Cooking Pot               Raw Meat                  Bucket of Milk            Bold Berries                                          Start by breaking the skin with a hammer. I like to roast them in a strong fire before I throw them into the pot. Toss everything into the pot and mix until it starts sticking."],"title":"Cooking Vol. IX","author":"Unknown","generation":1}}}}
execute if score random itemcount matches 10 run data modify entity @s Offers.Recipes append value {maxUses:1,buy:{id:emerald,count:12},sell:{id:written_book,components:{"minecraft:written_book_content":{"pages": ["        ________               /             \\             \\             /             /             \\            /               \\           |      /|         |           |    /  |  |\\     |           | /| |   \\/  \\   |           \\| \\| /\\     |/|/            |   /   \\/\\  |              \\  |        | /                                          Cooking Vol. X             Gold Berries    ","Gold berries are a very rare fruit from the mythical golden tree. When eaten by itself, gold berries gives you a boost to all parts of your body. I managed to gain some through networking and wanted to try working it into a dish.","I never felt better in my life after eating it! After a moment, the feeling went away but not completely. There is something special about these golden berries that permanently increases your overall stature. But after eating too much of it, I began feeling sick than ever before.","What you Need:           Cooking Pot               Raw Meat                  Bucket of Milk            Gold Berries                                          Ferment your gold berries in milk for a night. Then put the  meat in your pot with the berries. Let simmer for an hour, and then remove the berries.","Keep your gold sauce meals in moderation or you may end up feeling worse than before you started your power meals. I've also discovered any other golden fruit works as a substitute!"],"title":"Cooking Vol. X","author":"Unknown","generation":1}}}}