Solved Says that in a shapeless recipe you can't have more than 9 Ingredients? I don't have more than 9?

Discussion in 'Plugin Development' started by 17nhammond, Jul 19, 2013.

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

    17nhammond

    Need help to figure out why it says i can't have more than 9 ingredients and i don't have more than 9 ingredients...







    @Override

    public void onDisable()
    {
    PluginDescriptionFile pdfFile = this.getDescription();
    logger.info(pdfFile.getName() + " Has Been Disabled!");
    getServer().clearRecipes();
    }

    public void onEnable()

    {
    PluginDescriptionFile pdfFile = this.getDescription();
    logger.info(pdfFile.getName() + " Version " + pdfFile.getVersion() + " Has Been Enabled!");


    //Ingot Iron Recipe
    ShapelessRecipe ironingot = new ShapelessRecipe(new ItemStack(Material.IRON_INGOT));
    ironingot.addIngredient(Material.COAL_BLOCK);
    ironingot.addIngredient(Material.COAL);
    ironingot.addIngredient(Material.COAL);
    ironingot.addIngredient(Material.COAL);
    ironingot.addIngredient(Material.COAL);
    ironingot.addIngredient(Material.COAL);
    ironingot.addIngredient(Material.COAL);

    //Ingot Redstone Recipe
    ShapelessRecipe redstonematerial = new ShapelessRecipe(new ItemStack(Material.REDSTONE));
    redstonematerial.addIngredient(Material.COAL_BLOCK);
    redstonematerial.addIngredient(Material.COAL_BLOCK);
    redstonematerial.addIngredient(Material.COAL_BLOCK);
    redstonematerial.addIngredient(Material.COAL);
    redstonematerial.addIngredient(Material.COAL);
    redstonematerial.addIngredient(Material.COAL);

    //Ingot Gold Recipe
    ShapelessRecipe goldingot = new ShapelessRecipe(new ItemStack(Material.GOLD_INGOT));
    goldingot.addIngredient(Material.COAL_BLOCK);
    goldingot.addIngredient(Material.COAL_BLOCK);
    goldingot.addIngredient(Material.COAL_BLOCK);
    goldingot.addIngredient(Material.COAL_BLOCK);
    goldingot.addIngredient(Material.COAL_BLOCK);
    goldingot.addIngredient(Material.COAL_BLOCK);
    goldingot.addIngredient(Material.COAL);
    goldingot.addIngredient(Material.COAL);
    goldingot.addIngredient(Material.COAL);

    //Ingot diamond Recipe
    ShapelessRecipe diamondmaterial = new ShapelessRecipe(new ItemStack(Material.DIAMOND));
    diamondmaterial .addIngredient(Material.COAL_BLOCK);
    diamondmaterial .addIngredient(Material.COAL_BLOCK);
    diamondmaterial .addIngredient(Material.COAL_BLOCK);
    diamondmaterial .addIngredient(Material.COAL_BLOCK);
    diamondmaterial .addIngredient(Material.COAL_BLOCK);
    diamondmaterial .addIngredient(Material.COAL_BLOCK);
    diamondmaterial .addIngredient(Material.COAL_BLOCK);
    diamondmaterial .addIngredient(Material.COAL);


    //Ingot Emerald Recipe
    ShapelessRecipe emeraldmaterial = new ShapelessRecipe(new ItemStack(Material.EMERALD));
    emeraldmaterial .addIngredient(Material.COAL_BLOCK);
    emeraldmaterial .addIngredient(Material.COAL_BLOCK);
    emeraldmaterial .addIngredient(Material.COAL_BLOCK);
    emeraldmaterial .addIngredient(Material.COAL_BLOCK);
    emeraldmaterial .addIngredient(Material.COAL_BLOCK);
    emeraldmaterial .addIngredient(Material.COAL_BLOCK);
    emeraldmaterial .addIngredient(Material.COAL_BLOCK);
    emeraldmaterial .addIngredient(Material.COAL);
    emeraldmaterial .addIngredient(Material.COAL);








    //Ingot Redstone Recipe
    ShapelessRecipe redstonematerial1 = new ShapelessRecipe(new ItemStack(Material.REDSTONE));
    redstonematerial1.addIngredient(Material.IRON_INGOT);
    redstonematerial1.addIngredient(Material.IRON_INGOT);
    redstonematerial1.addIngredient(Material.IRON_INGOT);
    redstonematerial1.addIngredient(Material.IRON_INGOT);
    redstonematerial1.addIngredient(Material.IRON_INGOT);

    //Ingot Gold Recipe
    ShapelessRecipe goldingot1 = new ShapelessRecipe(new ItemStack(Material.GOLD_INGOT));
    goldingot1.addIngredient(Material.IRON_BLOCK);
    goldingot1.addIngredient(Material.IRON_INGOT);
    goldingot1.addIngredient(Material.IRON_INGOT);
    goldingot1.addIngredient(Material.IRON_INGOT);
    goldingot1.addIngredient(Material.IRON_INGOT);
    goldingot1.addIngredient(Material.IRON_INGOT);





    //Ingot Diamond Recipe
    ShapelessRecipe diamondmaterial1 = new ShapelessRecipe(new ItemStack(Material.DIAMOND));
    goldingot1.addIngredient(Material.IRON_BLOCK);
    goldingot1.addIngredient(Material.IRON_BLOCK);
    goldingot1.addIngredient(Material.IRON_INGOT);
    goldingot1.addIngredient(Material.IRON_INGOT);

    //Ingot Emerald Recipe
    ShapelessRecipe emeraldmaterial1 = new ShapelessRecipe(new ItemStack(Material.EMERALD));
    emeraldmaterial1 .addIngredient(Material.IRON_BLOCK);
    emeraldmaterial1 .addIngredient(Material.IRON_BLOCK);
    emeraldmaterial1 .addIngredient(Material.IRON_BLOCK);
    emeraldmaterial1 .addIngredient(Material.IRON_BLOCK);
    emeraldmaterial1 .addIngredient(Material.IRON_INGOT);
    emeraldmaterial1 .addIngredient(Material.IRON_INGOT);
    emeraldmaterial1 .addIngredient(Material.IRON_INGOT);
    emeraldmaterial1 .addIngredient(Material.IRON_INGOT);




    //Ingot Gold Recipe
    ShapelessRecipe goldingot2 = new ShapelessRecipe(new ItemStack(Material.GOLD_INGOT));
    goldingot2.addIngredient(Material.REDSTONE_BLOCK);
    goldingot2.addIngredient(Material.REDSTONE);
    goldingot2.addIngredient(Material.REDSTONE);
    goldingot2.addIngredient(Material.REDSTONE);
    goldingot2.addIngredient(Material.REDSTONE);
    goldingot2.addIngredient(Material.REDSTONE);
    goldingot2.addIngredient(Material.REDSTONE);

    //Ingot Diamond Recipe
    ShapelessRecipe diamondmaterial2 = new ShapelessRecipe(new ItemStack(Material.DIAMOND));
    diamondmaterial2.addIngredient(Material.REDSTONE_BLOCK);
    diamondmaterial2.addIngredient(Material.REDSTONE_BLOCK);
    diamondmaterial2.addIngredient(Material.REDSTONE_BLOCK);
    diamondmaterial2.addIngredient(Material.REDSTONE);
    diamondmaterial2.addIngredient(Material.REDSTONE);
    diamondmaterial2.addIngredient(Material.REDSTONE);

    //Ingot Emerald Recipe
    ShapelessRecipe emeraldmaterial2 = new ShapelessRecipe(new ItemStack(Material.EMERALD));
    emeraldmaterial2.addIngredient(Material.REDSTONE_BLOCK);
    emeraldmaterial2.addIngredient(Material.REDSTONE_BLOCK);
    emeraldmaterial2.addIngredient(Material.REDSTONE_BLOCK);
    emeraldmaterial2.addIngredient(Material.REDSTONE_BLOCK);
    emeraldmaterial2.addIngredient(Material.REDSTONE_BLOCK);
    emeraldmaterial2.addIngredient(Material.REDSTONE_BLOCK);
    emeraldmaterial2.addIngredient(Material.REDSTONE);
    emeraldmaterial2.addIngredient(Material.REDSTONE);
    emeraldmaterial2.addIngredient(Material.REDSTONE);






    //Ingot Diamond Recipe
    ShapelessRecipe diamondmaterial3 = new ShapelessRecipe(new ItemStack(Material.DIAMOND));
    diamondmaterial3.addIngredient(Material.GOLD_BLOCK);
    diamondmaterial3.addIngredient(Material.GOLD_BLOCK);
    diamondmaterial3.addIngredient(Material.GOLD_BLOCK);
    diamondmaterial3.addIngredient(Material.GOLD_INGOT);
    diamondmaterial3.addIngredient(Material.GOLD_INGOT);
    diamondmaterial3.addIngredient(Material.GOLD_INGOT);


    //Ingot Emerald Recipe
    ShapelessRecipe emeraldmaterial3 = new ShapelessRecipe(new ItemStack(Material.EMERALD));
    emeraldmaterial3.addIngredient(Material.GOLD_BLOCK);
    emeraldmaterial3.addIngredient(Material.GOLD_BLOCK);
    emeraldmaterial3.addIngredient(Material.GOLD_BLOCK);
    emeraldmaterial3.addIngredient(Material.GOLD_BLOCK);
    emeraldmaterial3.addIngredient(Material.GOLD_BLOCK);
    emeraldmaterial3.addIngredient(Material.GOLD_BLOCK);
    emeraldmaterial3.addIngredient(Material.GOLD_INGOT);
    emeraldmaterial3.addIngredient(Material.GOLD_INGOT);
    emeraldmaterial3.addIngredient(Material.GOLD_INGOT);



    //Ingot Emerald Recipe
    ShapelessRecipe emeraldmaterial4 = new ShapelessRecipe(new ItemStack(Material.EMERALD));
    emeraldmaterial4.addIngredient(Material.DIAMOND);
    emeraldmaterial4.addIngredient(Material.DIAMOND);
    emeraldmaterial4.addIngredient(Material.DIAMOND);
    emeraldmaterial4.addIngredient(Material.DIAMOND);
    emeraldmaterial4.addIngredient(Material.DIAMOND);














    //Block Iron Recipe
    ShapelessRecipe ironblock = new ShapelessRecipe(new ItemStack(Material.IRON_BLOCK));
    ironblock.addIngredient(Material.COAL_BLOCK);
    ironblock.addIngredient(Material.COAL_BLOCK);
    ironblock.addIngredient(Material.COAL_BLOCK);
    ironblock.addIngredient(Material.COAL_BLOCK);
    ironblock.addIngredient(Material.COAL_BLOCK);
    ironblock.addIngredient(Material.COAL_BLOCK);
    ironblock.addIngredient(Material.COAL_BLOCK);
    ironblock.addIngredient(Material.COAL_BLOCK);



    //Block Gold Recipe
    ShapelessRecipe goldblock = new ShapelessRecipe(new ItemStack(Material.GOLD_BLOCK));
    goldblock.addIngredient(Material.IRON_BLOCK);
    goldblock.addIngredient(Material.IRON_INGOT);
    goldblock.addIngredient(Material.IRON_INGOT);
    goldblock.addIngredient(Material.IRON_INGOT);
    goldblock.addIngredient(Material.IRON_INGOT);
    goldblock.addIngredient(Material.IRON_INGOT);
    goldblock.addIngredient(Material.IRON_INGOT);

    //Block Redstone Recipe
    ShapelessRecipe redstoneblock = new ShapelessRecipe(new ItemStack(Material.REDSTONE_BLOCK));
    redstoneblock.addIngredient(Material.GOLD_INGOT);
    redstoneblock.addIngredient(Material.GOLD_INGOT);
    redstoneblock.addIngredient(Material.GOLD_INGOT);
    redstoneblock.addIngredient(Material.GOLD_INGOT);
    redstoneblock.addIngredient(Material.GOLD_INGOT);
    redstoneblock.addIngredient(Material.GOLD_INGOT);
    redstoneblock.addIngredient(Material.GOLD_INGOT);
    redstoneblock.addIngredient(Material.GOLD_INGOT);





    //Block Diamond Recipe
    ShapelessRecipe diamondblock = new ShapelessRecipe(new ItemStack(Material.DIAMOND_BLOCK));
    diamondblock.addIngredient(Material.REDSTONE_BLOCK);
    diamondblock.addIngredient(Material.REDSTONE_BLOCK);
    diamondblock.addIngredient(Material.REDSTONE_BLOCK);
    diamondblock.addIngredient(Material.REDSTONE_BLOCK);
    diamondblock.addIngredient(Material.REDSTONE_BLOCK);
    diamondblock.addIngredient(Material.REDSTONE_BLOCK);
    diamondblock.addIngredient(Material.REDSTONE_BLOCK);

    //Block Emerald Recipe
    ShapelessRecipe emeraldblock = new ShapelessRecipe(new ItemStack(Material.EMERALD_BLOCK));
    emeraldblock.addIngredient(Material.DIAMOND_BLOCK);
    emeraldblock.addIngredient(Material.DIAMOND);
    emeraldblock.addIngredient(Material.DIAMOND);
    emeraldblock.addIngredient(Material.DIAMOND);
    emeraldblock.addIngredient(Material.DIAMOND);
    emeraldblock.addIngredient(Material.DIAMOND);
    emeraldblock.addIngredient(Material.DIAMOND);




    getServer().addRecipe(ironingot);
    getServer().addRecipe(redstonematerial);
    getServer().addRecipe(goldingot);
    getServer().addRecipe(diamondmaterial);
    getServer().addRecipe(emeraldmaterial);


    getServer().addRecipe(redstonematerial1);
    getServer().addRecipe(goldingot1);
    getServer().addRecipe(diamondmaterial1);
    getServer().addRecipe(emeraldmaterial1);

    getServer().addRecipe(goldingot2);
    getServer().addRecipe(diamondmaterial2);
    getServer().addRecipe(emeraldmaterial2);

    getServer().addRecipe(diamondmaterial3);
    getServer().addRecipe(emeraldmaterial3);

    getServer().addRecipe(emeraldmaterial4);




    getServer().addRecipe(ironblock);
    getServer().addRecipe(goldblock);
    getServer().addRecipe(redstoneblock);
    getServer().addRecipe(diamondblock);
    getServer().addRecipe(emeraldblock);
     
  2. Offline

    Cybermaxke

    Try to change:
    Code:
    //Ingot Diamond Recipe
    ShapelessRecipe diamondmaterial1 = new ShapelessRecipe(new ItemStack(Material.DIAMOND));
    goldingot1.addIngredient(Material.IRON_BLOCK);
    goldingot1.addIngredient(Material.IRON_BLOCK);
    goldingot1.addIngredient(Material.IRON_INGOT);
    goldingot1.addIngredient(Material.IRON_INGOT);
    to
    Code:
    //Ingot Diamond Recipe
    ShapelessRecipe diamondmaterial1 = new ShapelessRecipe(new ItemStack(Material.DIAMOND));
    diamondmaterial1.addIngredient(Material.IRON_BLOCK);
    diamondmaterial1.addIngredient(Material.IRON_BLOCK);
    diamondmaterial1.addIngredient(Material.IRON_INGOT);
    diamondmaterial1.addIngredient(Material.IRON_INGOT);
     
    17nhammond likes this.
  3. Offline

    17nhammond


    Thanks so much! That worked! What a dumb mistake I made... Thanks Again!!!
     
Thread Status:
Not open for further replies.

Share This Page