Inactive [ADMN/MECH] RecipeManager - Add/edit/remove recipes and fuels [1.2.5-R4.0]

Discussion in 'Inactive/Unsupported Plugins' started by Digi, Oct 6, 2011.

  1. Recipe Manager

    Description
    With this plugin you have more control over your server's crafting capabilities.

    More info and download on BukkitDev page
    (So I don't have to maintain two threads)
     
  2. Offline

    dralletje

    is there also a way to add fuels?
     
  3. Hmm, good ideea :} I dunno, I'll look into it.
     
  4. Offline

    dannycrafts

    I was looking for another recipe plugin! CustomRecipe doesn't support sub ids (data), you made my day!

    Can you support the use of not subid/data too? I want to make a recipe to make gunpowder, out of coal, suger (representing saltpeter) and glowstone (representing sulfur), but I want to support both coal and charcoal. For now I just make two different recipes but it would be coal if it would be easy to do something like this:

    unshaped
    263:*:1 + 353:0:1 + 348:0:1
    289:0:3

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
  5. It's in the description, -1 is all data values for that item.... but if you just need 1 item, you don't need to specify anything... this recipe will use coal or charcoal:
    Code:
    unshaped
    coal + sugar + glowstone_dust
    gunpowder:0:3
    EDIT: actually, I could add support for * aswell, it's more self-explainatory.
     
  6. Offline

    dannycrafts

    That's weird, I didn't find any description like that, but it seems to work, thank you!
     
  7. It concerns all the txt files :}

    But I should move that a bit lower and bigger title...


    EDIT: I found a verry simple and efficient way to add new fuels, I'll be adding that (along with other new cool stuff) on the next release :}
     
  8. Offline

    dannycrafts

    Hey, currently I have a problem with a recipe I'm trying to add. I want to make a unshaped recipe that converts 100 gold ingots to 1 diamond. It gives me an error saying recipes can not have more than 9 ingredients. Is this a limitation by bukkit or something?
     
  9. It's bukkit or game limitation, I tried adding it hardcoded but it gives me the same error, sorry.
     
  10. Offline

    dannycrafts

    Alright, thank you.
     
  11. Offline

    jorisk322

    Please add per recipe permissions! This would be very useful, because if you link this with something like buyability you can create like a system were you can 'learn' a new recipe for som iconomy/other-economy-plugin money.
     
  12. Offline

    Celeixen

    Cool, i thought i might see a plugin like this from you :) looks really complex well the txt files anyway, lol.
     
  13. Offline

    Nuinbot

    This looks quite good and I would be interested in implementing it (whenever Mediafire link decides to work, down atm). I would like to use something like this but I would like the ability to add additional fuel items, such as leaf blocks from trees (since they are practically useless except in aesthetics). Possible?
     
  14. You can download it from BukkitDev aswell :p
    And yes, it is possible, but I have to finish the other features aswell before I can release it.
    Currently I'm stuck at the restricting recipes part :/ matching recipes is a b...h :}




    That would be kinda difficult, but I'll see what I can do after I release the next version.
     
  15. Offline

    ShadowDrakken

    Having trouble with some data value recipes

    I've made shaped recipes that let the player take 2 slabs and get a double slab from them, but while it recognizes the recipe the result is always data value 0 even though I've put in the recipes with each possible data value and matched the input and output data values

    Code:
    // Double slabs from Slabs (4 types)
    shaped
    0:0 + 0:0 + 0:0
    0:0 + 44:0 + 0:0
    0:0 + 44:0 + 0:0
    43:0:1
    
    shaped
    0:0 + 0:0 + 0:0
    0:0 + 44:1 + 0:0
    0:0 + 44:1 + 0:0
    43:1:1
    
    shaped
    0:0 + 0:0 + 0:0
    0:0 + 44:2 + 0:0
    0:0 + 44:2 + 0:0
    43:2:1
    
    shaped
    0:0 + 0:0 + 0:0
    0:0 + 44:3 + 0:0
    0:0 + 44:3 + 0:0
    43:3:1
    
    I've tried this with and without the :0 on the empty spaces and it behaves the same regardless

    Another issue related to this, is that I'd like to leave the 0:0 off completely so that just like regular recipes the position within the crafting table doesn't matter as long as the shape it right, and small enough shapes will work on the player inventory crafting as well.
     
  16. Hmm, I dunno what's up with that but I heavily modified the code and I'll test those exact recipes once I get my editors set up :}

    The 2nd thing is already done in the new version (which is work in progress)
    Something else still hangs the progress of the version... if anyone can help out I'll release it with the ability to ban specific recipes AND ability to returnn items in the crafting grid... the help thread: http://forums.bukkit.org/threads/matching-recipes-any-size-from-1x1-to-3x3-matrix.41303/
     
  17. Offline

    fullwall

  18. I tried hardcoding a recipe into the code to test that out and it seems it returns a 0-data value item stack :/ I don't think I can do anything about that now, expecially if I can't detect which recipes are used... because if I could I would've just replaced the wrong result with the right one along with the returned items :}

    The code I tried:
    Code:
    		ShapedRecipe test = new ShapedRecipe(new ItemStack(Material.DOUBLE_STEP, 1, (short)2, (byte)2)); // damage and data set to 2, just to be sure :-?? I tried first with only damage and with only data set to 2, same result as with both set to 2
    		
    		test.shape("a", "a");
    		
    		test.setIngredient('a', new MaterialData(Material.STEP, (byte)2));
    		
    		sv.addRecipe(test);
    And it apparently only works on those double steps, I dunno why. It worked on sapling.
     
  19. Offline

    fullwall

    @Digi - isn't it itemstack.setDurability? Not sure how the recipe API would work with that.
     
  20. You can set the durability or data in the new ItemStack() aswell, it worked just fine with brich sapling.
     
  21. This plugin can only ban fuels? not add?
     
  22. It will add fuels in the next version, I need to complete it first.
     
  23. Offline

    ShadowDrakken

    several more recipe problems...

    Works sort of, but only produces 1 String instead of 9, and allows any color Wool despite the :0 specified, leaving off the :0 breaks the recipe entirely
    Code:
    // 9x String from Wool
    unshaped
    wool:0:1
    string:9
    
    Works, but produces only Wool@Orange regardless of the data value I enter
    Code:
    // Wool from 9x String
    shaped
    string + string + string
    string + string + string
    string + string + string
    wool:0:1
    
    Seems like data values and return counts are rather broken :(

    As an aside, it'd be nice to have something like... [item:data|item:data]:count to allow OR values
     
  24. They're working just fine, you just understood them wrong :p
    The formats for input items is item:data, there's no amount in them... only the unshaped version has amount to spare you from copy pasting... so that wool should be wool:0.
    And the format for output/result is item:data:amount so that result should be string:0:9.

    And the 2nd recipe works just fine, it returns white wool... I tested it with the released v1.0 with RB#1337 and with my v1.1 WIP aswell, I dunno why it returns orange to you... maybe you reversed the data and amount there aswell, because orage wool is data value 1, but I tested b y copy pasting that recipe and it works, white wool ! :p

    It's getting already too complicated, adding OR would involve duplicating recipes to match the conditions.... and that complicates stuff even more xD but I'll add it to the todo list, maybe I'll do it after I release the never ending 1.1 version.
     
  25. Offline

    dralletje

    PLEASE ADD THE CUSTOM FEUL THING!!!
    THAT WILL BE SUPER AWESOME!!!!
    :D :D :D :D :D :D :D :D :D!!!!!!!!!!!
     
  26. Offline

    ShadowDrakken

    ok, looks like typos in one recipe cause others to break also... fixed the typos in the results and the second recipe fixed itself... the double slabs data values one is still broke though XD but that sounds like one you'll have to find and make a conditional fix for huh?
     
  27. A separate spout-required temp fix, yes... but bukkit should fix that if they can tough because it's out of my plugin... you can create a plugin with a hardcoded recipe yourself and you'll see the same result :}

    On the bright side, I broke through the obstacle that jammed the plugin's progress until now, I should be able to focus on the rest of the plugin's features and release 1.1 :}
     
  28. Offline

    BlueMond416

    Damn good for first plugin release :D My plugin doesn't compare.
     
    ShadowDrakken likes this.
  29. Offline

    ShadowDrakken

    Ick... I installed Spout as a temp fix to another plugin and it bogged down my server to near useless. Glad the other plugin got fixed quickly so I could get rid of it XD I'll just suffer without until Bukkit itself is fixed. Is there a bug opened on it already?

    Grats on getting past your block :) I hate getting mental blocks when I'm developing :\
     
  30. A update on the double step stuff, I got the latest spout client installed and that makes the creative inventory display *all* possible items, including double steps... but when I get one to store in my inventory it turns into stone double step, regardless of type I select (wood, cobble, brick, etc)... so I dunno WTF xD

    Still, how does spout server plugin make your server useless ? It doesn't do anything by itself AFAIK.
     

Share This Page