Crafting Using Custom Items

Discussion in 'Archived: Plugin Requests' started by Minecraft Frontiers, Aug 28, 2014.

  1. I searched the forums but can't find a plugin that would be able to do the following:

    1. Craft "Special Ingot" out of 3 iron ingots.
    2. Craft "Special Sword" out of 3 "Special Ingot".
    There are plugins that are able to do step 1, but none I found can do step 2.
    As far as I understand, the crafting in the game uses item types - which means the game sees "Special Ingot" and a normal "iron ingot" as the same item (meaning one can replace the other when crafting).
    • Is there a possible workaround that would perhaps check for the name of the item as well as the type - making it possible to craft Special Sword only using Special Ingots?
    • If it is not possible, would it be possible to make this sort of crafting without the use of the default Minecraft crafting interface? (Perhaps using commands, etc.)
    Many thanks :)
     
  2. Offline

    mrCookieSlime

    Minecraft Frontiers
    You cant listen for the name really easily. Use metadatas.
    for example make your special ingot be IRON_INGOT:34 (if the plugin youre using supports metadata.
     
  3. @mrCookieSlime

    That never crossed my mind. Thanks. Is there a limit on how many metadatas one item type can have?
     
  4. Offline

    mrCookieSlime

    Minecraft Frontiers
    An Item has only 1 Metdata. However it can be from 0 to (a very high number) I dont actually know the limit. But it is pretty high though.
     
  5. Offline

    Plo124

  6. Offline

    mrCookieSlime

    Plo124
    Alright, did not know that. The highest I used was 37...

    Feel free to do so, but there are plenty of custom recipe plugins which support metadata.
     
  7. Offline

    Plo124

    mrCookieSlime
    But do any support Display Names?
    I dont think you can set the damage value on everything. e.g. Armor & Tools.
     
  8. Offline

    Necrodoom

    Plo124 not sure what you mean.
    All items support having displayname and/or damage value applied to them.

    However, due to 1.8 phasing out the magic value damage value, it may not be a good idea to give invalid damage values to items, as it may lead to all sorts of issues.
     
  9. Offline

    Plo124

    Necrodoom
    Yup, I never use the damage value thingy.
    I would always change the display name or lore.
     
  10. Offline

    mrCookieSlime

    ... -.- If it really gets removed that you can set the durability of non damagable items I could delete my BukkitDev account as almost all my plugins rely on that.
     
  11. Offline

    Necrodoom

    mrCookieSlime you'd probably need to switch to NBT tag definition, once bukkit goes 1.8 with JSON/NBT support.
     
  12. Offline

    mrCookieSlime

    Necrodoom
    Thats not the real point. I am using the durability for the recipes, if 1.8 Bukkit adds the ability to also add recipes where an ingredient has to have a specific NBT value l, I am totally for that. But if not, I am screwed.

    Also have been waiting for NBT Support for a while now :)
     

Share This Page