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

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

  1. Offline


    Mod Edit (Butkicker12): Removed link.

    CustomCrafting - a plugin that can be used for creating custom crafting recipes.
    Version: 0.6

    • Adds custom crafting recipes.
    • Adds custom furnace recipes.

    Recipe creator by @DerEchteNexus
    Installing & configuring:
    Extract into the plugins directory. Then read CustomCrafting/recipelist.yml for further instructions.
    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


    This plugin works differently. This isn't pseudo-crafting like cookbook, this is the real crafting manager.
  3. Offline


    why doesn't this recipe work?
     - [6, 6, 6]
     - [6, 6, 6]
     - [6, 6, 6]
     Result: 18
     Quantity: 1
  4. Offline


    Not all required values have been specified. Please read the examples.

    When your recipe doesn't depend on data values. Duuuuuuh.

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


    I don't really think it's fair to just tell people to read the examples (or that they can't read), when the examples are pretty vague and the YML file is set up in a way that's unintuitive compared to other plugins and the cookbook plugin that many of us are migrating over from. (For one of the data value nodes, you can input gibberish, and then you need to change the format of an earlier node, but for other nodes, you just put the value there? That's weird enough that a few extra examples might be helpful) It would also be useful if there was a clear explanation for what needs to be done to fix recipes made from the recipe generator.

    If I've never had a problem with understanding the config files for any other plugin (including cookbook) , and I read your examples 5 times and I still don't understand why my file isn't working, there's possibly a little bit of a problem, although it could just be that it's 6am.

    I think that if a couple of people uploaded example YML files that were perfectly set up and functional, with an array of recipes to work backwards from (basically, the way the cookbook page was set up), it might be a little easier to get through. A bit more clarity might not hurt either, if you want to get less people coming in with recipes that are blatantly doing it wrong.

    Either way, here's one of the several recipes I couldn't get to work. XD

    #%Name: Graphite
    Result: 351
    ResultDamage: 0
    Quantity: 1
    Materials: {263: 1/0}
    DataValues: DerEchteNexus
    Type: Shapeless
  7. Offline


    Cookbook used 'pseudo crafting' in lieu of the 'real' crafting manager to provide those extra features like removing the default recipes. It was quite possible to use the actual crafting manager class in fact, but I decided not to.
  8. Offline


    I don't understand the problem. I can't see what is unclear about the config file. I gave examples for all situations that I could think of.

    As for the recipe creator, naaah, I have just removed it from the OP. It only causes problems by adding unneeded nodes that break the recipes.

    #%Name: Graphite
     Result: 351
     Quantity: 1
     Materials: {263: 1}
     Type: Shapeless
    Yeah, I respect you for not being lazy and making your own manager.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 14, 2016
  9. For those looking an example recipelist.yml file, and what each recipe creates, I hope this will assist.
    This first link contains a recipelist.yml file - Shutdown your server, and replace the file in your plugins\CustomCrafting folder with this one. Make a backup of your own file first if you wish to keep what you already have.
    To see what each recipe does, the below link contains a wordpad or .rtf file, which almost any computer should be able to open.
    Anyone having problems with the links, please let me know.
    The order in which they appear in the yml file is the same as in the rtf file giving the descriptions
  10. Offline


    I have no doubt that every bit of information needed to eventually figure out what's causing the problems is in there. I think maybe once I fully understand what bits need to be removed where and such, I can write a sort of "idiots guide to" file that makes things a little easier for people like me. <3

    Thanks for the fix to that, and thanks to the last guy for the recipe files. Those should solve my problem handily.
  11. The thanks should really go to this thread :

    Although this recipe creator does not always give a working recipe, its enough to put you on the right track.
    One of the things that stumped me for a short while is what was meant by 'Shaped' or 'Shapless'.
    'Shaped' is when a recipe HAS to to have the right blocks / Items in exactly the same positions as you created the recipe.
    'Shapeless' is where if the recipe requires 4 bones and 1 iron ingot, then as long as 4 bones and 1 iron ingot are put in the crafting squares, then it doesn't matter which of the crafting squares they go in. Obvious once you get it, but it took me a few mins to work that one out !
  12. Offline


    A few recipes I added to my server

      - [287, 0, 287]
      - [0, 287, 0]
      - [287, 0, 287]
      Result: 30
      Quantity: 1
      - [326, 326, 326]
      - [326, 80, 326]
      - [326, 326, 326]
      Result: 79
      Quantity: 8
    Mossy cobblestone:
      - [4, 4, 4]
      - [4, 326, 4]
      - [4, 4, 4]
      Result: 48
      Quantity: 4
    Yes, I am aware that the mossy stone is a bit expensive (8 cobble and 1 water for 4 mossy)
  13. Offline


    @nickguletskii Could you add a feature that would allow CustomCrafting to override default recipes? Fullwall tells me that Cookbook was capable of this but it's no longer being maintained, and aPunch mentioned it should be possible for a setRecipe method in ItemStack to change a default recipe.

    My dilemma is I want iron/diamond/gold blocks to be possible to create with just 4 ingots rather than 9, similar to the recent changes Notch made where you can make wool with 4 string instead of 9. However, iron/diamond/gold block break down into 9 ingots, which is what I need to override.
  14. Offline


    There is no such method as "setRecipe". No, if it doesn't work now, it isn't going to work.
  15. Offline


    http://pastebin.com/L8qbhkjh my recipelist

    my error

    18:34:05 [SEVERE] Error occurred while enabling CustomCrafting v0.5 (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:125)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:799)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:140)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Last edited by a moderator: May 14, 2016
  16. Offline


    replace with
  17. Offline


  18. or .......
    Completed & tested.
    Although I've no idea what you are trying to achive with converting 9 furnaces into 1 furnace ? You don't end up with a burning furnace if thats what you are after ? or at least, I didn't
  19. Offline


    No! No! NO! Do NOT use this version! You will find the reason in the previous posts.
  20. About the datavalues ? .... Yes, I've read them, but the list works, what would be the problem with using it please ?
  21. Offline


    If you have tested it and it works, then okay.
  22. Thanks ........ I thought there may be some other problem I've overlooked, since I've generated a different list for myself. I keep an eye on the datavalue thing, and so far, I've been able to generate usable lists, but thanks again for the clarification.
  23. Offline


    Tracked back the problem. Fixing.
  24. Offline


    Recipe Creator should be fixed also.
    If there are any other issues, just tell me ;)
  25. Offline


    Probably fixed the shaped recipes :D

    EDIT: Done.
  26. Offline


    Download link doesn't seem to work, atleast not for me. :/

    Edit, nvm, a friend sent it too me, seemed it worked for him atleast. :)
  27. Offline


    First off, thank you for this plugin and the time you spend keeping it updated. Philospher's Box became inactive and while looking for some semblance of a replacement, I found CustomCrafting. I'm glad Philo Box stopped getting updated, as I am not sure that I would have found this great plugin otherwise!

    I am having an issue with getting my recipes to load. It gave me a message that stated I could not have more than 9 ingredients in a shapeless recipe in my server startup. I have included the recipe file in the pastebin below. If anyone can see the error, I'd appreciate if they would point it out. I've read the previous examples and I'm not sure what could be wrong with these.


    Thank you for your time.
  28. Offline


    That is because the crafting bench is 3x3, meaning there are only 9 slots.
      Result: 264
      Quantity: 1
      Materials: {327: 1, 289: 32, 353: 32, 49: 5}
      Type: Shapeless
    You are trying to use 70 slots here.
  29. Offline


    Thank you for the response!

    I entirely misunderstood the quantity holder then. I assumed I could code stacks in there, due to the quantity functionality after the colon. Clearly, the data place-holder is for sub-type data values for items. If that number after the colon is not for a multiple of something to be put in one slot, I am not sure I understand what it is for. Can I use a different "Type" to stack items successfully? Apologies if I am missing something obvious.
  30. Offline

    Celtic Minstrel

    I think it's so that instead of saying {327: 1, 327: 1, 327:1} when you want three of whatever 327 is (in different slots), you can just say {327: 3}.
  31. Offline


    Fair enough! Thank you for the response Celtic. I'm sure asking for stacking materials in recipes is unreasonable, as I assume its a major reach in coding to defy the parameters by which every recipe is made. That being said, thank you for keeping this up to date for us Nick! Furthermore, if you ever do happen to figure out how to stack items in recipes, it would be amazing! :D

Share This Page