Cookbook
Cookbook 1.2
A plugin to customize the recipes on your server to your liking. Currently it only allows to set recipes in the recipes.cb config file, but an in-game recipe creator is planned as well as recipe-based permissions.
Recipes are read from recipes.cb. The format is pretty intuitive; it is most easily explained by example.
# The # symbol indicates that the rest of the line is a comment @Shaped dirt dirt # An up to 3x3 grid of the ingredients, with air for empty slots. 0 3 # ingredients can be specified by ID or name -> 2x IRON_INGOT # The format of the result is the same for all recipe types @Smelt Dirt -> 3x Wheat @Shapeless Apple, Bowl -> 1 Water-bucket # The x is optional @Smelt Redstone -> 6 ink-sack/3 # You can specify data-values anywhere except on smelting input @Smelt Bow -> 1 Bow ARROW_INFINITE=1 # You can add enchantments or other metadata like this.
For more details, see Recipe Format.
Configuration
The following keys are used from the config.yml in the Cookbook folder
- startup - Specifies how Cookbook should behave on startup. Valid values are "clear" (remove all vanilla recipes before adding the ones from recipes.cb), "reset" (reset to vanilla recipes before adding your custom recipes), and "compound" (just add your recipes). You could use this to suppress recipes from other plugins, or to completely redo the recipes Minecraft offers. Note that some vanilla recipes, such as fireworks, dyed leather armour, map copying, map zooming, and book copying, are impossible to reimplement using Cookbook, so consider this before deciding to use "clear".
- fix.soup-bowl - If true, Cookbook will give back the bowl if you use mushroom soup in a recipe.
- fix.glass-bottle - If true, Cookbook will give back the bottle if you use a potion in a recipe. Note that, if you set this to true and create recipes where potions are used as ingredients to craft other potions, you will get a free glass bottle each time a potion is crafted from a potion. So don't set it to true if you want recipes of that type.
- allow-high-enchants - If true, Cookbook will allow enchantments of higher than normal levels.
- allow-wrong-enchants - If true, Cookbook will allow enchantments on items that they don't normally apply to.
- generate-defaults-cb - If true, Cookbook will generate a defaults.cb before adding any recipes. After doing so, this flag will be set to false. Note that, due to Bukkit quirks, a few recipes in the resulting defaults.cb won't be accurate; generally the complicated things involving maps, leather armour, books, or fireworks. However, these recipes can't be replicated with Cookbook's capability anyway. Note also that if other plugins add custom recipes, these recipes may appear in the defaults.cb if they loaded before Cookbook.
List of item/block names || List of enchantment names
Note: This is not the original Cookbook by fullwall and is not even based on his code; it has been rewritten from scratch, but I liked the name and, since his has been inactive for a long time, decided to recycle it. If there is enough demand I may write a converter to convert fullwall's Cookbook format to my Cookbook format.
Version 1.1.2 provides support for recipes that produce fireworks or enchanted books. Using these (or any other complex item) as input to recipes is not supported though, and is unlikely to be in the near future.
Thanks (:
Well, this plugin's source has been updated and appears to compile fine against the latest dev build of CraftBukkit. I probably won't release the updated version until there's a beta CB, but the impatient can check out the source from here (see the Repository tab at the top of the page) and compile it themselves, if they like. (This also should answer the question @Scipione just posed. :) )
I haven't tested to see that it works as intended, though.
(By the way, still hoping for someone with lots of time on their hands to update defaults.cb; there are quite a lot of recipes missing from it now.)
Where to get the Source ?
Thanks (:
Hi, My config is blank. Can someone post the content of the config.yml? And are there Commands? Like reloading the recipe files. Are you able to slow down the smelting speed?
Thanks.
It's already open source.
Or maybe Open Source this so others can update/rebuild it.
I suppose I should at least rebuild this and post, in case of changed APIs or such... if you have an updated defaults.cb containing all the default Minecraft recipes, you can PM them to me (make sure to use
<<code>>
tags.)Celtic, our server has been waiting for so long for cookbook to update. Weve got nearly 8 thousand custom recipes waiting to go, and we have all 1.3 recipes completed. How do you want them sent to you?
We can send them in virtually any method you want. We just want your plugin back. XD
Any volunteers willing to add the new recipes to defaults.cb?
The recipe file is not YAML. If you have a null pointer exception, please post a ticket with the full error message including the stack trace.
I get a null pointer exception when running this plugin. When I got to a YAML parser, it tells me that the "@" symbol is not allowed...
When I take out the "@"symbol, CookBook tells me that there was unexpected data on like...every line.
@xclucky
Put the following line in your config file and it should prevent Cookbook from disabling your Tekkit recipes:
Cookbook will never suppress Minecraft default recipes unless you edit your config to tell it to, so no worries there.
@m_bibber
Thank you.
@xclucky
AFAIK data values are not supported for inputs of furnace recipes.
Is there something wrong with smelting stonebrick to cracked stone brick and vice versa?
03:21:18 [WARNING] [Cookbook] Loading recipes.cb: Missing furnace recipe on line 51.
03:21:18 [WARNING] [Cookbook] Loading recipes.cb: Unexpected data on line 51; skipping.
http://www.worldofclucky.net/errors/cookbook/recipes.cb
Also, I do not believe cookbook is compatible with tekkit servers. When I put CookBook on my tekkit server it disabled all of the tekkit-related crafting recipes.
This doesn't do anything to recipes that are already there unless you have "startup: clean" or "startup: reset" in your config file. It probably won't work with custom items and mod, though you're welcome to try and see.
Does this work with custom items and mods? I need a custom recipe plugin that works with Tekkit's custom items, and getting RecipeManager to work with it would require me to manually add all of Tekkit's added recipes to the plugin's recipe list.
Also, does this work with Minecraft 1.2's added recipes, or will I have to manually add those?
For all with the problem "startup: clear" won't work, it's "startup: clean" ;)
@TerraNetworkOrg
default.cb should be complete as of... I think 1.2.4 Minecraft? I don't recall whether it has the glowstone lamp, but it has everything prior to that. If you have an update to it, let me know.