Custom Crafting Recipes

Discussion in 'Plugin Requests' started by Death Stalker, Jan 30, 2017.

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

    Death Stalker

    Plugin category: Crafting

    Minecraft version: 1.11

    Suggested name: Custom Crafting

    What I want: It would expand so much upon the things possible in Minecraft. Example- being Supporting Custom names and lore.

    AND- Requiring Custom Names/Enchantments etc for recipes. (Say 9 TnT make 1 C4 and 9 C4 Make 1 Nether Star) C4 being TnT named maybe even lore.

    Ideas for commands: /radd
    /rremove
    /redit

    Ideas for permissions: crafting.exampleitem

    When I'd like it by: Whenever possible
     
    Last edited: Jan 31, 2017
  2. Offline

    Death Stalker

  3. Offline

    mehboss

  4. @Death Stalker
    Code:
    import org.bukkit.Material;
    import org.bukkit.inventory.ItemStack;
    import org.bukkit.inventory.ShapedRecipe;
    import org.bukkit.plugin.java.JavaPlugin;
    
    public class Main extends JavaPlugin {
    
        public void onEnable() {
            getLogger().info("Plugin enabled!");
            this.addRecipe();
            return;
        }
      
        public void addRecipe() {
    
    /* A "nickname" the recipe (NAME) and the material you want to craft (MATERIAL_NAME)*/
    
        ShapedRecipe NAME= new ShapedRecipe(new ItemStack(Material.MATERIAL_NAME));
      
    /*How to craft the material. (ec. NAME.shape("ddd", "dsd", "ddd) will be a MATERIAL_NAME and will be an "s" in middle and around of it "d"`s).
        NAME.shape("/*Items up row(NO SPACE NEXT TO LETTERS)*/","/*Items middle row (NO SPACE NEXT TO LETTERS)*/","/*Items down row(NO SPACE NEXT TO LETTERS)*/");
        NAME.setIngredient('/*A LETTER WHAT YOU WANT FOR ITEM*/', Material.MATERIAL_CRAFTED_FROM);
        NAME.setIngredient('/*A LETTER WHAT YOU WANT FOR ITEM*/', Material.MATERIAL_CRAFTED_FROM);
         
    /* Apply thee recipe (do not forget to register it in onEnable() too)
        this.getServer().addRecipe(NAME);
      
      
        }
    Just paste in code and export it and it will be a smaller file for your server and will cause less lags
     
  5. Offline

    Death Stalker

    That doesnt support needing custom names in recipes :/


    Sorry, ive never done anything like that. Where do i paste the code?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Feb 23, 2017
  6. Offline

    timtower Administrator Administrator Moderator

    @dominikremes It is a plugin request for a reason. Not to mention that it doesn't support renamed items / lore.
     
  7. Offline

    mehboss

    Yes it does.. there is an editor GUI.. you can anvil the recipe and make it work.
     
  8. Offline

    Death Stalker

    The plugin you sent to me is outdated and does not work anymore. The linked updated version does not exist anymore. Did the plugin work for you?
     
  9. Offline

    PQE

    If I find time I'll do this for you, although it's quite a big (1-2 hours) project.
     
  10. Offline

    Death Stalker

    You would save my whole concept so that would be great ^-^
     
  11. Offline

    mehboss

    @Death Stalker
    I did some research and I managed to find the plugin below. Looking at the config, you can add lore and custom names. The reviews look nice and it seems updated as of 2017. There are even youtube video tutorials. Here you go.. Let me know if this helped you. :)

    <Edit by Moderator: Redacted not allowed paid resource url><Edit by Moderator: Redacted not allowed paid resource url>

    The recipe squares are like this. You can add your own letter for your material to make the new recipe.. If you have a pick like this:
    [​IMG]
    You do

    First Line: EEE (because E in the config is set for material emerald).
    Second Line: XIX (because X is set for nothing and I is set for iron).
    Third Line: XIX (because X is set for nothing and I is set for iron).

    There is a how to use tab on that page also
    [​IMG]

    This seems really easy to use. :) Leave a like if I helped and don't forget to change the thread to solved. Hope I saved you some time.
     
    Last edited by a moderator: Nov 25, 2017
  12. Offline

    Death Stalker

    Once again. That does not meet my need. Example: 9 TNT is used to make 1 C4 (Renamed TNT)/// 9 C4 is used to make a Nether Star) This plugin doesnt do that once again ;)
     
    Last edited by a moderator: Nov 25, 2017
  13. Offline

    mehboss

    Once again, yes it does.

    Code:
      C4:
        Item: 46 #Item Id
        Name: '&6&lC4' #Name of the Item and you can use Color Codes
        Lore:
         - '&c&lThis is a c4' #The Lore in the Item and it can be Many Lines
        ItemCrafting:
         - 'TTT' #First Line in the Crafting Table
         - 'TTT' #Second Line in the Crafting Table
         - 'TTT' #Third Line in the Crafting Table
        Ingredients:
         # You can choose your own letters for the Ingredients But make sure to keep this format <Ingredient Initial>:<ItemId>
         # X Stands for Air but do not include that in the Ingredients.
         - 'T:46' # T Stands for TNT or 46 in the Crafting Table.
    I made the config for you
     
  14. Offline

    Death Stalker


    That makes a C4 From 9 TNT. But how do you make a recipe for the Nether Star?
     
  15. Offline

    mehboss

    Dang, this would be perfect. This seems like the only closest thing I could find. Let me contact the owner or get the source and do it myself.
     
  16. Offline

    Death Stalker

    Well. https://www.spigotmc.org/resources/customrecipe.23836/
    The one im using works perfectly. Except for this flaw. It SAYS it supports it but simply. I don't know if there is a source for that
     
  17. Offline

    mehboss

    Wait so it supports custom names, just needs to be updated?
     
  18. Offline

    Death Stalker

    No, well yes. The plugin works (50%) since it deletes vanilla recipes. It works on making recipes easily but doesnt support requiring names in recipes etc. So i say it is a bad source mate ;)
     
  19. Offline

    mehboss

    Here you go! I remastered it. I updated it to 1.11.2 and made it so you can add custom items to the ingredients. All you have to do is set the display name of an ingredient to the other custom items displayname and make sure it is the same material.

    Example:
    [​IMG]
    ~ display name supports color BTW.

    Download:
    https://www.spigotmc.org/resources/►►-custom-crafting-recipes-◄◄-remastered-create-your-own-recipes-v1-0-0.36925/
     
  20. Offline

    Death Stalker

    Wow thanks, ill check it out right away and post an edit.

    EDIT: Problem, 9 TnT make a Satchel Charge. 9 Satchel Charges makes... A Satchel Charge? /// Config



    http://pastebin.com/zRRj1V7e
     
    Last edited: Feb 25, 2017
  21. Offline

    mehboss

    I'll check it out

    I know the problem but it is weird ^-^
    Let me experiment around


    Sent from my iPhone using Tapatalk
     
    Last edited: Feb 25, 2017
    Death Stalker likes this.
  22. Offline

    Death Stalker

    @mehboss Any solution?
     
    Last edited: Feb 25, 2017
  23. Offline

    mehboss

    @Death Stalker
    Took awhile to find out what the problem was. Been in PM with Zomb for an hour.. Has now been fixed haha :p

    By the time you see this comment, I will have already updated the plugin on spigot.

    @Zombie_Striker
    Thanks for your help :)
     
    Death Stalker likes this.
  24. Offline

    Death Stalker

    Last edited: Feb 26, 2017
  25. Offline

    mehboss

    It's the config, you have to reset it. Something got messed up.

    By the way.. You don't need the header, the # messages, or OPTIONAL - the enchantments or lores.

    Also if you don't use the cursedpick, you don't need it.

    Try this:
    http://pastebin.com/i31wfWfq
     
  26. Offline

    Death Stalker

    Cheers!
     
Thread Status:
Not open for further replies.

Share This Page