[Idea/Request] Craftspenser

Discussion in 'Archived: Plugin Requests' started by pivotgamer84, Mar 23, 2012.

  1. Offline

    pivotgamer84

    EDIT:

    I solved this request myself. No need for anybody else to work on this.


    Plugin category: Misc

    Suggested name: Craftspenser

    A bit about me: I try to make private plugins, and rely on the community for help

    What I want: Read my paragraph below

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: No permissions

    When I'd like it by: As soon as possible

    Similar plugin requests: None.

    Devs who might be interested in this: I don't know the developer's names well enough

    -----------------------

    The Paragraph:
    I am requesting a plugin that when a dispenser is powered, it looks in the dispenser inventory to see if the items are laid out to be a shaped recipe. It will then craft the item using those ingredients with the recipe, and spitting it out rather than the ingredients.
    This recipe layout in the dispenser's inventory would make it spit out a diamond pickaxe, and deduct the used ingredients from the inventory. I tried doing this myself, but I am getting NPE even after my null checks. If someone could make this, it would be much appreciated. Thanks alot.

    I would greatly appreciate some responses. Even if you don't know how to do this, or don't want to do this, I would still like some feedback on this idea.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 24, 2016
    mushroomhostage likes this.
  2. Offline

    TobyG123

    Put diamond pickaxes in the dispenser?
     
    iMint likes this.
  3. Offline

    iMint

    I think this is an AWESOME idea and I'm gonna do it. It'll take a while to add all the crafting recipes, but it's definitely possible.

    I'll just do simple tools for the first release.
     
  4. Offline

    NinjaWAffles

    Jesus Christ! I saw a plugin like this a couple days ago, except theirs was when you put items in a chest, and power it with redstone. :( If I can find the plugin, Ill post it as that is pretty much the same concept.
     
  5. Offline

    pivotgamer84

    I appreciate the response, but I want it to be these exact specifications.

    I saw that plugin too, but it requires a chest, a dispenser, and a crafting table. The dispenser always requires items in it, and doesn't even spit out the product, since it goes into the chest. That plugin is most definitely not suitable for my standards due to the lack of being user-friendly.

    With my idea, it would only require 1 dispenser, and your ingredients, rather than 3 different blocks, not to mention the fact that the dispenser interface is perfect for a crafting grid. The chest would look odd with items in the top left corner.

    There's a way to hook into the interface to check if item stacks match the default recipes.

    The recipes are stored as 'a' through 'i', respectively equivalent to 0 through 9 in the dispenser's slot matrix.

    All you need to do is hook into the server, iterate through the recipes, and match them to the dispenser inventory.

    The problem I was having was that I messed up somewhere in my code logic, and it threw errors all of the place like it was a toy ball. I could post my code later if I continue to see no improvements. If someone does happen to get this done before I get mine done, I really would like to see how it was done. If I finish, I will post the basics of how I do it.


    A community cannot thrive unless there is input and output among members. I hope for a day where Minecraft becomes not only a top selling game, but a community of programmers who, no matter what skill level the have in programming, can all mingle, learn code from one-another, and convert their knowledge into a knowledge database.

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

    iMint

    Oh! Glad you told me that now, i ha juat begun working on recreating all the recipes xD

    I have everything done and tested and it all works fine. I just have to remove the 5 tools i manually made checks for and add in the recipe iterator and its respective checks on the dispenser's Inventory. I will leave the source code in the .jar so that you can see everything i did and learn from it. Also, I spoke with celticminstrel and he said that all this will be possible in a single method in a future update of bukkit.

    I completely agree, and from what i have seen and been involved in, there are programmers of various skill levels mingling and learning from eachother. I never had the patience to really dive into programming, i had only scratched the surface. But because of Minecraft, I am now extremely passionate about programming and am working toward a degree in Computer Science so i can program professionally as a career. Thanks Notch :)
     
    pivotgamer84 likes this.
  7. Offline

    pivotgamer84

    I just finished mine. I will update this thread to say solved.
     
  8. Offline

    mushroomhostage

Share This Page