[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

    QQCucumber

    Sorry it took me so long to reply but I've been doing more research into the subject. Apparently it is possible, and someone named BR from #bukkitdev has actually made a plugin that can do it. He just hasn't published it on the forum yet. Anyway, he told me to point you to CraftingManager.a().b(), it's a list of recipes, and you can add and remove from it as you please. You can remove default recipes, which is what I'd like to be able to do with CustomCrafting.
     
  3. Offline

    nickguletskii

    I might... I might create my own recipe manager, but not right now. I have two plugins in queue.
    I know about this, I am not stupid. I will not do this because it isn't update-safe. I had enough trouble updating Spyer.
     
  4. Offline

    Hitman4Hire

    The link is broken?

    Chrome dosen't like it :X
     
  5. Offline

    nickguletskii

    Works for me. Using both chrome and wget.
     
  6. Offline

    Celtic Minstrel

    I expect API will be added for this eventually. All that's needed is a good way to do it.

    As for stacks in recipes, it goes against the design of the Minecraft crafting manager. It wouldn't be impossible to do, of course, if there were API to it or if you wrote your own crafting manager.
     
  7. Offline

    nickguletskii

    I might do it myself, but after I have released the other plugins waiting.
     
  8. Offline

    Taranis01

    Im trying to set it up, so that u have to place it like this:
    [air][water] (Air - Water )
    [glass][air] ( Snow - Air )
    But i can place the Water and the Snow everywhere i want :(
    Whats wrong?
    Code:
    #%Name: Ice
    211:
     Result: 79
     ResultDamage: 0
     Quantity: 1
     Shape:
      - [0/0, 8/0]
      - [80/0, 0/0]
     DataValues: DerEchteNexus
     Type: Shaped
     
  9. Offline

    nickguletskii

    What do you mean?
     
  10. Offline

    Taranis01

    i wanna add a crafting for Ice.
    imagine the workbench!
    [air] = Air (nothing)
    [glass] = Snow
    [water] = Water

    thats how it should work:
    [air][air][water]
    [air][glass][air] = Ice-block
    [air][air][air]
    or that way:
    [air][air][air]
    [air][water][air] = Ice-block
    [glass][air][air]
    or that way:
    [air][air][air]
    [air][air][water] = Ice-block
    [air][glass][air]

    but not (or something else):
    [air][glass][air]
    [air][air][air] = Ice-block
    [water][air][air]
     
  11. Offline

    nickguletskii

    And that is what it is doing.
     
  12. Offline

    Taranis01

    then something with this must be wrong, cuz it isnt doing that (customcrafting v0.6, no error).
    pls take a look:
    Code:
    #%Name: Ice
    211:
     Result: 79
     ResultDamage: 0
     Quantity: 1
     Shape:
      - [0/0, 8/0]
      - [80/0, 0/0]
     DataValues: DerEchteNexus
     Type: Shaped
    edit: i just restarted the server and got this error with CB#860 (never got an error by customcrafting before, but today was the first time i changed the recipelist.yml too)
    Code:
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:140)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:799)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
    at nickguletskii200.CustomCrafting.CustomCrafting.onEnable(Unknown Source)
    at nickguletskii200.CustomCrafting.CustomCrafting.doShaped(Unknown Source)
    at nickguletskii200.CustomCrafting.CustomCrafting.ids(Unknown Source)
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
    > 22:28:08 [SEVERE] Error occurred while enabling CustomCrafting v0.6 (Is it up to date?): java.lang.Integer cannot be cast to java.lang.String
    > 22:28:08 [INFO] Loaded CustomCrafting by nickguletskii200. 
    edit2: just found this plugin: http://forums.bukkit.org/threads/misc-valuables-v0-1-metal-lapis-block-cost-reduction-860.21404/
    maybe he found the way to overwrite the normal crafting?
     
  13. Offline

    nickguletskii

    Full recipe list please?
     
  14. Offline

    Taranis01

  15. Offline

    Niteaw

    Hello, I did this:
    test1:
    Shape:
    - [35:15, 35:15, 35:15]
    - [0, 0, 0]
    - [0, 0, 0]
    Result: 1
    Quantity: 1

    But this craft does not work, what to do?
    Thank you in advance.
    PS: Your plugin is great!
     
  16. Offline

    nickguletskii

    Works for me. The last recipe should be removed though.
    Incorrect syntax on line 3.
     
    Taranis01 likes this.
  17. Offline

    slimpyman

    been out of the mix. so, you still need a custom client in order to view custom recipes on screen correct? and can you remove said recipes ingame, or change the ingredients?
     
  18. Offline

    Taranis01

    you dont need a custom client - maybe that was needed a long time ago when the craftings were clientside?
     
  19. Offline

    nickguletskii

    Yes, indeed it was!
     
  20. Offline

    Celtic Minstrel

    Also note that this recipe will not function as a normal Minecraft recipe; it'll only work when the wool is in the top row of the grid. If that's not what you want, then leave out the empty rows.
     
  21. Offline

    Soruyao

    I used the updated recipe creator program with the latest version of custom crafting and everything went off almost entirely without a hitch. I had to change the /0 data values to /-1 for my repair recipes, which seems odd because I specified "ignore damage values" in the program. Maybe I didn't entirely understand what the program was trying to do, but at least everything is working now! :D
     
  22. Offline

    gameguy27

    Even after reading the instructions, I'm still somewhat confused. Here's an example recipe you put in.
    Code:
    ewqer8:
    Result: 256
    Quantity: 1
    Materials: {256: 1/-1, 265: 1/0} # What are the x/x values mean?
      DataValues: abc # Whats this exactly?
      Type: Shapeless
    Maybe you could go in a bit more depth. Thanks so much. ^_^
     
  23. Offline

    nickguletskii

    Somewhere above it it says that the format is id: quantity/data_value
    DataValues node tells the plugin that the Materials node should be treated as a Hashmap<Integer, String>. The value doesn't matter.
     
  24. Offline

    Soruyao

    Guess who's still having problems? ME! XD I cut and pasted your fix into the yaml file and it still didn't work. I put coal into either the crafting table or the inventory craftimajig and it does nothing.

    The intention is to turn coal into ink sacs so that I can use coal as a pigment, but it doesn't seem to do anything. I tried adding a result damage node (and when that didn't work a result data one) because I thought maybe it was confused because it didn't know which kind of pigment to use. I've tried a bunch of different combinations of possible fixes, but no matter how I change the data I can't seem to get it (or any of my other crafting recipes) to work.

    I was able to get repair recipes to work however, which is at least something.

    I tried starting over again with the output from the new version of the recipe creator, but that didn't work either. Here's the recipe file: http://pastebin.com/xEYPYYzZ
     
  25. Offline

    BeerDone

    I just copied the recipe directly from your list and it worked fine. Are you sure you don't have any plugins that may conflict with CustomCrafting? Like some coal modifiers, other plugins with custom recipes, anything like that?

    Also thanks a ton for the plugin, added a crafting recipe for chain armor (just for showoff :> ), and wool de-colourizer (15 strings of coloured wool back to white with bone meal, bah, there must've been an easier way...), and all works perfect, great job!
     
  26. Offline

    nickguletskii

    Make sure you are using real coal, not charcoal.
    Thanks for the feedback!
     
  27. Offline

    BeerDone

    Wait, those 2 are defined using a Data Value. That means that if he wants, he could put a -1 to accept both 1 and 0 as the data value, right?
    But yes, in the current recipe state, charcoal does not work
     
  28. Offline

    nickguletskii

    Yep.
     
  29. Offline

    Flipp

    Hi, first I thougt it doesn´t work, but, the only thing is, the /reload. Seems, it doesn´t reload the new/changed Recipes sometimes or most of the time. Is a Server restart necessary? Or does it have a command for reloading recipes?
    Nice Plugin, thanks for it!

    Edit: Hmm, does it work to craft leaves?
     
  30. Offline

    nickguletskii

    Yes, the restart is necessary, to flush all custom recipes.
     
  31. Offline

    Soruyao

    That's really really puzzling, because I was using real coal. Also: the pork recipe isn't working either. So we're sure it's not my recipe file that's causing that problem, but a conflict or something?

    It's really strange that the repair recipes are working but the rest aren't. Hmmmmmmm. (I wasn't getting any error messages in the console, either.)
     

Share This Page