[INACTIVE][MECH] Cookbook v1.4.6 - The original custom recipes plugin. [953]

Discussion in 'Inactive/Unsupported Plugins' started by fullwall, Feb 25, 2011.

  1. Offline

    fullwall

    [​IMG]
    Craft your own recipes!

    Download latest version: v1.4.6, JAR Only

    An easy recipe creator (with GUI!), made by DerEchteNexus, is available here.
    An HTML recipe parser made by Celticminstrel is available here.

    Cookbook is the premier specialised plugin for custom crafting and smelting recipes. Craft gold bars from stone, diamonds from grass and much, much more! Cookbook allows the creation of recipes in an easy-to-understand recipes file - simply create the recipe, reload the plugin and you're done! Cookbook affects the crafting and smelting tables directly - no more workarounds or other weird methods. It can override the default recipes too - just copy the recipe and specify a custom result.

    Cookbook allows the customisation of the crafting recipes used in a workbench and smelting. Let's take for example the recipe for torches - a stick with oil on top. With Cookbook, I could make it so a stack of 35 torches were made if I put obisidan on top of said stick in the crafting area. I could make a 9x9 recipe of dirt blocks create diamond. If I wanted to smelt coal from saplings, I'd just specify that in the recipes file. In short, Cookbook allows the creation of workbench crafting and smelting recipes, completely user-configured, to give a specified resulting stack.

    Features:
    • Custom crafting recipes as specified in cookbook.recipes.
    • Custom smelting recipes as specified in cookbook.furnacerecipes.
    • Custom ids, results, data values and result amounts.
    • Displays result now.
    • Shapeless recipes, repair recipes.
    Using data ranges for repair recipes:
    In 1.4, the repair recipe feature was added. To use this, all you have to do is put 'X' as the damage value, and any data value for that item will be accepted as valid.
    Commands:
    Code:
    /cookbook reload - reloads recipes
    /cookbook recipes - displays a list of recipes.
    /cookbook recipe [number] (shapeless)- displays a specific recipe (or shapeless recipe).
    /cookbook frecipes - displays a list of furnace recipes.
    /cookbook frecipe [number] - displays a specific furnace recipe.
    These commands can be used in the console (remove the '/')
    Permissions:
    Code:
    cookbook.reload - gives access to /cookbook reload.
    cookbook.display.recipe - gives access to /cookbook recipe.
    cookbook.display.allrecipes - gives access to /cookbook recipes.
    cookbook.display.furnacerecipe - gives access to /cookbook frecipe.
    cookbook.display.allfurnacerecipes - gives access to /cookbook frecipes.
    Older versions (open)
    Changelog (open)

    • v1.4.6 - recipe glitch fix. Updated for 1.5.
    • v1.41 - unlimited ranged data values.
    • v1.4 - client mod no longer required.
    • v1.39 - fixed /cookbook recipe command.
    • v1.38 - bugfixes.
    • v1.35 - added API, cleaned up code (check RecipeManager out)
    • v1.3 - added support for client mod.
    • v1.2 - added furnace recipes.
    • v1.1 - added shapeless recipes, major bugfixes, added item data values, delay setting.
    • v1.05 - added commands, data value on results, bugfix.
    • v1.0 - initial release.
    Credits (open)
    This plugin would not have been possible without the huge help that Edward Hand was. Thank you for trawling through minecraft code, testing my glitchy code and being a sounding board for my wacky coding ideas. You were a huge help. Thanks to @SpaceManiac and @Celtic Minstrel for making me go back through the packet code to allow the results slot to be shown without a client mod.
    Configuration (open)
    Crafting recipes (open)
    To configure cookbook, open the cookbook.recipes file. Inside the file are a few custom recipes already configured, and you can change/add/delete them if you like. The way new ones are created is like so.
    A workbench is a 3x3 slot area, filled with air. To represent this in a file, we use a 3x3 grid of numbers, separated by commas. Each number represents the item id that would go into that slot on a crafting bench to produce your recipe. 0 is air (nothing). So, we get this:

    0,0,0,;0,0,0,
    0,0,0,;0,0,0,
    0,0,0,;0,0,0,
    4th line.

    The data values for each line are separated by the ';' - the first number on the right corresponds to the data value of the first item on the left. Note that 'X' is a valid data value, allowing any data value to be used in that square.

    The fourth line is the result (what you get when you have this configuration). It is formatted like so: the item id is on the left, the stack amount is in the middle, and the data value is on the far right. For example - to configure a stack of 64 sticks, I would put 280:64:0 on the fourth line. These four lines constitute a recipe.

    Let's do an example. I want to use a stick in the middle of the bench to get a stack of 24 apples.

    0,0,0,;0,0,0, - no sticks on this line
    0,280,0,;0,0,0, - a stick must be in the middle of this line
    0,0,0,;0,0,0, - no sticks on this line.
    260:24:0 - the result is a 24-stack of apples.

    See the included recipes file for information on Shapeless recipes. Use the @Shapeless identifier before a recipe to make it shapeless - for example
    @Shapeless
    0,0,0,;0,0,0,
    0,4,0,;0,0,0,
    0,0,0,;0,0,0,
    1:1:0
    Will make this recipe shapeless - stone can be placed anywhere to get the desired result.
    Furnace Recipes (open)
    Furnace recipes are a lot simpler thankfully :).
    Furnace recipes have two lines: the first line is for the ingredient, the second is for the result.
    The first line is simply the id of the ingredient used in smelting. The second line is separated into 3 sections by ':'s.

    The first section defines the id, the second the data value and the third the custom cooktime.
    Let's do an example - cobblestone to sand.

    4, -the ingredient is cobblestone.
    12:0:0 - results in sand, no data value, no change to cooktime.

    Pretty simple right? The cooktime value is used for extra customisation of the time it takes for one block to be smelted (the progress arrow's speed). Normally, this is incremented from 0 - 200, by 1 each time. In cookbook, you can add extra values onto this. Note the caveat: these will only change cooktime while the window is open.

    4,
    12:0:50 - the value of 50 results in SUPER FAST cooking.

    And that's it for furnace recipes. Negative values are possible, but will be capped at
    -0.999999... otherwise the recipe will never complete.
    User-Submitted recipes (open)
    Sphax's recipes (open)
    Sphax put them all in a handy pdf - http://dl.dropbox.com/u/16580692/cookbook_recipes_new.pdf.
    Mineaccount's recipes (open)
    Chanmail Helmet:

    4,4,4,;0,0,0,
    4,0,4,;0,0,0,
    0,0,0,;0,0,0,
    302:1:0,

    Chainmail Chestplate:

    4,0,4,;0,0,0,
    4,4,4,;0,0,0,
    4,4,4,;0,0,0,
    303:1:0,

    Chainmail Leggings

    4,4,4,;0,0,0,
    4,0,4,;0,0,0,
    4,0,4,;0,0,0,
    304:1:0,

    Chainmail Boots:

    0,0,0,;0,0,0,
    4,0,4,;0,0,0,
    4,0,4,;0,0,0,
    305:1:0,

    Sponge:

    348,348,348,;0,0,0,
    348,325,348,;0,0,0,
    348,348,348,;0,0,0,
    19:16:0,

    Saddle:

    334,334,334,;0,0,0,
    334,265,334,;0,0,0,
    0,265,0,;0,0,0,
    329:1:0,

    Snow:

    0,0,0,;0,0,0,
    332,332,332,;0,0,0,
    0,0,0,;0,0,0,
    78:3:0,

    Ice:

    20,20,20,;0,0,0,
    20,332,20,;0,0,0,
    20,20,20,;0,0,0,
    79:8:0,

    Apple:

    0,331,0,;0,0,0,
    331,353,331,;0,0,0,
    0,331,0,;0,0,0,
    260:1:0,

    Golden Apple:

    0,348,0,;0,0,0,
    348,353,348,;0,0,0,
    0,348,0,;0,0,0,
    322:1:0,

    Wool:

    288,288,288,;0,0,0,
    288,288,288,;0,0,0,
    288,288,288,;0,0,0,
    35:1:0,

    Leaves:

    295,295,295,;0,0,0,
    295,0,295,;0,0,0,
    295,295,295,;0,0,0,
    18:8:0,
    stolksdorf's repair recipes (open)
    #Wooden Weapons
    @Shapeless
    0,0,0,;0,0,0,
    0,5,0,;0,0,0,
    0,268,0,;0,X,0,
    268:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,5,0,;0,0,0,
    0,269,0,;0,X,0,
    269:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,5,0,;0,0,0,
    0,270,0,;0,X,0,
    270:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,5,0,;0,0,0,
    0,271,0,;0,X,0,
    271:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,5,0,;0,0,0,
    0,290,0,;0,X,0,
    290:1:0,

    #Stone Weapons
    @Shapeless
    0,0,0,;0,0,0,
    0,4,0,;0,0,0,
    0,272,0,;0,X,0,
    272:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,4,0,;0,0,0,
    0,273,0,;0,X,0,
    273:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,4,0,;0,0,0,
    0,274,0,;0,X,0,
    274:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,4,0,;0,0,0,
    0,275,0,;0,X,0,
    275:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,4,0,;0,0,0,
    0,291,0,;0,X,0,
    291:1:0,

    #Iron Weapons
    @Shapeless
    0,0,0,;0,0,0,
    0,265,0,;0,0,0,
    0,256,0,;0,X,0,
    256:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,265,0,;0,0,0,
    0,257,0,;0,X,0,
    257:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,265,0,;0,0,0,
    0,258,0,;0,X,0,
    258:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,265,0,;0,0,0,
    0,267,0,;0,X,0,
    267:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,265,0,;0,0,0,
    0,292,0,;0,X,0,
    292:1:0,

    #Diamond Weapons
    @Shapeless
    0,0,0,;0,0,0,
    0,264,0,;0,0,0,
    0,276,0,;0,X,0,
    276:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,264,0,;0,0,0,
    0,277,0,;0,X,0,
    277:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,264,0,;0,0,0,
    0,278,0,;0,X,0,
    278:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,264,0,;0,0,0,
    0,279,0,;0,X,0,
    279:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,264,0,;0,0,0,
    0,293,0,;0,X,0,
    293:1:0,

    #Gold Weapons
    @Shapeless
    0,0,0,;0,0,0,
    0,266,0,;0,0,0,
    0,283,0,;0,X,0,
    283:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,266,0,;0,0,0,
    0,284,0,;0,X,0,
    284:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,266,0,;0,0,0,
    0,285,0,;0,X,0,
    285:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,266,0,;0,0,0,
    0,286,0,;0,X,0,
    286:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,266,0,;0,0,0,
    0,294,0,;0,X,0,
    294:1:0,

    #Leather Armor
    @Shapeless
    0,0,0,;0,0,0,
    0,334,0,;0,0,0,
    0,298,0,;0,X,0,
    298:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,334,0,;0,0,0,
    0,299,0,;0,X,0,
    299:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,334,0,;0,0,0,
    0,300,0,;0,X,0,
    300:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,334,0,;0,0,0,
    0,301,0,;0,X,0,
    301:1:0,

    #Iron Armor
    @Shapeless
    0,0,0,;0,0,0,
    0,265,0,;0,0,0,
    0,306,0,;0,X,0,
    306:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,265,0,;0,0,0,
    0,307,0,;0,X,0,
    307:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,265,0,;0,0,0,
    0,308,0,;0,X,0,
    308:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,265,0,;0,0,0,
    0,309,0,;0,X,0,
    309:1:0,

    #Diamond Armor
    @Shapeless
    0,0,0,;0,0,0,
    0,264,0,;0,0,0,
    0,310,0,;0,X,0,
    310:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,264,0,;0,0,0,
    0,311,0,;0,X,0,
    311:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,264,0,;0,0,0,
    0,312,0,;0,X,0,
    312:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,264,0,;0,0,0,
    0,313,0,;0,X,0,
    313:1:0,

    #Gold Armor
    @Shapeless
    0,0,0,;0,0,0,
    0,266,0,;0,0,0,
    0,314,0,;0,X,0,
    314:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,266,0,;0,0,0,
    0,315,0,;0,X,0,
    315:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,266,0,;0,0,0,
    0,316,0,;0,X,0,
    316:1:0,
    @Shapeless
    0,0,0,;0,0,0,
    0,266,0,;0,0,0,
    0,317,0,;0,X,0,
    317:1:0,
    TZer0's alchemy (open)
    #Glowstone dust + Slime ball + iron tool/weapon = gold tool/weapon (requires the equipment to be in mint condition)
    @Shapeless
    0,348,0,;0,0,0,
    0,341,0,;0,0,0,
    0,257,0,;0,0,0,
    285:1:0,
    @Shapeless
    0,348,0,;0,0,0,
    0,341,0,;0,0,0,
    0,267,0,;0,0,0,
    283:1:0,
    @Shapeless
    0,348,0,;0,0,0,
    0,341,0,;0,0,0,
    0,256,0,;0,0,0,
    284:1:0,
    @Shapeless
    0,348,0,;0,0,0,
    0,341,0,;0,0,0,
    0,258,0,;0,0,0,
    286:1:0,
    # Sugar, sugar cane and Bucket of water to slimeball.
    @Shapeless
    0,332,0,;0,0,0,
    0,338,0,;0,0,0,
    0,326,0,;0,0,0,
    341:1:0,
    # 8xredstone + 1x egg to apple.
    @Shaped
    331,331,331,;0,0,0,
    331,344,331,;0,0,0,
    331,331,331,;0,0,0,
    260:1:0,
    # 8xglowstone + 1x apple to egg.
    @Shaped
    348,348,348,;0,0,0,
    348,260,348,;0,0,0,
    348,348,348,;0,0,0,
    344:1:0,
    #water + lava = obsidian
    @Shapeless
    0,0,0,;0,0,0,
    0,326,0,;0,0,0,
    0,327,0,;0,0,0,
    49:1:0,
    urakkia's recipes (open)
    [​IMG]

    @Shapeless 37,38,0,;0,0,0, 0,0,0,;0,0,0, 0,0,0,;0,0,0, 351:4:4,

    Grass Block
    Ever wanted a garden in your floating sky castle?
    [​IMG]

    Code:
    @Shapeless 295,0,0,;0,0,0, 3,0,0,;0,0,0, 0,0,0,;0,0,0, 2:1:0,

    Gravel
    Because it's hard to find sometimes.
    [​IMG]

    Code:
    @Shapeless 12,0,0,;0,0,0, 4,0,0,;0,0,0, 12,0,0,;0,0,0, 13:3:0,

    Snowblock
    Another use for sugarcane.
    [​IMG]

    Code:
    @Shapeless 353,0,0,;0,0,0, 353,0,0,;0,0,0, 326,0,0,;0,0,0, 80:2:0,

    Iceblock
    Now you can make ice castles!
    [​IMG]

    Code:
    @Shapeless 80,80,0,;0,0,0, 80,80,0,;0,0,0, 0,0,0,;0,0,0, 79:3:0,

    Snowblock, again
    And ice back to snow.
    [​IMG]

    Code:
    @Shapeless 79,0,0,;0,0,0, 79,0,0,;0,0,0, 79,0,0,;0,0,0, 80:4:0,

    Mobspawner
    Use creaturebox to make it spawn things other than invincible pigs.
    [​IMG]

    Code:
    352,42,352,;0,0,0, 42,327,42,;0,0,0, 352,42,352,;0,0,0, 52:1:0,

    Mossy Cobblestone
    I like keeping this rare.
    [​IMG]

    Code:
    352,352,352,;0,0,0, 295,4,295,;0,0,0, 295,295,295,;0,0,0, 48:1:0,

    Soul Sand
    Use pumpkins for the soul-chilling effect.
    [​IMG]

    Code:
    0,3,0,;0,0,0, 3,86,3,;0,0,0, 0,3,0,;0,0,0, 88:4:0,

    Celtic Minstrel's recipes (open)

    Code:
    # Redstone Ore @Shaped 331,001,331,;0,0,0, 001,331,001,;0,0,0, 331,001,331,;0,0,0, 73:1:0,  # Coal Ore @Shaped 263,001,263,;0,0,0, 001,263,001,;0,0,0, 263,001,263,;0,0,0, 16:1:0,  # Iron Ore @Shaped 265,001,265,;0,0,0, 001,265,001,;0,0,0, 265,001,265,;0,0,0, 15:1:0,  # Gold Ore @Shaped 266,001,266,;0,0,0, 001,266,001,;0,0,0, 266,001,266,;0,0,0, 14:1:0,  # Diamond Ore @Shaped 264,001,264,;0,0,0, 001,264,001,;0,0,0, 264,001,264,;0,0,0, 56:1:0,  # Lapis Lazuli Ore @Shaped 351,001,351,;4,0,4, 001,351,001,;0,4,0, 351,001,351,;4,0,4, 21:1:0,  # Wool to Sponge @Shaped 35,00,35,;0,0,0, 00,35,00,;0,0,0, 35,00,35,;0,0,0, 19:1:0,  # Gunpowder @Shaped 337,263,337,;0,0,0, 263,318,263,;0,0,0, 337,263,337,;0,0,0, 289:8:0,  # Gold Record @Shaped 000,331,000,;0,0,0, 331,322,331,;0,0,0, 000,331,000,;0,0,0, 2256:1:0,  # Green Record @Shaped 000,331,000,;0,0,0, 331,341,331,;0,0,0, 000,331,000,;0,0,0, 2257:1:0,  # Double Slabs <--> Slabs (repeat for each data value from 0 to 3) @Shapeless 00,00,00,;0,0,0, 00,44,00,;0,0,0, 00,44,00,;0,0,0, 43:1:0, @Shapeless 00,00,00,;0,0,0, 00,43,00,;0,1,0, 00,00,00,;0,0,0, 44:2:1,  # Placeable Snow @Shapeless 000,000,000,;0,0,0, 000,000,000,;0,0,0, 332,332,332,;0,0,0, 78:3:0,
    Sample screenshots:
    [​IMG] [​IMG] [​IMG] [​IMG]

    Yogoda's recipes (open)

    [​IMG]

    #redstone ore​
    @Shaped​
    331,4,331,;0,0,0,​
    4,331,4,;0,0,0,​
    331,4,331,;0,0,0,​
    73:1:0​
    [​IMG]

    #wool to string​
    @Shaped​
    0,0,35,;0,0,0,​
    35,35,35,;0,0,0,​
    35,0,0,;0,0,0,​
    287:1:0,​
    Em0srawk's recipes (open)
    #Stack porkchop 9 raw
    @Shaped
    319,319,319,;0,0,0,
    319,319,319,;0,0,0,
    319,319,319,;0,0,0,
    319:9:0,
    #Stack porkchop 4 raw

    @Shaped
    0,0,0,;0,0,0,
    0,319,319,;0,0,0,
    0,319,319,;0,0,0,
    319:4:0,
    #Stack porkchop 9 cooked

    @Shaped
    320,320,320,;0,0,0,
    320,320,320,;0,0,0,
    320,320,320,;0,0,0,
    320:9:0,
    #Stack porkchop 4 cooked

    @Shaped
    0,0,0,;0,0,0,
    0,320,320,;0,0,0,
    0,320,320,;0,0,0,
    320:4:0,

    Post suggestions, bugs and other questions in this thread. Enjoy :).
    Post your best recipes, and I'll put them in the spoiler.
     
    Arbenn, Neero, Flipp and 6 others like this.
  2. Offline

    Em0srawk

    Damn I was hoping that I would be able to make a simple repair-type recipe where for example you place an iron bar over an iron pickaxe (of any damage) and get a half-damaged iron pickaxe as a return... Anyway I'd just like to add that you're currently my favourite Bukkit mod developer! [​IMG]
     
  3. Offline

    fullwall

    That means a lot :). Thanks.
     
  4. Offline

    Em0srawk

    Also, I came up with some theoretical recipes that MIGHT work although I need to test them:
    #Stack porkchop 9 raw
    319,319,319,
    319,319,319,
    319,319,319,
    319:9,
    #Stack porkchop 4 raw
    0,0,0,
    0,319,319,
    0,319,319,
    319:4,
    #Stack porkchop 9 cooked
    320,320,320,
    320,320,320,
    320,320,320,
    320:9,
    #Stack porkchop 4 cooked
    0,0,0,
    0,320,320,
    0,320,320,
    320:4,
     
  5. Offline

    fullwall

    They won't - you need to do 320:4:0 (set for 0 data).
     
  6. Offline

    Em0srawk

    Ahh ok, then I'll just point out that the recipes in the OP (the suggested ones) won't work either. You've just saved me from a lot of future stress ^-^
    --- merged: Mar 4, 2011 2:45 PM ---
    Fixed them (it was really hard :p):
    #Stack porkchop 9 raw
    319,319,319,
    319,319,319,
    319,319,319,
    319:9:0,
    #Stack porkchop 4 raw
    0,0,0,
    0,319,319,
    0,319,319,
    319:4:0,
    #Stack porkchop 9 cooked
    320,320,320,
    320,320,320,
    320,320,320,
    320:9:0,
    #Stack porkchop 4 cooked
    0,0,0,
    0,320,320,
    0,320,320,
    320:4:0,
     
  7. Offline

    fullwall

  8. Offline

    Em0srawk

    Now I just hope they work or I'm going to look stupid :/
     
  9. Offline

    fullwall

    They'll work.
     
  10. Offline

    Em0srawk

    Aah! Good, good
    --- merged: Mar 4, 2011 5:02 PM ---
    Hmmm, it seems like it doesn't want to work for me. I'm using Bukkit build 492 and I tried one of my recipies (A line of redstone along the bottom to form 2 sulfur). When I clicked on the product square it froze and crashed, whenever I tried to join again it booted me and came up with the error: 'Internal server crash'. In order to resolve this I had to delete myself from the users data of the world (thereby getting rid of all the items in my inventory :( ). I probably did something wrong :p
     
  11. Offline

    rellish

    Hey fullwall your work is awesome but for some reason after trying to configure it i can't seem to get it to work with my server properly.

    I installed everything right (well i believe i did) i put the .jar file in the plugins folder and i configured the cookbook.recipe properly keeping in mind of the trailing commas. Now when i try it with my server i get no error and nothing gets crafted. Any idea?

    ps. if my .recipe file can help can i link megaupload links here? (im pretty new to these forums)
     
  12. Offline

    fullwall

    Hmmm... there may be a bug in the new release. I'll check it out. Post your recipe file if you can (copy paste?)
     
  13. Offline

    Em0srawk

    Do you think that the fact that my inventory was completely full when I crafted it was anything to do with it?
     
  14. Offline

    fullwall

    Can you try redownloading?
     
  15. Offline

    w0lv3r1n

    It would really be nice to have the option to set the required amount of a certain material for the recipe to work:
    2 Cobblestones = 1 Stone
    4:2,0,0,
    0,0,0,
    0,0,0,
    1:1:0,

    It would also be nice to have the option to set damage/extended info to the required materials. Maybe an * could mean any "damage" is accepted. This would be useful to repair tools/armors, bleach wool, etc... :
    1 diamond + 1 diamond sword(any damage) = 1 diamond sword (full condition)
    264:1:0,0,0,
    0,0,0,
    0,0,276:1:*,
    276:1:0,

    Lastly, would be nice to have recipes that doesn't require specific placement (like how you normally make torches):
    1 Flint + 1 stick = 4 Torches (can be placed anywhere on the grid, as long flint is on top of the stick)
    318:1:0,*,*,
    280:1:0,*,*,
    *,*,*,
    50:4:0,

    Of course, to top it all [​IMG] an external GUI recipe editor would be awesome. But that is probably outside the scope of this project.

    Keep up the good work! Plugins like this add a lot to the game.
     
  16. Offline

    fullwall

    Hmmm... the data thing is tough - minecraft only accepts 1 data value as the 'right' data value (will only trigger on one specific data value). However, I have implemented the shapeless recipes, just finding it tough to put that into the recipes file... do you think it'd be alright if all recipes were shapeless?
     
  17. Offline

    w0lv3r1n

    Personally, I like the fact you can have a shape to the recipe. Maybe there can be a header for each recipe where you can specify if the recipe can be shapeless or not? In the example below 0 would mean the recipe is shapeless, 1 means it has to have the shape of the recipe.

    @Four-Torches,0,
    318,0,0,
    280,0,0,
    0,0,0,
    50:4:0,
    @Cobblestone-To-Stone,1,
    4,0,0,
    0,0,0,
    0,0,0,
    1:1:0,
     
  18. Offline

    Brennan Mathers

    i love how if you miss EVEN 1 data value, the program blows up! Lol
    i have a large set of recipies if anyone wants, or if you want it fullwall
     
  19. Offline

    rellish

    Here are some of my recipes, btw i couldn't get it to work at version 1.0 either.

    #easy obisdian
    326,326,327,
    327,0,4,
    4,4,4,
    49:4:0,
    #grassblock
    0,6,0,
    3,3,3,
    0,6,0,
    2:3:0,
    #Netherrack
    48,48,48,
    48,0,331,
    331,331,331,
    87:4:0,
    #Redstone Ore
    4,4,4,
    4,0,331,
    331,331,331
    73:1:0,
    #Clay
    12,12,13,
    13,0,3,
    3,3,3,
    337:32:0,
    #soul sand
    12,12,12,
    12,0,3,
    3,3,3,
    88:40:0,
     
  20. Offline

    Sargeo

    Nice plugin but I cannot seem to get it to work. I am using latest craftbukkit recommended build 493 and Cookbook 1.05.
    I am using this config:
    Code:
    # Cookbook recipes file - define recipes here.
    # Author: fullwall
    # Recipes are defined like so - each group of numbers is a row on the crafting area.
    # EG: 0,0,0, is three air blocks on the top level of the crafting area.
    # Each number represents the type (ID) of the item in that slot.
    
    # The result is given on every fourth line (the one with a ':' in it).
    # The resulting item is formatted like so - resultID:resultAmount:resultDamage.
    # Result damage is the extra value used for some items, such as wool
    # Example: 35:1:14 gives you 1 red wool block. Leave it as 0 if you don't want the extra value set.
    
    # IMPORTANT: remember the trailing commas after each line!
    
    # Example recipe - apple to gold apple.
    0,0,0,
    0,260,0,
    0,0,0,
    322:1:0,
    # Next recipe - cobblestone to stone.
    0,0,0,
    0,4,0,
    0,0,0,
    1:1:0,
    # Final recipe - Lightstone to red wool.
    0,0,0,
    0,89,0,
    0,0,0,
    35:1:14,
    # Chainmail Recipe
    1,0,1,
    0,1,0,
    1,0,1,
    303:1:0,
    And it does not work.
    I also get this error when starting up the server:
    Code:
    13:57:23 [SEVERE] 2 loading Cookbook v1.05 (Is it up to date?)
    java.lang.ArrayIndexOutOfBoundsException: 2
            at com.fullwall.cookbook.Cookbook.populateRecipes(Cookbook.java:87)
            at com.fullwall.cookbook.Cookbook.onEnable(Cookbook.java:40)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:414)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:187)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  21. Offline

    fullwall

    Added shapeless recipes for those who asked. Everyone who had errors, try with the new version.
     
  22. Offline

    Ape3000

    CookBook 1.1 doesn't work with Bukkit 473. It works just like there wasn't this mod, except the server log says that it was loaded.
     
  23. Offline

    Celtic Minstrel

    I like the sound of this plugin, but I'm wondering... can you make 2x2 and 1x1 recipes as well? For example, take your sample in the first post:

    Code:
    0,0,0, - no sticks on this line
    0,280,0, - a stick must be in the middle of this line
    0,0,0, - no sticks on this line.
    260:24:0 - the result is a 24-stack of apples.
    Will this work no matter where you place the stick in the grid? Because I think it should; that's how the built-in recipes work, after all.

    The other thing is can you specify the required data value for the recipe? The opening post doesn't seem to mention a way to do this, though I notice several others have brought it up.
     
  24. Offline

    fullwall

    Take a look at shapeless recipes - they'll do what you're asking. Still working on specifying data values; just a matter of data reading.
     
  25. Offline

    Fuzzwolf

    Is it possible to disable pre-existing recipes/overwrite them?
     
  26. Offline

    fullwall

    I haven't tested - you'd have to test yourself. Possibly.
     
  27. Offline

    Fuzzwolf

    Wow, this actually works! You have no idea what this means for my server... thank you!
     
  28. Offline

    fullwall

    Try redownloading - http://dl.dropbox.com/u/6701575/Cookbook-1.1.rar - I was doing some testing, this is the working version.
    --- merged: Mar 6, 2011 9:09 AM ---
    Also - the latest version adds data values to recipe, as well as a delay option.
     
    Ryan Carretta likes this.
  29. Offline

    pat

    I HAVE A PROBLEM all recipes made with one block of dirt work, exept for the ones on the last column

    exemple
    # Next recipe - dirt to iron
    0,3,0,;0,0,0,
    0,0,0,;0,0,0, ------> that one works fine
    0,0,0,;0,0,0,
    255:64:0
    exemple
    # Next recipe - dirt to gold
    0,0,3,;0,0,0,
    0,0,0,;0,0,0, ------> that one dont work
    0,0,0,;0,0,0,
    256:64:0
    exemple
    # Next recipe - dirt to gold
    0,0,0,;0,0,0,
    0,0,3,;0,0,0, ------> that one dont work
    0,0,0,;0,0,0,
    256:64:0
    # Next recipe - dirt to gold
    0,0,0,;0,0,0,
    0,0,0,;0,0,0, ------> that one dont work
    0,0,3,;0,0,0,
    256:64:0

    Just tried moving recipes up the list changed what recipes work and dont work but general rule for now is recipe from left column is save has right column weird

    is there a max number of recipes? i dont have that much its acting weird, is it because i used all the one block combinations with dirt?
     
  30. Offline

    QQCucumber

    @pat You don't have a comma at the end of any of the fourth lines of your recipes.
     
  31. Offline

    speed415

    This plugin keeps breaking my server after i try and make a recipie
    Edit: Just read QQCUCUMBER's post i'll try that
    Edit2: Worked Thanks stupid comma!
     

Share This Page