[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

    Sphax

    OK.
    So for :
    - shapeless recipes, that will : "Materials: {35/3,35/10}" for green wool and blue wool.
    - shaped recipes : "Shape: [35/3,35/10][0,0]"
    - furnace recipes : "Source: 35/3"

    And if the "/..." is not specified, you confirm the recipe will use all the variants ?
    And how will we be able to use any damage for an item ? syntax ? "/X" ?

    thanks :)
     
  3. Offline

    nickguletskii

    Nope. More like
    - shapeless recipes, that will : "Materials: {35/3,35/10}" for green wool and blue wool.
    - shaped recipes :
    Code:
      Shape:  - [351/1, 3/0, 1/0]
      - [3/0, 2/0, 0/0]
    (so like this: first row: red dye, dirt, rock; second row: dirt, grass)
    - furnace recipes :
    Code:
    Source: 35
    SourceData: 3
    (Note, code tags ate some indentation)[/CODE][/CODE]
     
  4. Offline

    RustyDagger

    This seems neat but it needs a little better explanation With the data values.

    Because what you said before confused the F*** out of me and I dont regard my self as stupid.
     
  5. Offline

    Sphax

    The "/0" is optional isn't it ?
     
  6. Offline

    nickguletskii

    If you have data values anywhere, /0 is needed everywhere else.
     
  7. Offline

    Sphax

    Ok, so how Will we be able to specify any data for an ingredient ?
     
  8. Offline

    nickguletskii

    I already showed you...
     
  9. Offline

    Sphax

    Sorry, I've mis-explained m'y last question. I mean since we must specify a data value for each ingredient if one of them has one, what is the syntax to specify "all data values" for an ingredient ? For example it could be "/X" which would corresponds to /0-255...
    Don't know if you see what I mean... :s
     
  10. Offline

    nickguletskii

    The crafting manager only supports absolute values.

    http://forums.bukkit.org/threads/request-saying-its-broke-doesnt-help-solve-the-issue.839/

    PLEASE read the thread. -_-

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

    marcus

    It doesnt help! ........ lol jk, but ima see what the error is, brb
     
  12. Offline

    ShadowDrakken

    *deletes post* ignore me, lol...

    you REALLY need to put in your originally post that this plugin doesn't work on the recommended build, since recommended build is what everyone is supposed to work off :p ;)

    ok updated to CB748 (also tried 755, but got the same result)

    I'm getting this error when I try to run CB:
    Code:
    19:06:22 [INFO]        Loaded CustomCrafting by nickguletskii200.
    19:06:22 [SEVERE]        Index: 1, Size: 1 loading CustomCrafting v0.3 (Is it up to date?)
    java.lang.IndexOutOfBoundsException:        Index: 1, Size: 1
    at        java.util.ArrayList.RangeCheck(Unknown Source)
    at        java.util.ArrayList.get(Unknown Source)
    at        nickguletskii200.CustomCrafting.CustomCrafting.doShaped(Unknown Source)
    at        nickguletskii200.CustomCrafting.CustomCrafting.onEnable(Unknown Source)
    at        org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    at        org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:670)
    at        org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:234)
    at        org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:130)
    at        org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:108)
    at        net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
    at        net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
    at        net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
    at        net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
    at        net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    and my recipelist.yml is:
    Code:
    #Each recipe has a unique id.
    
    # 8x GOLD_INGOT (266) + 1x REDSTONE_WIRE (55) = 1x GLOWSTONE (89)
    89:
      Shape:
      - [266, 266, 266]
      - [266, 55, 266]
      - [266, 266, 266]
      Result: 89
      Quantity: 1
      Type: Shaped
    
    # 8x COBBLESTONE (4) + 1x BONE_MEAL (351/15) = 1x NETHERRACK (87)
    87:
      Shape:
      - [4/0, 4/0, 4/0]
      - [4/0, 351/15, 4/0]
      - [4/0, 4/0, 4/0]
      Result: 87
      Quantity: 1
      Type: Shaped
      DataValues: true
    
    # 1x COBBLESTONE (4) + 1x BONE_MEAL (351/15) = 1x MOSSY_COBBLESTONE (48)
    48:
      Shape:
      - [351/15]
      - [4/0]
      Result: 48
      Quantity: 1
      Type: Shaped
      DataValues: true
    
    do I have things correct, or what am I missing here?

    did some experimenting and it seems to be something connected to the use of cobblestone [4/0] or other blocks with no data values

    if I just use 351/15 it works fine, but if i use 351/15 and 4/0 on same or different rows it generates that error... I tried it as just 4 without the /0 as well and it still generates the error

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

    nickguletskii

    @ShadowDrakken Fixed. Redownload. Forgot to rotate the 2d arraylist first!
     
  14. Offline

    ShadowDrakken

    excellent, confirmed working with my config :)
     
  15. Offline

    MrMagical

    Any reason this recipe wouldn't work?
    I put regular wood in, get regular wood back out.
    Code:
    #2 regular wood to 2 birch wood
    1017:
      Type: Shapeless
      Materials: {17: 2/0}
      DataValues: true
      Result: 17
      ResultData: 2
     
  16. Offline

    nickguletskii

    That is because there is already a recipe for 1 wood.
     
  17. Offline

    MrMagical

    But it uses 2 wood? :eek:
    What I'm trying to do is make a recipe which turns regular wood log blocks into birch wood by changing the data value.
     
  18. Offline

    nickguletskii

    Ooooh, didn't notice that... Hmm, might be because the Minecraft's crafting manager doesn't like item being used to create itself (but with a different data value)...

    EDIT: Found ye problem! You forgot quantity!
     
  19. Offline

    Kloporte

    Your plugin is great !
    Correct me if i have wrong but, at this point, to make repair recipe, it's only cover on value of damage per recipe right ?
     
  20. Offline

    RustyDagger

    What this plugin needs is a Value That can be used That represents all the data values.

    I know the manager only accepts full numbers not number ranges. But still it could be done plugin side so that it makes all the combinations then sends them to the manager. Even if it auto fills the File its self So say i set it like.

    Shape: - [4/0, 4/0, 4/0] - [4/0, 351/0-15, 4/0] - [4/0, 4/0, 4/0] Result: 87 Quantity: 1 Type: Shaped DataValues: true

    Would then Make:

    Shape: - [4/0, 4/0, 4/0] - [4/0, 351/1, 4/0] - [4/0, 4/0, 4/0] Result: 87 Quantity: 1 Type: Shaped
    DataValues: true

    And

    Shape: - [4/0, 4/0, 4/0] - [4/0, 351/2, 4/0] - [4/0, 4/0, 4/0] Result: 87 Quantity: 1 Type: Shaped DataValues: true
    So on.
    And send it to the manager..
     
  21. Offline

    nickguletskii

    Damage is not supported in materials... Thanks to Celtic Ministrel for that. I am going to create my own crafting manager layer just for repair recipes.
     
  22. Offline

    fullwall

    Define not supported - try setting damage to -1 and it will be ignored.
     
  23. Offline

    nickguletskii

    Wow, thank you very much! Also added a link to your CookBook in the OP... Sorry for not doing research before writing this plugin... Terribly sorry...
     
  24. Offline

    fullwall

    There's no need to be. There can be two implementations of an idea, and I respect your work.
     
    ShadowDrakken likes this.
  25. Offline

    marcus

    Code:
    12:10:20 [ALLVARLIG] java.lang.String cannot be cast to java.lang.Integer loadin
    g CustomCrafting v0.3 (Is it up to date?)
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integ
    er
            at nickguletskii200.CustomCrafting.CustomCrafting.doShaped(Unknown Sourc
    e)
            at nickguletskii200.CustomCrafting.CustomCrafting.onEnable(Unknown Sourc
    e)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:670)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:234)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:127)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:105)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  26. Offline

    nickguletskii

    That means that you have a non-integer value where an integer should be. Please check your config file.
     
  27. Offline

    marcus

    What should i check for?
     
  28. Offline

    nickguletskii

    Something like 23e instead of 23. Basically, letters where numbers should be.
     
  29. Offline

    Deathly

    @nickguletskii

    Could it be, that you have something in the code to transform dirt to portals? Because there always appears a portal for a short time when I put dirt in (doesnt matter if i add a recipe for dirt or not)

    Please remove it, its annoying :D

    Otherwise.. great work :)
     
  30. Offline

    nickguletskii

    No...
     
  31. Offline

    Deathly

    Well.. then it must be bukkit :eek:
     

Share This Page