[FUN] AlchemicalCauldron v0.9 - Add your own alchemy recipes [1060]

Discussion in 'Inactive/Unsupported Plugins' started by GDorn, Feb 15, 2011.

  1. Offline

    GDorn

    AlchemicalCauldron - In-game alchemy with customizable recipes:
    Version: v0.9

    NOW WITH PERMISSIONS SUPPORT: alchemicalcauldron.use

    In game, build a cauldron out of OBSIDIAN (other materials may be supported in the future).
    Cauldrons are a 3x3 (9 block square) layer on the bottom and a 3x3 ring (8 block hollow square) on top.

    Place the first reagent in the middle of the ring and the second reagent on top. Right-click with the third reagent to invoke the recipe.



    Recipes are configured in /plugins/AlchemicalCauldron/config.yml, which looks like this:
    Code:
    log_level:  WARNING
    recipes:
        - product: DIAMOND
          type: item
          product_quantity: 2
          reagent1: COAL_ORE
          reagent2: OBSIDIAN
          reagent3: WATCH
          reagent3_consumed: false
        - product: COAL_ORE
          type: block
          reagent1: WOOD
          reagent2: COBBLESTONE
          reagent3: INK_SACK
          reagent3_data: BLACK
          reagent3_consumed: true
          reagent3_quantity: 5
          secret: true
    
    See https://github.com/georgedorn/Alchemical-Cauldron-Minecraft-Plugin/blob/master/README for more details.

    Download
    Jar file
    example config.yml (Needed! See above!)
    Source on github

    Changelog:
    • Version 0.9: Added support for Permissions (node: alchemicalcauldron.use). Added more logging on strange situations (e.g. no player triggered event).
    • Version 0.8: Updated to CB612, allow creation of mob spawners. Note that similar to unkillable slimes, mob spawners will produce unkillable client-side pigs in addition to whatever they're configured to spawn. To create a spawner, specify the mob name (e.g. 'Sheep') for product_data and MOB_SPAWNER for product. I think.
    • Version 0.7: Added a /recipes command. secret: true recipes aren't displayed.
    • Version 0.5: Improved some error messages to make configuration more user-friendly.
    • Version 0.4: Added reagent3_quantity to require the player to provide more than one. Note: A limitation of recipe book means you still can only have one recipe for any R1+R2+R3. Todo: fix this.
    • Version 0.3: Fixed reagent3_consumed flag in recipe.
    • Version 0.2: Fixed product_quantity
    • Version 0.1: Initial release
     
    kahlilnc likes this.
  2. Offline

    riuthamus

    try to add the following:

    - in game creation of recipes
    - in game reloading of plugin
    - permissions support using permissions 2.0
    - look at using numbers in your config instead of the name crap, numbers are definate, the name stuff is odd.
     
  3. Offline

    GDorn

    This is possible but a great deal more work than it is really worth.

    /reload does this quite nicely.

    I'll look into this. I'm not sure what permissions I would give other than can use alchemy or not. I guess per-recipe is possible, but again, probably not worth the effort.

    I could add support for integers, but the "name crap" is exactly what Bukkit supports via Material.matchMaterial() or MobType.fromName(). The colors thing is annoying, though, so referring to those by number until Bukkit normalizes the wool vs dye snafu would be handy.
     
  4. Offline

    riuthamus

    the issue is everybody wants to call it something different. Some people think woolencloth or woolcloth or woodenshovel or woodshovel, plus its alot more work to type than 265 or 22, or 32... you know? just an idea, but thanks for the response!

    What about decomposing objects. If i put a chest piece in there i would get back iron or whatever, also... the possibility to PROC, meaning you would set something to proc it would make something of a higher grade. Also make a setting for failure, meaning the player would take damage, or would be set on fire, or would explode!! So for quick refrence,

    1) decompose objects for raw mats
    2) PROC on items for higher grade things
    3) Make possible failure setting, with fire, or explosion on fail, with a % chance of fail per recipe!
     
  5. Offline

    GDorn

    Here's a couple more sample recipes to get things you can't normally get in SMP:

    Code:
    #glowstone dust, as an item
        - product: GLOWSTONE_DUST
          type: item
          reagent1: REDSTONE_TORCH_ON
          reagent2: IRON_ORE
          reagent3: REDSTONE
    #this makes brown dye aka cocoa beans.
        - product: INK_SACK
          product_data: BROWN
          type: item
          product_quantity: 8
          reagent1: STATIONARY_WATER
          reagent2: WOOL
          reagent2_data: BLACK
          reagent3: INK_SACK
          reagent3_data: YELLOW
    
     
  6. Offline

    lexor57

    Can you make a picture how the cauldron look.
     
  7. Offline

    GDorn

    Better, I added a video. It's a little hard to see because obsidian is so dark, but there are annotations.
     
  8. Offline

    riuthamus

    Adding the ability to do certain recipes with permissions would be hard, but I think would be great for people who are making an alchemy leveling system. Only certain recipes are allowed to people who are of the proper level. I dont want a new alchemist to create a recipe and have 100% success on turning iron into gold...

    I am not sure where you want to go with this, or how much work you want to put into it, but I have plenty of ideas I could toss your way to make it, interesting.
     
  9. Offline

    GDorn

    I do like the idea of tying into a leveling system somehow. I haven't looked into the existing ones because I run a very freeform server and not everybody wants to play an RPG. I'll have to read up on them and see if any of them to intra-plugin communication. If so, I could see a way to specify any amount of extra data needed, like parameters to send the leveling plugin (xp reward or skill to add points to or whatever) and per-datum configuration options, to allow for skill or level or phase of the moon to affect the chance of success.

    It would probably help to have the RPG plugin developers settle on a super-flexible intra-plugin API so that GMs can build their own system with config files and plugins a la cart.
     
  10. Offline

    riuthamus

    Honestly, you can do most of it with your code.

    Simply add a line to the recipe for the level crafting skill required by the person doing the operation. From there you can create a line when a completed recipe is made to add points to said level, also, one thing I make all of the people who code stuff for me do is make configs ( i reread that, im not asking you to CODE for me, just saying the coders I do have and work with ) with options and hooks for EVERYTHING. So make it part of your config to modify the values for + per success and - per failure. Or to ignore both of those all together for those people who want just a straight up system without any leveling. At this point, to get what we are talking about you would need

    1) A player value for their skill at alchemy
    2) an extra input field for the recipe for the skill needed to success

    Hope that helps, and if you need more ideas or suggestions, thats what I am good for!
     
  11. Offline

    hardedgod

    Hey are mobs(like sheep) available.
     
  12. Offline

    Lap

    I'd like to request being able to require certain quantity of reagent #3 so I could do something like:

    -Leaves + Dirt + redstone x 5 = 2 saplings.

    Works great though. Only other downside is it isn't as fun as craftbook's way where you just through reagents into a lava cauldron, but that's a preference thing.
     
  13. Offline

    GDorn

    Updated to add configurable quantities of reagent3. If left blank, it defaults to 1. Obviously if reagent3_consumed is false, it still won't consume the reagent.
     
  14. Offline

    Reil

    This is cool, though I can't seem to use torches (redstone or otherwise) as reagents; they just place, instead of get used.

    Also, my server window is logging every single time someone right clicks. It's kind of flooding everything off the console.
     
  15. Offline

    snopey1

    could I ask for a tutorial? I followed the instructions and it just kept saying "Invalid Recipe: COAL_ORE + OBSIDIAN + CLOCK" and I copied
    log_level: WARNING
    recipes:
    - product: DIAMOND
    type: item
    product_quantity: 2
    reagent1: COAL_ORE
    reagent2: OBSIDIAN
    reagent3: WATCH
    reagent3_consumed: false
    - product: COAL_ORE
    type: block
    reagent1: WOOD
    reagent2: COBBLESTONE
    reagent3: INK_SACK
    reagent3_data: BLACK
    reagent3_consumed: true

    Also, at start up I keep getting a "Can not create log error." I have no idea if this has something to do with it, but if so could you tell me the log file name so I can just add one manually?
     
  16. Offline

    GDorn

    Most likely this means that your config file is located in the wrong place. The plugin probably has no valid recipes in this situation.

    Download the new .jar and try that. I updated the error reporting to be a little clearer about what's going wrong, which should help you fix things. It should also tell you how many alchemy recipes it found on startup.
     
  17. Offline

    snopey1

    thank you for replying so fast [​IMG]
    but, I downloaded the Jar file, moved and replaced the jar in my plug ins folder. checked the config file's location
    "C:\Users\Augustus\Desktop\Minecraft\Minecraft Server\plugins\Alchemical Cauldron" have tried AlchemicalCauldron, Alchemical-Cauldron, and Alchemical_Cauldron as well. Also I noticed in the console it is saying
    "snopey1 issued server command : recipes
    unknown console command. type "help" for help."
    but I noticed in the console this
    "2011-03-03 17:48:00 [SEVERE] Config file plugins\dist%2Fplugins%2FAlchemicalCauldron\config.yml could not be created!" which made me wonder if I changed the file name to "dist%2Fplugins%2FAlchemicalCauldron" and had the config file in that and it worked just fine when it came to using it. But for what ever reason it was still giving me an error with "/recipes"

    Hope that helps clear some issues up and more then willing to help trouble shot since I really like what this plug in can do. [​IMG]
     
  18. Offline

    GDorn

    /recipes isn't a command yet, I'm using MCDocs to handle that one.

    The AlchemicalCauldron.jar belongs in \plugins\, and the config.yml belongs in \plugins\AlchemicalCauldron. I'm not sure why it is looking for the config in plugins\dist\plugins\AlchemicalCauldron, given that I'm just using CraftBukkit's configuration manager. I'm looking into the problem now.
    --- merged: Mar 4, 2011 1:21 AM ---
    Update:

    I got the /recipes command working. Also, if you're having trouble, set the log_level to INFO, which will cause a great deal more info to be sent about what's going on.
     
  19. Offline

    Praticle

    I think it would be cool if you could have some sort of level system. Where there is a chance of F-ing up the alchemical reaction an causing something negative to happen (explosion, Monster spawn, etc.) And as you "practice" you get better and the chance of failure goes down. Just a thought :) Great Plugin!
     
  20. Offline

    Astro MacGuffin

    I love the idea. I'm setting up a server for testing / learning plugins, going to try this one out for fun.
     
  21. Offline

    arishoham

    Great idea and is well needed on our server. But is there any way to get items that are blocks in your inventory? Like instead of placing the coal ore make an option in the config file to just put it in your inventory, or make it act like the diamond and pick it up. This will let people build with items not usually obtainable!
     
  22. Offline

    GDorn

    If you specify a product_type of 'item', it drops the item in the world instead of placing the block. This works with COAL_ORE, allowing you to pick those up and place them yourself. In theory it should work with ICE and STATIONARY_WATER (and even STATIONARY_LAVA) too.
     
  23. Offline

    Moo Master

    Thanks for the Update!
     
  24. Offline

    Leemur

    plugin send a error message to the server if the recipe isn't correct.
    please fix that...
    error must get only the player.

    and add the possibility to write the item code to the recipes (not only item name)
     
  25. Offline

    Phealoon

    The permissions are important for RPG Servers. What if not all players are allowed to be Alchemists. On our server this was a plugin we have been looking for, but we can't use it without the permission available.

    I think this plugin could be essential to our server and we hope you add some type of permission soon like 'Cauldron.use' for example, so we can add it to the Alchemist Class.

    -Phea
     
  26. Offline

    GDorn

    I can't imagine what would cause this, unless there's a bug in bukkit that allows the event to happen without a player object attached. In this case, I'm now logging a warning to the console.

    Done. Added 'alchemicalcauldron.use' as the node name. I'm stoked somebody is using this on an RPG server.

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

    freeloader1

    Is it possible to set this up without the AlchemicalCaludronPlayerListener.onPlayerItem to spam the console? It's pretty hard to see players chatting when someone is right clicking somewhere.

    Other then that, I love this plugin!
     
  28. Offline

    GDorn


    Set the log level to WARNING instead of INFO.

    Here's something fun you can do with the plugin:


    That's a recipe that spawns 1100 pigs in a cauldron built into the side of a huge slice of nether. Result? Pig fountain.

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

    kahlilnc

    Every time I try to download this the config.yml file is a folder. I even delete the AlchemicalCauldron folder and reload the cmd and still comes up with the config.yml folder.(NOt the actual yml file it is a folder.) Can you fix this I can send you a pic if you want.

    K I got it to work but could I get any shovel for the reagent3 spot to finish the recipe. By using:
    reagent3: SHOVEL

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

    EwMeep

    its really glitchy
     

Share This Page