[MISC] CustomCrafting V0.6- add custom crafting and furnace recipes [1060]

Discussion in 'Inactive/Unsupported Plugins' started by nickguletskii, May 2, 2011.

  1. Offline

    nickguletskii

    CUSTOMCRAFTING HAS A NEW HOME!
    Mod Edit (Butkicker12): Removed link.

    THIS PLUGIN WAS MADE BY ME BECAUSE I DIDN'T KNOW ABOUT COOKBOOK AT THE TIME! PLEASE CHECK OUT COOKBOOK BY FULLWALL!
    CREDIT GOES TO @Celtic Ministrel FOR MAKING A COOL RECIPE API!
    CustomCrafting - a plugin that can be used for creating custom crafting recipes.
    Version: 0.6

    Features:
    • Adds custom crafting recipes.
    • Adds custom furnace recipes.
    Download:

    Semi-Direct
    Source
    Recipe creator by @DerEchteNexus
    Installing & configuring:
    Extract into the plugins directory. Then read CustomCrafting/recipelist.yml for further instructions.
    Changelog:
    Version 0.6
    • Damned recipe manager! Fixed all those problems with data values and stuff.
    Version 0.5

    • Now unique recipe IDs can be strings. Thanks to @Celtic Ministrel for the idea!
    • 0.5_1 bugfixed
    Version 0.4


    • Fixed data and damage.
    Version 0.3


    • Added shapeless and furnace recipes.
    • Added data and damage.
    Version 0.2


    • Fixed spaces.
    Version 0.1


    • Released.
     
    moselekm, killacalli, Flipp and 3 others like this.
  2. Offline

    nickguletskii

    Are you using the latest version?
     
  3. Offline

    Soruyao

    I thought I was, but it could be there's been an update since the last time I tried working on this. I will try a fresh download and get back to you.

    Just tried it with a fresh download, still no dice. Pork from wheat and seeds and ink sacs from coal don't work while all repair recipes do.
     
  4. Offline

    BeerDone

    If you have the time, try switching off all the plugins but CustomCrafting. If then your recipe works, add your plugins back 5 by 5 until you fall onto the 5 which cause a problem, and filter em out till you find the one plugin which does.
    If the recipe STILL does not work... Well I guess it's a problem with the .yml then...
     
  5. Offline

    nickguletskii

    I don't think it is an issue with conflicts.
     
  6. Offline

    Soruyao

    *perplexed*

    Here's some more oddness.

    #%Name: RepairIH
    200:
    Result: 306
    Quantity: 1
    Materials: {306: 1/-1, 265: 3/0}
    DataValues: DerEchteNexus
    Type: Shapeless

    Does not work, while:

    #%Name: Repair IS
    211:
    Result: 267
    Quantity: 1
    Materials: {267: 1/-1, 265: 1/0}
    DataValues: DerEchteNexus
    Type: Shapeless

    Works perfectly, even though it's much further down in the file! In fact, the only recipes that do work are the string of tool repair recipes at the bottom of the file.
     
  7. Offline

    Janb

    @nickguletskii

    Hi, any way to have this work with permissions? I have an 'Artisan' class I'd like to have exclusively craft certain resources.
     
  8. Offline

    Celtic Minstrel

    Not possible in an efficient way. It needs inventory hooks to be done properly.
     
  9. Offline

    Celtic Minstrel

    Why is there no documentation of the config format in the opening post?
     
  10. Offline

    nickguletskii

    Because I am bad at making documentations and the config file contains examples that can be used as bases.
     
  11. Offline

    Celtic Minstrel

    Well then, maybe you could post some of the examples in the opening post?
     
  12. Offline

    nickguletskii

    Why? They are in the config file...
     
  13. Offline

    Celtic Minstrel

    So that people can see how to use it before downloading everything?
     
  14. Offline

    minechomp

    Dude why is rose red crafting into an axe????

    Come on be straight with me. Is this a joke?

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

    Celtic Minstrel

    ...did you just install the plugin without editing recipelist.yml? You need to put your recipes in that file, and if you don't edit it you get some rather odd default ones.
     
  16. Offline

    minechomp

    i edited and cleared the defaults
     
  17. Offline

    Celtic Minstrel

    So it's fixed then, right? Or if it's not, you need to restart the server.
     
  18. Offline

    h0us3cat

    Code:
    2011-07-01 16:58:27 [INFO] Loaded CustomCrafting by nickguletskii200.
    2011-07-01 16:58:27 [SEVERE] Error occurred while enabling CustomCrafting v0.6 (Is it up to date?): java.lang.String cannot be cast to java.lang.Integer
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
        at nickguletskii200.CustomCrafting.CustomCrafting.doShaped(Unknown Source)
        at nickguletskii200.CustomCrafting.CustomCrafting.onEnable(Unknown Source)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    With 1.7.2
     
  19. Offline

    Celtic Minstrel

    Might be an issue of not specifying the DataValues key. (Which shouldn't be necessary anyway, in my opinion. :/ )
     
  20. Offline

    nickguletskii

    You did something wrong in the config.
     
  21. Offline

    h0us3cat

    Could be the problem, I was using cookbook 1st but its dead for good now.
    Code:
    apple:
      Shape:
      - [0, 0, 0]
      - [6, 0, 0]
      - [3, 0, 0]
      Result: 260
      Quantity: 1
      type: shaped
    
    black wool coal:
      Shape:
      - [263, 0, 0]
      - [263, 0, 0]
      - [35, 0, 0]
      Result: 35/15
      Quantity: 1
      type: shaped
    
    black wool charcoal:
      Shape:
      - [263/1, 0, 0]
      - [263/1, 0, 0]
      - [35, 0, 0]
      Result: 35/15
      Quantity: 1
      type: shaped
    
    brown wool:
      Shape:
      - [0, 0, 0]
      - [88, 0, 0]
      - [35, 0, 0]
      Result: 35/12
      Quantity: 1
      type: shaped
    
    grass:
      Shape:
      - [59, 0, 0]
      - [59, 0, 0]
      - [3, 0, 0]
      Result: 2
      Quantity: 1
      type: shaped
    
    gray dye coal:
      Shape:
      - [0, 0, 0]
      - [0, 0, 0]
      - [263, 0, 351/15]
      Result: 15/8
      Quantity: 1
      type: shaped
    
    gray dye charcoal:
      Shape:
      - [0, 0, 0]
      - [0, 0, 0]
      - [263/1, 0, 351/15]
      Result: 15/8
      Quantity: 1
      type: shaped
    
    ice:
      Shape:
      - [0, 0, 0]
      - [80, 80, 0]
      - [80, 80, 0]
      Result: 79
      Quantity: 1
      type: shaped
    
    light gray dye coal:
      Shape:
      - [0, 0, 0]
      - [0, 0, 0]
      - [263, 351/15, 351/15]
      Result: 15/7
      Quantity: 1
      type: shaped
    
    light gray dye charcoal:
      Shape:
      - [0, 0, 0]
      - [0, 0, 0]
      - [263/1, 351/15, 351/15]
      Result: 15/7
      Quantity: 1
      type: shaped
    
    moss stone:
      Shape:
      - [0, 0, 0]
      - [81, 0, 0]
      - [4, 0, 0]
      Result: 48
      Quantity: 1
      type: shaped
    Here is a link to the recipes i want. (dutch site but images say enough)
    http://wiki.myminecraft.org/index.php/Recepten
     
  22. Offline

    Celtic Minstrel

    Add a DataValues: true to the recipes with a slash in the result. The plugin isn't yet smart enough to figure out on its own that you've included a data value there.
     
  23. Offline

    h0us3cat

    Like this?

    Code:
    apple:
      Shape:
      - [0, 0, 0]
      - [6, 0, 0]
      - [3, 0, 0]
      Result: 260
      Quantity: 1
      type: shaped
    
    black wool coal:
      Shape:
      - [263, 0, 0]
      - [263, 0, 0]
      - [35, 0, 0]
      Result: 35/15
      Quantity: 1
      type: shaped
      DataValues: true
    
    black wool charcoal:
      Shape:
      - [263/1, 0, 0]
      - [263/1, 0, 0]
      - [35, 0, 0]
      Result: 35/15
      Quantity: 1
      type: shaped
      DataValues: true
    
    brown wool:
      Shape:
      - [0, 0, 0]
      - [88, 0, 0]
      - [35, 0, 0]
      Result: 35/12
      Quantity: 1
      type: shaped
      DataValues: true
    
    grass:
      Shape:
      - [59, 0, 0]
      - [59, 0, 0]
      - [3, 0, 0]
      Result: 2
      Quantity: 1
      type: shaped
    
    gray dye coal:
      Shape:
      - [0, 0, 0]
      - [0, 0, 0]
      - [263, 0, 351/15]
      Result: 15/8
      Quantity: 1
      type: shaped
      DataValues: true
    
    gray dye charcoal:
      Shape:
      - [0, 0, 0]
      - [0, 0, 0]
      - [263/1, 0, 351/15]
      Result: 15/8
      Quantity: 1
      type: shaped
      DataValues: true
    
    ice:
      Shape:
      - [0, 0, 0]
      - [80, 80, 0]
      - [80, 80, 0]
      Result: 79
      Quantity: 1
      type: shaped
    
    light gray dye coal:
      Shape:
      - [0, 0, 0]
      - [0, 0, 0]
      - [263, 351/15, 351/15]
      Result: 15/7
      Quantity: 1
      type: shaped
      DataValues: true
    
    light gray dye charcoal:
      Shape:
      - [0, 0, 0]
      - [0, 0, 0]
      - [263/1, 351/15, 351/15]
      Result: 15/7
      Quantity: 1
      type: shaped
      DataValues: true
    
    moss stone:
      Shape:
      - [0, 0, 0]
      - [81, 0, 0]
      - [4, 0, 0]
      Result: 48
      Quantity: 1
      type: shaped
    I get the same error.
     
  24. Offline

    nickguletskii

    The examples clearly state that if you have data values in one node, ALL nodes should have them.

    Also, spaces are not allowed in keys.
     
  25. Offline

    h0us3cat

    The datavalues does nothing. When i add a / to a result i will get that error.

    Can you post a example with a / result?
    There is none in the example yml
     
  26. Offline

    nickguletskii

    There are thousands of mistakes in your config. Fix them yourself - the examples show what you can do.
     
  27. Offline

    h0us3cat

    o rly? I removed any other recipe...
    it has to do with the result /

    Code:
    blackwoolcoal:
      Shape:
      - [263/0, 0/0, 0/0]
      - [263/0, 0/0, 0/0]
      - [35/0, 0/0, 0/0]
      Result: 35/15
      Quantity: 1
      type: shaped
    same error

    Code:
    blackwoolcoal:
      Shape:
      - [263, 0, 0]
      - [263, 0, 0]
      - [35, 0, 0]
      Result: 35/15
      Quantity: 1
      type: shaped 
    same error

    Code:
    blackwoolcoal:
      Shape:
      - [263, 0, 0]
      - [263, 0, 0]
      - [35, 0, 0]
      Result: 35/15
      Quantity: 1
      type: shaped
      DataValues: true
    same error

    Code:
    blackwoolcoal:
      Shape:
      - [263/0, 0/0, 0/0]
      - [263/0, 0/0, 0/0]
      - [35/0, 0/0, 0/0]
      Result: 35/15
      Quantity: 1
      type: shaped
      DataValues: true
    same error

    Code:
     blackwoolcoal:
      Shape:
      - [263, 0, 0]
      - [263, 0, 0]
      - [35, 0, 0]
      Result: 35
      Quantity: 1
      type: shaped
    Works but not what i want.

    What can i test more???
    The example yml has no result with a / in it for the 2nd time...
     
  28. Offline

    nickguletskii

    THAT IS WHY YOU READ THE COMMENTS!!!
     
  29. Offline

    h0us3cat

    No need for caps mate, i did have read all 9 pages, nobody is using a result with a / .
     
  30. Offline

    nickguletskii

    EXACTLY!! BECAUSE THEY ACTUALLY DID READ THE EXAMPLES!

    I refuse to help people who refuse to listen.
     
  31. Offline

    h0us3cat

    There is no example for what i need...
     

Share This Page