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.
Hi all,
currently I'm running Spigot 1.10.2 with Cookbook v1.2 from Feb 19, 2014 and it's working flawlessly.
Could anybody change the text of 'Recent files' from CB 1.7.2-R0.3 to 1.10.x?
I've used Cookbook v1.2 also in older versions of Spigot (1.8/9) without any problems.
Currently there is only one error message shown in the logs during the server startup, but this doesn't break anything:
For the usage of Material Names in 1.10.2 see my comment in Pages/Recipe Format:
Thanks,
Pixtar
Current Spigot details
Is there any way you can give users the ability to specify fuels, and fuel usages? As well as have items kept after crafting? Similar to the bucket in cake.
please help me, the echantments doesn't work it only crafts the item
@Shapeless 279, 259 -> 1x 279 fire-aspect=1
@Shapeless 268, 372 -> 1x 268 loot-bonus-blocks=7
@Kertan0s I believe it's like this: @Shapeless 344, 352 -> 1x 383/51
(item id)/(data value)
i use the plugin on 1.7.2. Normal recipes wirhput Metadata/Entity IDs work fine I tried to add a spawnegg recipe: (should create skelettonspawnegg)
console tells me: "Metadata key 51 on line 19 is invalid." And it didnt worked. Can anyone tell me what i've done wrong ? Thx
can anyone upload 1.7.5 compatible version for me?
I don't know how to compile java thing. plz help!
@Celtic_Minstrel
they didnt, I updated it and re-compiled from your github so they do now for me :P
Depends. Do custom recipes work properly on 1.7.5? They should.
hi, can you update this to 1.7.5?
@deleted_10645961
It's released on github, see my signature! Has been for quite a long time.
@RSXdaLV
There's an include feature? *checks code* Oh wow! I totally forgot that existed! I'll go add that right now.
Document the include feature, because, being the flagship plugin for this feature (as far as I am aware), you should anticipate great sizes of recipes, some of which require a lot of editing. Basically - it is already in there. Make it known. @Include "description about @include"
So is it possible you could release the code cause I've been interested in making this able to cook so I just really want to see that part :).
It's been a whole day since I uploaded this, and it's not approved yet, so I'll post it here in case anyone wants to get it earlier. If anyone was waiting for a Cookbook update, there's one now and another one coming soon.
(Direct download link here.)
@jespertheend
What do you mean?
Is there any way I can craft name tags?
since you seem to be ignoring tickets. I think this happens when players use disguisecraft
2013-07-19 09:19:54 [SEVERE] Could not pass event PrepareItemCraftEvent to Cookbook v1.1.3 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:46) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463) at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callPreCraftEvent(CraftEventFactory.java:593) at net.minecraft.server.v1_6_R2.CraftingManager.craft(CraftingManager.java:293) at net.minecraft.server.v1_6_R2.EntitySheep.a(EntitySheep.java:206) at net.minecraft.server.v1_6_R2.EntitySheep.b(EntitySheep.java:173) at net.minecraft.server.v1_6_R2.EntitySheep.createChild(EntitySheep.java:223) at net.minecraft.server.v1_6_R2.PathfinderGoalBreed.g(PathfinderGoalBreed.java:69) at net.minecraft.server.v1_6_R2.PathfinderGoalBreed.e(PathfinderGoalBreed.java:45) at net.minecraft.server.v1_6_R2.PathfinderGoalSelector.a(PathfinderGoalSelector.java:104) at net.minecraft.server.v1_6_R2.EntityInsentient.bh(EntityInsentient.java:419) at net.minecraft.server.v1_6_R2.EntitySheep.bh(EntitySheep.java:41) at net.minecraft.server.v1_6_R2.EntityLiving.c(EntityLiving.java:1398) at net.minecraft.server.v1_6_R2.EntityInsentient.c(EntityInsentient.java:303) at net.minecraft.server.v1_6_R2.EntityAgeable.c(EntityAgeable.java:112) at net.minecraft.server.v1_6_R2.EntityAnimal.c(SourceFile:32) at net.minecraft.server.v1_6_R2.EntitySheep.c(EntitySheep.java:49) at net.minecraft.server.v1_6_R2.EntityLiving.l_(EntityLiving.java:1261) at net.minecraft.server.v1_6_R2.EntityInsentient.l_(EntityInsentient.java:147) at net.minecraft.server.v1_6_R2.World.entityJoinedWorld(World.java:1469) at net.minecraft.server.v1_6_R2.World.playerJoinedWorld(World.java:1444) at net.minecraft.server.v1_6_R2.World.tickEntities(World.java:1316) at net.minecraft.server.v1_6_R2.WorldServer.tickEntities(WorldServer.java:517) at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:571) at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:239) at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:481) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:413) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582) Caused by: java.lang.NullPointerException at net.minecraft.server.v1_6_R2.InventoryCrafting.getOwner(InventoryCrafting.java:45) at org.bukkit.craftbukkit.v1_6_R2.inventory.CraftInventory.getHolder(CraftInventory.java:461) at ca.celticminstrel.cookbook.RecipeListener.onPreCraft(RecipeListener.java:19) at sun.reflect.GeneratedMethodAccessor226.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 30 more
i ttink this plugin got abandonated :c
Is it possible to support recipes that use custom items from MoreMaterials or other custom item plugins? I'm currently using the "clear" setting, because I completely overhauled most recipes, but I want to customize even further, and was hoping to include recipes that use MM or other plugins.
@Celtic_Minstrel
can add this please? i really would like it, because im now enchanting manuelly the crafted swords :c
@Mr_x_socks
When I said "this is doable", I was referring to my ability to implement it. Sorry for the confusion.