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.
@Swang4004
The two with vines may not work because the vines in your inventory have a data value (there's a bug in Bukkit whereby they retain the data value they had when broken, which is based on the direction they were facing). Do they work with vines obtained from the /give command?
I have no idea why your third recipe does not work.
Please, fix the bug with the '-1' values!
Fantastic plugin!
@johndmc I get this too. I really need 'any' values!
Yay! 1.0 build
Ive got several recipes Ive made, several work great several don't. I cant for the life of me figure out why three in particular do not work.
#Cobble + vine = mossy cobble
@shapeless
4, 106
-> 1 48
#Stone Brick Block + vine = Mossy Brick Block
@shapeless
98, 106
-> 1 98/1
#Broken Record-11 for White Record
@Shapeless
2263 , gravel
-> 1 2266
Using v0.5 I am still having issues with /-1 data values:
2011-12-18 16:54:02 [WARNING] [Cookbook] Loading recipes.cb: Invalid data -1 on line 7; defaulting to 0.
I'm attempting to create simple repair recipes for tools, swords and armor. For example, 1 diamond + damaged diamond pick axe -> repaired diamond pick axe. I've tried both shaped and shapeless recipes and changing the order of items so the /-1 is not at the end of the line. Any idea for potential fixes other than waiting for a new version?
Thanks!
edit: Also, I've made sure to use a unique name for the recipes in case that causes any issues. Since it defaults to 0, I can create a diamond pick axe from 1 diamond and an UNdamaged diamond pick axe (which is useless of course), so the recipe is being read albeit incorrectly from my specs.
edit 2: I see now that you commented after v0.5 was released that you need to revisit the /-1 data value bug. Sorry for the repeat comment, will wait for an update. Thanks again.
Hopefully this (and all my plugins) will be updated by the end of the year. Not sure though.
Any plans for this to be updated in the near future?
@Celtic_Minstrel
Would be really great. I'm really interested in that and would love it so much ;P Tell me every news you get!
I'm not sure how that would work; my impression is that brewing stands are formulaic, which is say that the result is according to some general formula rather than looking up a set of recipes. But I can investigate a bit and see if I'm right.
@Celtic_Minstrel
Now as we got #4 for 1.9.5 could you maybe add brewing stands, too? Would be such a great idea and feature and make you much better than CustomCrafting (+ I would download it and use it from then on). I cannot wait for it if you're going to do it ;) Cya then.
@Hoot215
I'll respond to that in the ticket.
@Celtic_Minstrel
Also, this plugin seems to break UltraItem's crafting recipes. Is there a way around that, or can you maybe fix it?
Reload command will happen at some point probably.
Allowing values over 127 is currently impossible with Bukkit's API; this is one of the things that will be fixed when (if?) they pull in the second batch of my crafting changes.
This seems to be a great plugin, but do you think that you could enable crafting with data values over 127? Spout uses these a lot, and it would be awesome if you could use custom items and blocks in crafting recipes.
EDIT: Also maybe a reload command (Top priority)? That would be great. :)
I think that normally not specifying a damage value makes it default to a damage of 0; you need to explicitly specify the -1. The input for a furnace recipe is an exception, where you can't specify a damage value and it automatically accepts any damage. I may tweak this a little, not sure.
The GUI does currently require Spout, but once Bukkit gets inventory API it no longer will require Spout.
@Celtic_Minstrel
Wow... That really fixed my problem :) Can I also use the ID without damagevalue to use every value (like -1)? I'll test it and tell you if that worked :) Sadly it doesn't work... Thank god you're going to fix that. By the way: Is that GUI meant to be used with spout (because I don't have it)? I also find a way to make it work with CustomCrafting, so I'll keep using this one until you might add some new features which the other plugin doesn't offer (sorry). I still hope you're going to keep working :P
Hm, I likely didn't include support for damage values in the input of a furnace recipe since Minecraft just ignores them no matter what you do (though that's something I'd sort of like to see change sometime). If you do it like this, I bet it'll work:
I should probably make it accept data values anyway and just warn+ignore them. More intuitive.
@Celtic_Minstrel I know I'll help you developing by writing this, so it's a pleasure for me :) Here's the information: Furnace recipes, at all, seem to work. I got Redstone -> Glowstonedust in furnace which works great. I got this recipe here:
which should create 1 cracked stone brick in furnace, as you see. But it doesn't start at all. There's no error or anything, it simply doesn't start :D Other recipes with stone brick work, too. Like Seed above stone brick creates a mossy stone brick, so it's only a problem in furnaces what also appears in CustomCrafting...
Thank you very much for developing this great plugin, because it's so essential for me and it seems like customcrafting is not really updated anymore, so if you got the -1 damage value working I'll use your plugin from then on instead of customcrafting ;)
I hope that'll help you improving and working on it.