[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

    fullwall

    Redownload for reload fix/default shapeless setting. There is an extra space on the second line?
     
  3. Offline

    Celtic Minstrel

    ...what do you mean?

    Actually, looking at it again, I just realized that the bottom right corner has the wrong number; that's probably why it didn't work. Sorry to bother you about that. <_<

    I can't believe I didn't think of this earlier, but is there a way to specify data values on the input for smelting recipes?

    Also, I wrote a Python script which reads your recipe files and outputs them as HTML. It can be found here. A sample output containing only the vanilla Minecraft recipes can be found here. (If anyone wants to take the time to verify that all the recipes are correct, it would be appreciated. :) )

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 10, 2016
  4. Offline

    fullwall

    No, the smelting recipe code in minecraft only takes an item ID as a parameter :S. How about python to generate all possible recipes of all possible data values? :p.
     
  5. Offline

    CyborgOne

    I tried your py-script for create the receips as html-output.
    After I've corrected the config-files (because of the new furnance-receipe-file) it seems to do his work fine :)

    But it doesn't understand the "@Shaped" or "@Shapeless" Tags.

    it throws:
    Code:
    Parsing crafting recipes in plugins/Cookbook/Cookbook.recipes...
    Warning: line '@Shaped' doesn't match in_pat (line 14)
    Warning: line '@Shaped' doesn't match in_pat (line 20)
    Warning: line '@Shaped' doesn't match in_pat (line 26)
    Warning: line '@Shaped' doesn't match in_pat (line 32)
    Warning: line '@Shapeless' doesn't match in_pat (line 38)
    Parsing smelting recipes in plugins/Cookbook/Cookbook.furnacerecipes...
    
    another error with the current version 1.2 found in my log:
    Code:
    12:23:35 [SCHWERWIEGEND] Could not pass event BLOCK_INTERACT to Cookbook
    java.lang.NoClassDefFoundError: com/fullwall/cookbook/WorkThread
            at com.fullwall.cookbook.Listen.onBlockInteract(Listen.java:26)
            at org.bukkit.plugin.java.JavaPluginLoader$23.execute(JavaPluginLoader.java:274)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
            at net.minecraft.server.BlockWorkbench.a(BlockWorkbench.java:35)
            at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:160)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:495)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.a(SourceFile:230)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    
    
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 10, 2016
  6. Offline

    fullwall

    You got a strange version of Cookbook :S. Try redownloading.
     
  7. Offline

    lorki3

    This would be cool for custom maps. Have some sort of puzzle with this.
    Haven't tried it yet, but it looks awesome.
     
  8. Offline

    Calvin

    So i'm going to use this plugin, like, ALOT, but I don't understand what the second set of 0's are for.


    I know these are for the recipe,
    |
    |
    V

    0,0,0,;0,0,0, <--those one right there, so far that I know they are always 0. Why are they there?
    0,0,0,;0,0,0,
    0,0,0,;0,0,0,

    EDIT: realized they are the data values for wool and such. GREAT IDEA :p
     
  9. Offline

    Celtic Minstrel

    Oh well, I was hoping.

    That would be rather easier than what I did already. :p

    Hehe, I had all the setup required to support them, but forgot to actually recognize them. If you re-download, it should work.
     
  10. Offline

    CyborgOne

    at first... thx for your fast support!

    ok, the error I posted above is now away after redownload, but now there is another :-D

    Code:
    18:12:04 [SCHWERWIEGEND] For input string: "17,0" loading Cookbook v1.2 (Is it up to date?)
    java.lang.NumberFormatException: For input string: "17,0"
            at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
            at java.lang.Integer.parseInt(Integer.java:458)
            at java.lang.Integer.valueOf(Integer.java:554)
            at com.fullwall.cookbook.Cookbook.populateFurnaceRecipes(Cookbook.java:413)
            at com.fullwall.cookbook.Cookbook.onEnable(Cookbook.java:55)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:92)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:70)
            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)
    
    the receipe which wouldn't work is this :
    Code:
    #~Charcoal
    #%{|
    17,0,
    263:1:0,
    #%||
    17,1,
    263:1:0,
    #%||
    17,2,
    263:1:0,
    #%|}
    
    
    whats wrong here?
     
  11. Offline

    DerEchteNexus

    @CyborgOne: Maybe you forgot the semi-colons and the @shapeless ;)

    It should look like this:

    #~Charcoal #%{|
    @Shapeless
    17,;0,
    263:1:0,
    #%||
    @Shapeless
    17,;1,
    263:1:0,
    #%||
    @Shapeless
    17,;2,
    263:1:0,
    #%|}
     
  12. Offline

    darkcammo

  13. Offline

    Celtic Minstrel

    DerEchteNexus is incorrect.

    The readme says this, but these three recipes are not valid for the actual plugin. They're only their for illustration. The Cookbook-compatible version would be:
    Code:
    17,
    263:1:0,
    However, that recipe is built-in, so there's not much reason to use it. The recipe files I included in that zip are not meant to be used by Cookbook since they only contain the built-in recipes. I included them so that, if you wanted, you could use the python script to generate a file containing both the built-in recipes and your own custom recipes.
     
  14. Offline

    DerEchteNexus

    Yeah, i think i was a little bit confused while i wrote my last post, my mistake :p
     
  15. Offline

    minecraftworlds

    Got to say. NERDGASM!
    All of the players on my server love being able to craft ice and flint. Thank you!
     
  16. Offline

    wolves

    Permissions support!!!!!
     
  17. Offline

    fullwall

    Permissions... really? XD.
     
  18. Offline

    Sphax

    Would it be possible to create the client mod to let the players see the result of the craft ?
    That would be great. :)

    Great work, I love your mod (it's my favorite one).
     
  19. Offline

    fullwall

    Maybe :p. We'll see XD.

    Client mod incoming - will be working on it tomorrow. Only thing is... it'll break compatibility with the worldedit client-side mod. Apart from that... should work well :).

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 10, 2016
  20. Offline

    Sphax

    GREAT ! Thanks a lot (again).
    For me it doesn't matter that it breaks Worldedit (I don't use it). :p

    @Celtic Minstrel : I like a lot your Python script. I use it a lot to verify my recipes. However, the "@Shapeless" and "@Shaped" don't seem to work correctly. For example if I set this recipes :
    Code:
    #~Plants
    #!Seeds from Wheat
    @Shapeless
    0,0,0,;0,0,0,
    0,296,0,;0,0,0,
    0,0,0,;0,0,0,
    295:3:0,
    The "@Shapeless" is not added in the HTML output and a warning is output in the console.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 10, 2016
  21. Offline

    Celtic Minstrel

    a) The way I wrote it, it should say nothing if it's shapeless, and "Shaped" if it's shaped.

    b) If it writes an error message to the console about the @Shapeless... that could be a bug. I thought I fixed it, but I'll take another look later, when I get home.

    c) Just to verify, if you change it to @Shaped, does it mention that in the HTML output?
     
  22. Offline

    Sphax

    A) in the html, it always says "@Shaped"

    B) it's a warning about something wrong in the in_pad. I'll quote the exact warning

    C) if I mention @Shaped or @Shapeless, it's mentionnée "Shaped" in the html
     
  23. Offline

    Celtic Minstrel

    Oh wait, it says "Shaped" no matter whether you have @Shaped or @Shapeless? That's a useful clue.


    I'm guessing you don't have "default=shapeless" anywhere in your recipes file? (Don't try adding it, this is just a question.)
     
  24. Offline

    D3c0de

    alright, I just installed this plugin and tried to create a recipe though it did not work, I do not know why, and after I have tried when I exit the workbench I cannot do anything, try to relogg but cannot connect so I have to restart the server and then it has reseted the server to the moment before I used the work bench, there is no error code except the one with workbench that is not serious. Anyone know what is wrong?

    SOLVED

    Sorry just figured it out just a few mins after this post
    for some reason I had done some weird setting. anyway I solved it

    # Redstone - Glowstone
    @Shapeless
    331,331,0,;0,0,0,
    331,331,0,;0,0,0,
    0,0,0,;0,0,0,
    89:1:0,

    it is a 2x2 with redstone that make glowstone
     
  25. Offline

    Celtic Minstrel

    You might also want to change it to @Shapeless, unless you want it to fail when you put the redstone in the bottom right four blocks instead of the top left four.
     
    D3c0de likes this.
  26. Offline

    D3c0de

    Thanks for the sugestion mate, I didn't know what the @Shape and @Shapeless did, I was rather confused with that so I just wrote @Shape
     
  27. Offline

    fatJesus

    Code:
    15:46:29 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'cookbook' in plugin Cookbook v1.2
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:183)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:619)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:582)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:576)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:230)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
            at java.util.ArrayList.RangeCheck(ArrayList.java:547)
            at java.util.ArrayList.get(ArrayList.java:322)
            at com.fullwall.cookbook.Cookbook.displayRecipes(Cookbook.java:231)
            at com.fullwall.cookbook.Cookbook.onCommand(Cookbook.java:97)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    
    [​IMG]

    What did I do wrong?
     
  28. Offline

    Sphax

    Yes and you are guessing right. :)
    There is "default=shaped" in the beginning of the file.
     
  29. Offline

    felix11111

    A really cool plugin! I like it. :D
     
  30. Offline

    DerEchteNexus

  31. Offline

    Serialk

    I get this bug when loading (with all of your versions) :

    Code:
    java.lang.ArrayIndexOutOfBoundsException: 2
    at com.fullwall.cookbook.Cookbook.populateRecipes(Cookbook.java:434)
    at com.fullwall.cookbook.Cookbook.onEnable(Cookbook.java:58)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:92)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:70)
    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)
    
    I run this :
    [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-544-g6c6c30a-b556jnks (MC: 1.3)
     

Share This Page