[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

    It isn't possible with the crafting manager.
     
  3. Suggestion:
    Add a percentage chance of results option for furnace recipes, and an optional variable.

    For example:
    I put an iron shovel in a furnace, I have a 50% chance of getting one iron ingot back.

    I put a iron chestplate in, I have:

    A 5% chance of getting 7-8 iron ingots back
    a 10% chance of getting 4-6
    a 20% chance of getting 1-4

    Etc.

    I'd love to see this option applied to the crafting bench, but it's way too easy to just pick the item back up off the bench.
     
  4. Offline

    Sleaker

    Why does the main post still have a Link to CookBook - which clearly states inactive? I think it even used to have a linkback to this thread at one point.
     
  5. I've started throwing this error recently, anyone have any idea why? I haven't noticed any drop in functionality, it just kinda twigs out on boot.


    Show Spoiler

    [SEVERE] Error occurred while enabling CustomCrafting v0.6 (Is it up to date?): null
    java.lang.NullPointerException
    at nickguletskii200.CustomCrafting.CustomCrafting.doFurnace(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 org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:358)
    at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:281)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:290)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:480)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:465)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  6. Offline

    Sleaker

    @Lunarius Haberdash - it means one of your furnace recipes has invalid syntax.

    @nickguletskii -

    it now encapsulates the recipe loading process with try/catches, which helps alert the user to what record is actually causing the issue, and also what portion of the recipe itself is erroring (to some extent) - hopefully you'll accept the pull so others have a bit easier time debugging their recipes when the plugin would normally just spit errors.

    EDIT: realized that the result ID and Name are a bit different - I'll change it a bit and reup the fix.
    EDIT2: Okay fulled fixed. it will dump something like this to the console if there's an error:
    Code:
    08:38:08 [SEVERE] [CustomCrafting] - error parsing Materials in recipe named: 267
    08:38:08 [INFO] [CustomCrafting] - 68 of 69 recipes were loaded successfully.
    08:38:08 [INFO] [CustomCrafting] - v0.6 by [nickguletskii200] enabled!
    Here's what the offending record looks like
    Code:
     #%Name: Slimeball
    267:
     Result: 341
     Quantity: 6
     Materials: {332: 7/0, 31: 1/0, 351: 1//2}
     DataValues: DerEchteNexus
     Type: Shapeless
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  7. Offline

    nickguletskii

    I closed the pull request because some of your changes removed the ability to see the actual reason of the error. I will do something like this later, but I'll make it more specific (e.g. handle casting exceptions differently). User friendly-ness isn't something of a priority to me, maybe I am just selfish...
     
  8. Offline

    Sleaker

    The issue is that currently it's nearly impossible to figure out what recipe is causing issues. So if you make a big list of recipes and load up, there really isn't a way to figure out which one is causing problems without re-adding them back in individually.
     
  9. Offline

    Celtic Minstrel

    This is a mistake in my opinion, but whatever.
     
  10. Offline

    nickguletskii

    Yep.
    I don't know, I blame it all on Rich Cook!
     

  11. So no then? ;)
     
  12. Offline

    Celtic Minstrel

    I think he has said no to at least some of those earlier in the thread.
     
  13. Offline

    nickguletskii

    Not possible with this setup.
     
  14. Thank you for the response, and how unfortunate.
     
  15. Offline

    Fuzzwolf

    Hi, I'm trying to disable the charcoal recipe on my server. I don't know how to actually disable the recipe as forcing air as an entity will crash the server. Instead, I made the log you put in the furnace pop back up as a result. The problem is that I need each type of log to return that same type (damage value for pine, birch, and oak). I'm pretty sure my configuration guarantees this, yet only normal logs and pine logs return their own logs. Birch turns into pine.
    Code:
    nocharcoalnormal:
      Result: 17
      ResultData: 0
      Quantity: 1
      Source: 17
      SourceData: 0
      Type: Furnace
    nocharcoalbirch:
      Result: 17
      ResultData: 2
      Quantity: 1
      Source: 17
      SourceData: 2
      Type: Furnace
    nocharcoalpine:
      Result: 17
      ResultData: 1
      Quantity: 1
      Source: 17
      SourceData: 1
      Type: Furnace
    doublestep:
      Result: 43
      Quantity: 1
      Materials: {44: 2}
      Type: Shapeless
      ResultDamage: 0
    I do not get any errors. I am running CraftBook 953 as well as CustomCrafting o.6. Did I do something wrong?
     
  16. Offline

    nickguletskii

    Eeeh, excuse me, but are you trying to transform something into itself?
     
  17. Offline

    Fuzzwolf

    Pretty much. Normally logs turn to charcoal when burnt, but I don't want this to happen. I don't think it's possible to actually disable this recipe (I tried putting 0 as the ID, it just crashed my client), so this is my work-around to get rid of charcoal.
     
  18. Offline

    Celtic Minstrel

    Disabling vanilla recipes will be possible, eventually. I started working on it a day or two ago, but ran into some trouble (which is why I didn't finish). Regarding your config, I'd honestly be surprised if those recipes don't actually transform all types of logs into the same type of log, since furnace recipes can't actually distinguish based on SourceData. Since SourceData is ignored, and furnace recipes are keyed by Source alone, those three recipes should end up getting conflated into one, which means the one that wins out is essentially arbitrary.
     
  19. Offline

    Ragor

    Please get off the text what says about cookbook! It was inactive, and update your custom recipe creator adding some new stuffs...:mad:
     
  20. Offline

    nickguletskii

    1) It doesn't harm anyone. I still want to credit fullwall.
    2) The recipe creator isn't mine. I might make my own...
     
  21. Offline

    IncendiaDrakon

    I have a couple questions, since I'm not able to try out this plugin right now...

    Now then, for example, could I have this plugin set so that users can smelt stone into lava? How about multiple pieces of coal into diamond?
     
  22. Offline

    nickguletskii

    Easily, but not multiple pieces.
     
  23. Offline

    IncendiaDrakon

    Ok, thanks. One more question, when crafting a cake, the bucket is preserved. Is there any way for your plugin to use this function?
     
  24. Offline

    Ind3X

    Is this plugin still working on build 1000 ?
     
  25. Offline

    nickguletskii

    I think the recipe manager does that automatically.
    STOP ASKING THIS AND READ BUKKIT'S CHANGELOG!
     
  26. Offline

    Celtic Minstrel

    Yes, it does. In fact, it's impossible to make a recipe that doesn't give the bucket back.
     
  27. Offline

    IncendiaDrakon

    Did Notch ever fix furnaces eating your lava bucket? lol
     
  28. Offline

    RugRats

    In the recipe maker does anyone know how to stack blocks like it takes 2 seeds and 1 cobble to make mossy cobble? i can only do 1 seed and one cobble I can't get 2 seeds..
     
  29. Offline

    Celtic Minstrel

    No, but there's a plugin called Lava Forge which does that.
     
  30. Offline

    killacalli

    i love how you explain every detail in the plugins config:D plugin works perfectly! Ps could you make it possible to modify the default craft settings?
     
  31. Offline

    nickguletskii

    Just because you asked so nicely, I am going to get chopping on an update! :D Maybe not today (a bit busy...)
     

Share This Page