[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

    m5k

    going lower?
     
  3. Offline

    nickguletskii

    Lower-level.
     
  4. Offline

    m5k

    Do you mean like going one spot lower in the crafting table?
     
  5. Offline

    nickguletskii

    No, lower-level in terms of APIs.
     
  6. Offline

    m5k

    Ah, that's clearer. Dang, really need that kind of plugin :oops:
     
  7. Offline

    Neero

    Can anyone confirm if it works on 818? I get this error on load:
    Code:
    12:52:41 [SEVERE] Error occurred while enabling CustomCrafting v0.5 (Is it up to date?): java.lang.Integer cannot be cast to java.lang.String
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
            at nickguletskii200.CustomCrafting.CustomCrafting.ids(Unknown Source)
            at nickguletskii200.CustomCrafting.CustomCrafting.doShapeless(Unknown Source)
            at nickguletskii200.CustomCrafting.CustomCrafting.onEnable(Unknown Source)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:750)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:134)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:112)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    Edit:
    Deleted the default config file, and it loads fine :)
     
  8. Offline

    nickguletskii

    Heh thanks, looking at what causes that...
    EDIT: bugfixed.
     
  9. Offline

    Nitnelave

    Could you send me the source code? or at least tell me what hooks you used to watch for a crafting event? can't seem to find it. I'm trying to make a plugin that allows you to craft as much as possible, all at once (example : 16 coal + 16 sticks + 1 click while sneaking = 64 torches :D)
     
  10. Offline

    Ximpulse

    I'm new, and i'm not sure what i'm doing wrong, the console doesn't give any errors
    Code:
    CONSOLE: Loaded CustomCrafting by nickguletskii200.
    here is my recipelist:
    Code:
    #%Name: sponge
    200:
     Result: 19
     ResultDamage: 0
     Quantity: 1
     Shape:
      - [351/11, 35/0, 351/11]
      - [0/0, 338/0, 0/0]
     DataValues: DerEchteNexus
     Type: Shaped
    
    #%Name: obsidian
    201:
     Result: 49
     ResultDamage: 0
     Quantity: 1
     Materials: {326: 1/0, 327: 1/0}
     DataValues: DerEchteNexus
     Type: Shapeless
    
    #%Name: applestack
    202:
     Result: 260
     ResultDamage: 0
     Quantity: 9
     Materials: {260: 9/0}
     DataValues: DerEchteNexus
     Type: Shapeless
    
    #%Name: rawporkstack
    203:
     Result: 319
     ResultDamage: 0
     Quantity: 1
     Materials: {319: 9/0}
     DataValues: DerEchteNexus
     Type: Shapeless
    
    #%Name: porkstack
    204:
     Result: 320
     ResultDamage: 0
     Quantity: 4
     Materials: {320: 4/0}
     DataValues: DerEchteNexus
     Type: Shapeless
    
    #%Name: fishstack
    205:
     Result: 350
     ResultDamage: 0
     Quantity: 1
     Materials: {350: 4/0}
     DataValues: DerEchteNexus
     Type: Shapeless
    
    #%Name: rawfishstack
    206:
     Result: 349
     ResultDamage: 0
     Quantity: 9
     Materials: {349: 9/0}
     DataValues: DerEchteNexus
     Type: Shapeless
    
    #%Name: grass
    207:
     Result: 2
     ResultDamage: 0
     Quantity: 1
     Shape:
      - [295/0]
      - [3/0]
     DataValues: DerEchteNexus
     Type: Shaped
    
    #%Name: ice
    208:
     Result: 79
     ResultDamage: 0
     Quantity: 3
     Materials: {80: 4/0}
     DataValues: DerEchteNexus
     Type: Shapeless
    
    #%Name: mossycobble
    209:
     Result: 48
     ResultDamage: 0
     Quantity: 4
     Shape:
      - [352/0, 352/0, 352/0]
      - [295/0, 4/0, 295/0]
      - [295/0, 295/0, 295/0]
     DataValues: DerEchteNexus
     Type: Shaped
    
    #%Name: gunpowder
    210:
     Result: 289
     ResultDamage: 0
     Quantity: 3
     Shape:
      - [337/0, 263/0, 337/0]
      - [263/0, 318/0, 263/0]
      - [337/0, 263/0, 337/0]
     DataValues: DerEchteNexus
     Type: Shaped
    
    #%Name: string
    211:
     Result: 287
     ResultDamage: 0
     Quantity: 4
     Shape:
      - [0/0, 0/0, 35/0]
      - [35/0, 35/0, 35/0]
      - [35/0, 0/0, 0/0]
     DataValues: DerEchteNexus
     Type: Shaped
    
    #%Name: web
    212:
     Result: 30
     ResultDamage: 0
     Quantity: 1
     Shape:
      - [287/0, 0/0, 287/0]
      - [0/0, 287/0, 0/0]
      - [287/0, 0/0, 287/0]
     DataValues: DerEchteNexus
     Type: Shaped
    
    
    I used the Bukkit recipe Creator and exported the files as a customcrafting file.

    Using MC 1.6.6 with the latest recommended bukkit version

    Code:
    CONSOLE: This server is running Craftbukkit version git-Bukkit-0.0.0-766-g3fc0460-b818jnks (MC: 1.6.6)
     
  11. Offline

    nickguletskii

    Wait, so what isn't working?
     
  12. Offline

    Ximpulse

    When I try any of the recipes nothing shows up in the result box.
     
  13. Offline

    nickguletskii

    I think I have tracked back the issue... The last two recipes. Finding out what causes this.
    EDIT: @Ximpulse I have noticed something fishy about these recipes from the beginning. Removing the data values from recipes that do not use them helps.
     
  14. I get this error: SEVERE] Error occurred while enabling CustomCrafting v0.5 (Is it up to date?): java.lang.Integer cannot be cast to java.util.HashMap
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.util.HashMap
    at nickguletskii200.CustomCrafting.CustomCrafting.onEnable(Unknown Source)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:750)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:134)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:112)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

    Using Build 818


    In the yml is this:
    1007:
    Shape:
    - [1/1, 1/1, 1/1]
    - [1/1, 1/1, 1/1]
    - [1/1, 1/1, 1/1]
    Result: 268
    Quantity: 10

    Without the text in the yml there no errors...

    I think i have the same error. Coud you upload version 0.5_1 ? in the download Pool is only 0.5

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

    Master24

    @nickguletskii
    Could you maybe continue Cookbook??
    This would be great. : )
     
  16. Offline

    nickguletskii

    PLEASE read the examples.
    I didn't change the version number in plugin.yml because I am lazy. It still is _1 though.
    Ehm, why?
     
  17. Offline

    Master24

    Because this plugin is Inactive and you could improve this.
    Just an idea.
     
  18. I DONT UNDERSTAND THIS SHIT !
     
  19. Offline

    dfduck

    Hmm... I get an error when starting my server:
    Code:
    2011-06-04 11:39:04 [SEVERE] Error occurred while enabling CustomCrafting v0.5 (Is it up to date?): java.lang.String cannot be cast to java.lang.Integer
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
        at nickguletskii200.CustomCrafting.CustomCrafting.doShapeless(Unknown Source)
        at nickguletskii200.CustomCrafting.CustomCrafting.onEnable(Unknown Source)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:750)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:134)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:112)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    My recipelist.yml:
    Show Spoiler
    Code:
    #redstoneore
    1:
      Shape:
      - [331, 4, 331]
      - [4, 331, 4]
      - [331, 4, 331]
      Result: 73
      Quantity: 1
      Type: Shaped
    
    #coalore
    2:
      Shape:
      - [4, 4, 4]
      - [4, 263, 4]
      - [4, 4, 4]
      Result: 16
      Quantity: 1
      Type: Shaped
    
    #diamondore
    3:
      Shape:
      - [4, 4, 4]
      - [4, 264, 4]
      - [4, 4, 4]
      Result: 56
      Quantity: 1
      Type: Shaped
    
    #gravel
    4:
      Result: 13
      Quantity: 2
      Materials: {4: 1, 12: 1}
      Type: Shapeless
    
    #grass
    5:
      Shape:
      - [295]
      - [3]
      Result: 2
      Quantity: 1
      Type: Shaped
    
    #brownwool
    6:
      Result: 35
      ResultData: 12
      Quantity: 1
      Materials: {35: 1/0, 3: 1}
      Type: Shapeless
    
    #stoneshovelwstone
    7:
      Shape:
      - [1]
      - [280]
      - [280]
      Result: 273
      Quantity: 1
      Type: Shaped
    
    #stonepickaxewstone
    8:
      Shape:
      - [1, 1, 1]
      - [0, 280, 0]
      - [0, 280, 0]
      Result: 274
      Quantity: 1
      Type: Shaped
    
    #stoneaxewstone
    9:
      Shape:
      - [1, 1]
      - [1, 280]
      - [0, 280]
      Result: 275
      Quantity: 1
      Type: Shaped
    
    #stonehoewstone
    10:
      Shape:
      - [1, 1]
      - [0, 280]
      - [0, 280]
      Result: 291
      Quantity: 1
      Type: Shaped
    
    #stoneswordwstone
    11:
      Shape:
      - [1]
      - [1]
      - [280]
      Result: 272
      Quantity: 1
      Type: Shaped
    
    #furnacewstone
    12:
      Shape:
      - [1, 1, 1]
      - [1, 0, 1]
      - [1, 1, 1]
      Result: 61
      Quantity: 1
      Type: Shaped
    
    #flintfromgravel
    13:
      Result: 318
      Quantity: 1
      Materials: {13: 2}
      Type: Shapeless
     
  20. Offline

    nickguletskii

    Is there anything missing? I think I've covered everything in Cookbook...
    If you can't even read, then you probably shouldn't host a server.
     
  21. Cookbook is easy to use. Look in the recipe file. Also you can make line brakes in the yml.
    Also you can add: In game commands for looking up the recipes. 2 Yml one for furance one for crafting. Some examples for crafting.

    I can read. but without Line brakes in the yml it is very difficult. You must make it clearly.
     
  22. Offline

    nickguletskii

    This plugin is easy enough to configure. It just needs the user to actually read.
    In-game commands? No need for them. This plugin is made to be a bridge to the crafting manager.
    Furnace recipes work fine.
    Examples for crafting? That just shows that you did NOT read the config file.
    The config is clear enough. It has line breaks, I don't know what you are talking about.

    EDIT: aaah realised that you use Notepad. Well, bad luck, use something else. I save all of my files in Unix line ending. Most proper servers run Linux/other Unix-like anyway.

    The brown wool recipe is incorrect. Please read the examples.

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

    dfduck

    Thanks, it works now!
     
  24. Offline

    Reterg

    http://notepad-plus-plus.org/
    ;)
     
  25. Offline

    BioRage

    @nickguletskii
    Got a question. Is it possible to override default recipies?

    Example, instead of default iron boots, only require 1 ingot, it requires 2 ingots? in each place
     
  26. Offline

    nickguletskii

    No, sorry, it isn't possible.
     
  27. Offline

    boksa

    if my recipe calls for a bucket of water, is there a way for just the bucket to be returned after crafting?
     
  28. Offline

    Nytemare3701

    Request: /CCReload to reload the recipe list.
     
  29. Offline

    nickguletskii

    This should be done automatically, according to @Celtic_Ministrel
    As already stated before, it will not work.
    Yes. The recipe generator is a bit weird and adds useless data values where they are not needed, well, eeh, actually should not be. Remove them and everything will be fine.
     
  30. Offline

    Fokson

    It should be perfectly possible to override a default recipe. Fullwall's Cookbook had no issues with it, though it couldn't outright GET RID of a recipe (craft result air). Then again, he's not developing it anymore, so I don't know if 1.6 has changed something about this. Either way, I think you should look into it, because I quite miss being able to double the yield of slabs. =)
     

Share This Page