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.
Ah, I'm not surprised about the view interface; it's a work in progress after all.
As for stone bricks, what happens if you make a furnace recipe with them? Do you get errors on startup? When you try to smelt it, does the smelting not start at all, or does it complete but give no result, or something else?
@Celtic_Minstrel
The changelog said something like "recipe view interface" which can be opened with a book by rightclicking the workbench? Seems like that's not working. And by "does not work to be used in furnaces" I mean these stone-bricks cannot be smelted in the furnaces. I don't know why, but CustomCrafting has the same problem. I don't know where that comes from. There's nothing in the log/console either.
Bah, I really thought I fixed that. Okay, I'll need to look into it again then, which means it might be awhile (I don't really have time this weekend).
What do you mean by "does not work to be used in furnaces"? And what do you mean by "the book doesn't work either"?
Downloaded the latest version (0.5 (alpha)) + CB #1337 and added this recipe:
It only works with an 276 (diamondpickaxe) which has no damagevalue (is unused). Please find a way to fix that. By the way the book doesn't work either. Also smooth-brick/brick-stone (98) does not work to be used in furnaces, a fix would be cool.
Thank you for updating.
Thank you for updating soooo much hugs
...uh what.
Oh. I see. It's supposed to support -1, but I managed to exclude that possibility somehow. :( Sorry about that. I'll get a fixed version as soon as possible.
I use -1 to repair shears but it doesn't work. [Cookbook] Loading recipes.cb: Invalid data -1 on line 13; defaulting to 0
I wrote recipes.cb @Shapeless Shears/-1 , 265 -> 1x Shears
What should I do?
@Celtic_Minstrel
cool thanks :)
Ah, I see. You should be able to fix that by uninstalling Spout, but I guess I'll look at getting an update out by the weekend.
Can you update it to the latest build or something because I keep getting this error since I upgraded craftbukkit 2011-10-12 20:03:51 [SEVERE] Error occurred while enabling Cookbook v0.3 (Is it up to date?): null java.lang.NullPointerException at org.getspout.spout.inventory.SimpleMaterialManager.setItemName(SimpleMaterialManager.java:98) at org.getspout.spout.inventory.SimpleItemManager.setItemName(SimpleItemManager.java:145) at org.getspout.spout.inventory.SimpleItemManager.setItemName(SimpleItemManager.java:140) at ca.celticminstrel.cookbook.Cookbook.registerListeners(Cookbook.java:121) at ca.celticminstrel.cookbook.Cookbook.onEnable(Cookbook.java:73) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:170) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:957) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154) at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348) at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
thank you!
Yes; it's -1 instead of X though.
The old Cookbook offered the possibility to specify "X" for any data value so one could do repair recipes for broken tools. Is this possible with your Cookbook version?
It should work with 1.8.1 items.
@Celtic_Minstrel
yep I'm certain. Idk if you are but I'm glad it does that, makes it simpler. Does it work with 1.8.1 items?
Version numbers may look like decimals, but they aren't. They're a set of two or three integers (or sometimes even more). :)
Good idea since that's coming out soon, then again apparently 1.10 (isn't that 1.1 decimal wise?) and who knows how soon that's coming out, just asking cause this mod is a must for my servers.
I probably won't; I'll probably skip right to 1.9.
Love this mod because its one of those mods that let you tweak minecraft to your liking. Just wondering, any idea when you'll have it updated for 1.8.1?