Solved Customs recipes doesn't register

Discussion in 'Plugin Development' started by BlaSfaiMe, Aug 9, 2020.

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

    BlaSfaiMe

    Hello,
    I'm adding custom recipes, but they're not added :
    Code:
    @Override
        public void onEnable(){
           ShapedRecipe kino_ingot = new ShapedRecipe(new NamespacedKey(Plugin.getPlugin(Plugin.class), "kino_ingot"), BlockId.KINO_INGOT.getItem());
            kino_ingot.shape(
                    "NNN",
                    "NDN",
                    "NNN"
            );
            kino_ingot.setIngredient('N', Material.STICK);
            kino_ingot.setIngredient('D', Material.DIAMOND);
            getServer().addRecipe(kino_ingot);
    }
    There is no error, they are just not added : with and without the plugin, i've this line
    Loaded 7 recipes
     
Thread Status:
Not open for further replies.

Share This Page