[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

    kahlilnc

    Does the config work with the ID numbers? Not the names of the items.
     
  3. Offline

    kahlilnc

    Can you make a list of all the materials and formats or something. I tried Gold_Block as a product didn't work as recipe so I guess thats the reason none of the rest do.
     
  4. Offline

    GDorn

    The list of the items comes directly from Bukkit; AlchemicalCauldron knows absolutely nothing about materials or items.

    See:
    https://github.com/Bukkit/Bukkit/blob/master/src/main/java/org/bukkit/Material.java

    Why other plugin authors provide their own slightly different list of item identifier is beyond me.

    Many items won't work for reagent 3, particularly if they already perform actions on right or left click. There are several reasons for this, but it boils down to:
    • I'm lazy.
    • The Bukkit event system keeps changing, so keeping track of which events should be captured is a bit like playing whack-a-mole.
    • There are some serious performance issues if you trigger an event every time somebody clicks on something...
    I'm hoping that the event system will settle down eventually, but that doesn't help solve the potential performance problem.

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

    kahlilnc

    1.5 CB 709 Please?

    Actually I tried this out on CB 709 and it worked.

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

    AlternateFireE6

    Hey cool mod but I have a question.
    When I make a two recipes with same product but different reagents I get lava, are multiple reagent combinations not available or am I doing something wrong.
    Thank You for this cool mod it's easy to edit fast and is very simple, requires little brainpower, and the cauldron is nice so i can make a fountain of pigs per se or make it public access with permissions.
     
  7. Offline

    Fudgy_Fetus

    I can't seem to figure out how to make it spawn mobs. I have changed the product type to "mob" and I made the product "COW" and It will not work for my life :I I mean that's not my whole recipe but I figured that's not the important part.
     
  8. Can I request a console command to reload recipes from the file please.
     
  9. Offline

    Plague

    considered inactive
     
  10. Offline

    kahlilnc

    ;( my favorite cauldron plugin!!! COME BACK !!!! :D
     
  11. Offline

    GDorn

    Version 0.9 continues to work with 1060. It will continue to work with new versions of Bukkit unless Bukkit's API changes significantly. The specific parts that could change and break it:

    - The command handler, which would cause /recipes to fail.
    - The event handler, which needs to listen to right-click events.
    - The block types, which won't break the plugin but may break existing recipes. Cauldron does not use numbers or its own item database - it uses Bukkit's types.
    - Something extremely core, like the method by which you get a placed block's type. I think this is unlikely.
     
    kahlilnc likes this.
  12. Offline

    kahlilnc

    I LOVE YOU SO MUCH THANK YOU!!! :D
     
  13. Offline

    OracleOfTime

    I cant get this to work. When i install the plugin it generates a config.yml but its a folder not a text file. Help please.
     
  14. Offline

    Endreon26

    you have to download a separate config on this page, delete the config folder and place the .text in its place.
     
  15. Offline

    Whistler

    So, I've got the same problem as Oracle I think. If I make a config.yml file IN the folder, it registers that I'm attempting to make something, but wont register the recipes. If I replace the config folder with the file, it will register the recipes, but not register my attempts. Also this error pops up:

    17:28:34 [SEVERE] Error occurred while enabling AlchemicalCauldron v0.0.9 (Is it up to date?): null
    java.lang.NullPointerException
    at com.circuitlocution.alchemicalcauldron.Recipe.toStringKey(Recipe.java:176)
    at com.circuitlocution.alchemicalcauldron.AlchemicalCauldron.loadRecipes(AlchemicalCauldron.java:106)
    at com.circuitlocution.alchemicalcauldron.AlchemicalCauldron.loadRecipes(AlchemicalCauldron.java:125)
    at com.circuitlocution.alchemicalcauldron.AlchemicalCauldron.buildRecipeBook(AlchemicalCauldron.java:115)
    at com.circuitlocution.alchemicalcauldron.AlchemicalCauldron.onEnable(AlchemicalCauldron.java:56)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:188)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:968)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:186)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:169)
    at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:348)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:335)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:165)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:399)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)

    Is it in fact that the plugin's just not up to date with the 1.0.0 release? Or is there something else I'm missing?

    (Also, as in your last post you said replace the folder with the .text file. If it's a text file the pluggin just remakes the folder and I have the same issue as with the .yml file inside the folder.)
    Would be great to get this up and running...
     

Share This Page