Limited Crafting

Discussion in 'Plugin Help/Development/Requests' started by Shahblox, Mar 7, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    Shahblox

    Plugin category: Fun idk?

    Suggested name: LimitedCrafting

    What I want: So basically how this would work is when you click a crafting table instead of the typical gui coming up it'll show a customized way of things set. For example let's say when I right click it shows 3 items, which are catagories (Blocks, Items, Misc) and when clicking the the item that says "Blocks" it'll show specific items I want that can only be crafted such as wood, quartz, stonebrick, etc and to buy one you would need to pay up a certain amount of blocks in your inventory.

    This would all be customizable of course, choosing what catagories and to edit what blocks they show and there name/lore. And for the items to show requirements for the blocks/items needed to craft the item with a back button(a item). Also every item that is buyable can be editted in the config, like the name/lore and of course the requirments for for the item/blocks themselves.

    The goal of this plugin is to limit what players can craft within the server, I personally think this is best for hardcore servers so players can't craft anything they want, this is also good if you are adding customized items such as guns, knifes, etc.

    Example:
    [​IMG]
    then
    [​IMG]


    Ideas for commands: /lc reload - Reloads config

    Ideas for permissions: limitedcrafting.admin

    When I'd like it by: In a week or so.
     
    Last edited: Mar 7, 2015
  2. Offline

    hopstar

    Heey Shahblox.

    Looks like a fun project to do so il work on it.

    Il created the Menu in a config file so you can edit it so you like.
    the admin permission should bypass the crafting this plugin?
     
  3. Offline

    Shahblox

    All the admin permission would do is let you do /lc reload lol, everyone, including ops will have to use the crafting table
    the way the plugin is. :)
     
  4. Offline

    hopstar

    haha lol yhee that makes more sense :)
     
  5. Offline

    Shahblox

    Thanks for attempting to make this, do you know when you might be able to finish this?
     
  6. Offline

    hopstar

    Im trying tomorow if i don't get crazy bugs

    one more question. You want a item they can right click to open the inventory ifso what item(or config based)
    Do you want a command to trigger also trigger it
    nvm you want the crafting table to be click

    Shahblox, do you want after the first menu also the possibilty to have sub menu's or are their always the crafting receipes?
     
    Last edited by a moderator: Mar 7, 2015
    Shahblox likes this.
  7. Offline

    Shahblox

    Yes when right clicking a crafting table the screen will come up with the categories, and remember that I want every item to be able to be edited through config :)

    Also is this possible, lets say I click on Items and then want to buy a Iron Sword and it requires 10 iron which I give and I get. In the config is it possible to make it so I can edit the item that the player gets? For example when I buy the Iron Sword in the crafting table I get an Iron Sword, but the name is "Legendary Sword" or something which I can edit, same with the lore?

    What do you mean exactly? Do you have after I enter a catagory there are semi categories I can enter? It's up to you if you want to do that.
     
    Last edited by a moderator: Mar 7, 2015
  8. Offline

    hopstar

    @Shahblox
    No problem

    The config should be something like this:
    http://pastebin.com/MqxJGe8v
    Is that something you like?
    @Shahblox
     
    Last edited by a moderator: Mar 7, 2015
  9. Offline

    Shahblox

    The format is nice, but I think putting another section(s) in a category gets too confusing, I think maybe just a category and then items to buy because I won't have a ton of items being sold in each category.

    So like Tools> Diamond Shovel, Stone Axe, etc
    Armor>(Diff armor sets) etc
    Also the main reason I wanted the names and sections customized is cuz I'm going to add bullets, guns, but their just going to be normal items retextured.
     
  10. Offline

    hopstar

    The structure will be as followed.
    you start at catagory. their will be a x amouont of items (menus) in it.
    Those menu can also have a x amount of items(menus) in it
    Or they can have the crafting item in them.
    Thise can go on as long you want it

    GitHub: https://github.com/hopstar/LimitedTrading

    [EDIT]
    Status:
    Done:
    • Disable crafting
    • Opening Crafting Menu
    • Creating sub menus's
    • Open submenu by clicking
    ToDo:
    • Creating the new "Craft" Event
     
    Last edited: Mar 8, 2015
  11. Offline

    Shahblox

    Wow nice, well you got the idea, honestly whatever way you organize the items will make no difference to me only because the main point of this is to limit players to ONLY craft what you want them to, but with custom amounts of items. Thanks again for attempting to make this :)
     
  12. Offline

    Hergarian

    BAM! Coming in too. Want it for my RPG server
     
  13. Offline

    BradleyFlorence

    Great Idea! Using this for my server!
     
  14. Offline

    hopstar

    Nice Love to see this plugin be used

    btw. if you need other plugin you can always pm me
     
    Shahblox likes this.
  15. Offline

    Shahblox

    You're so awesome lol, never met a person as nice as you on this forum :)

    Also in this plugin can you block the 2x2 crafting table in the players inventory? Like when you press "E" you go into the inventory of the player and you can craft small things, can you just remove it from working? Like maybe when the player tries to put an item in one of the crafting boxes it just shoots it back into the inventory.

    What I plan to do is in the texture just cover it up so no one can see where to put the items as well.

    EDIT by Timtower: merged posts and fixed minor mistake
     
    Last edited by a moderator: Mar 8, 2015
    hopstar likes this.
  16. Offline

    hopstar

    Just disabled to possibilty to craft an item.
    I don't think il get it done tonight got some enoying bugs to take care of. Hope to get it done by tomorow but i got schoool project so lets hope that goes well :)

    - Fixed most things if i commit a few hours tomorow its done
     
    Last edited: Mar 8, 2015
  17. Offline

    Shahblox

    Nice, I was able to code a small thing but that was with help of people, all it was is /gm toggles gamemode from creative to survival or survival to creative with a message in the chat lol
     
  18. Offline

    hopstar

    Hahaha nice, a few weeks back i also started with that.
    Learn small and Dream Big :)
     
  19. Offline

    Shahblox

    @hopstar

    Remember I said that I want the item that you purchase to be recustomized? Like so when you buy a shovel for example in your inventory it doesnt show it saying "Requirments" or something and it's just a plain log. Will the log(example) I purchase be able to be customized too just wanted to confirm that.
     
  20. Offline

    hopstar

    Uhmm im not sure what you mean. for now the requirments are just item id i will change that when hte plugin so you can also set a name or lore
     
  21. Offline

    Shahblox

    Um I mean the item that is received into the players inventory basically, can the name/lore of that be edited to?
     
  22. Offline

    hopstar

    Will make it after release. First i got a little problem with the inventory.
    Il get everything done, then il add it. shouldn't be to hard.

    @Shahblox
    @BradleyFlorence
    @Hergarian
    The main plugin is done now.
    Il add some stuff like error prevetion and stuff and the reward items customasion
    Also you can only use the Id - not sub id to add like the darkoak.
    Also possiblity to add color codes, it works not but its kinda buggy
    [Fixed]
    But if people want they can test/download it
    https://www.dropbox.com/s/g47f9h203el2nlh/LimitedCrafting.jar?dl=0
    if people are interested in the source check the github:
    https://github.com/hopstar/LimitedTrading

    if you get any error make sure to post them and il fix them or help you fix it.


    Edit:

    Its now possible to give rewards Special properties such as name and lore;
     
    Last edited: Mar 9, 2015
  23. Offline

    Shahblox

    Wrong download link lol
     
  24. Offline

    hopstar

    Last edited: Mar 9, 2015
  25. Offline

    Shahblox

  26. Offline

    hopstar

    should save the config now
     
  27. Offline

    Shahblox

    lol what

    btw do you have skype?
     
  28. Offline

    hopstar

    The new release should create a config file
     
  29. Offline

    Hergarian

    @hopstar
    Okay i tried it too...
    I doesn't even get loaded!
     
  30. Offline

    Shahblox

    Right, a config comes however nothing's inside, I copy pasted the original config from github and after restarting my server it showed the menu when clicking the crafting table. However when clicking any item in the menu I get a big error in console and it basically doesn't work.
     
Thread Status:
Not open for further replies.

Share This Page