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.
@Celtic_Minstrel
It says to me when i run my server with the enhancement of lvl 10
something like ¨Only natural enhancements defaulting to 5¨ wath do i need to change to raise the lvl? or it cant be do for now?
@Maddis1337
The default recipes file was intended to help people who want to make major changes to the game's recipes. It's... not as useful now that certain dynamic recipes exist (leather armour, map copying/expanding, fireworks). I may continue to provide it anyway, though; if nothing else, it could be used as an example.
@Mr_x_socks
This is doable.
Can i make recipes with an Enchantment that can go over the maxium?
I want to make a craft to an Obsidian sword and its very hard to get and i want to make it So powerfull
but with the max lvl of sharpness 5,it will not be so Impresive for the players Can you raise the max level at least 10?
1.5 default recipes?
EDIT: Ok, as I see it is not required! Thats great, but what is the default recipes file for anyway? For the spout feature?
@bearhockey
Unfortunately not, since brewing is implemented by formula rather than by recipe. If that ever changes though, I'll definitely add brewing recipe support.
I don't suppose you could easily add brewing recipes modification as well? Such an addition would bring this near-perfect plugin up to perfection.
Thanks Celtic_Minstrel!
Maybe just add a separate paragraph in the recipe format page specifically pointing out the fact that certain blocks require metadata in addition to the block ID in order to completely define the item, and that the metadata can be added to a block ID after a slash. This would make the example stand out more clearly.
Either way, this is the best custom recipe plugin I've found so far.
@goulet_am
Permissions have been planned for quite some time. That means they will be done... some time in the future. <_<
Reload command is actually something I could add very easily. Maybe I'll do that in the next few days.
Do you have a suggestion on how I could make the documentation more clear on how to use metadata?
Pretty fantastic, much easier to configure than similar custom recipe plugins. Really hope this stays updated, keep it up!
One thing though, the documentation could be a bit more clear; the method of adding metadata by following the item ID with a slash took me a few reads to notice. Also for some reason it returned an error when loading the plugin if the recipe.cb file started with a commented line such as shown in the example, which I had to remove.
Would be excellent if there was a console command to reload the recipe/config files without having to restart the server. And permissions, that would make this godly.
@Maddis1337
Pinging me here about a ticket isn't likely to make me deal with it any faster.
@Celtic: Please don't forget my ticket: http://dev.bukkit.org/server-mods/cookbook/tickets/22-custom-blocks-wont-get-keep-their-data-after-placing/
@Dylpickle98 It's on github: https://github.com/CelticMinstrel/Cookbook
Just wondering, is it possible to get just the source code for this plugin?
Looks like you fixed that error, but there's a new error I experience. Doesn't seem to impact anything, but I have a limited set of 4 crafting recipes and no smelting recipes. I'll throw it on a ticket this time.
Thanks for the update, man. I had ended up doing a custom build to fix one of the issues, but there was something I missed (I don't have a lot of experience with Java, specifically). I'll let you know if all goes well with 1.1.3.
Okay, thanks.
I Guess in the meanwhile all i'll do is change dying to other materials and disable it at the moment.
I might look for a plugin that disables certain recipes, If its open source i can message it to you.
Unless you want to disable maps, leather dying, and fireworks, there's no good way at the moment. Sorry.
However, it would be possible to add a way to remove recipes based on result. I may do this at some point.
Would it be possible to disable some default recipies? I added a very complex Forging system with Handles, Blades and poles and some of the items overlap, meaning i don't want it to be possible to craft a iron sword the normal way! I tried adding some of the combinations and setting the result as Air, but i have no luck!
Any way i could fix this?
Thanks!
@Maddis1337
File issue: My only idea is that I neglected to include the code to save on shutdown. If it's not that, I have no idea.
Sources: Yes, now on github.
Recipe name based permissions: I think there's some code for this, but I don't know whether it works; I don't even remember whether I tested it.
Randomization: Sorry, no chance. I already dislike the randomization of enchantments on enchanting tables; adding more randomization to the crafting process is out of the question for me.
@RealityIntern
Quick clarification: do these errors affect the running of the server, or are they simply annoyances?
@nphyxx
It looks like you're doing something wrong. According to this table, the canonical data value for a splash potion of harming is not 16396 but rather 16428. Try that and see if it works?
@RealityIntern
I am aware that an update is needed. Unless I get distracted again, you can expect it with a day.
Still needs an update to 1.4.7, specifically because of these lines in CraftingFixer.java:
Hi, apologies if this has already been mentioned. It looks like crafted potions and potions from the creative mode inventory don't work as recipe components. For example, I created the recipe:
@Shaped Creeper Egg
Spider_eye Leaves/-1 Spider_eye
Potion/16396 Egg Potion/16396
Sulphur Leaves/-1 Sulphur
-> 1x 383/50
This creates a creeper egg, as expected, if I obtain the potion through /i potion:16396, but if I brew splash potion of harming or pull it out of creative inventory it does not.
Is there something I'm doing wrong, or is this a mod bug/Bukkit bug/impossibility?