I noticed that smithing recipes are not registering.
Example code:
// This one just for verifying recipes are actually working ShapedRecipe shape_test = new ShapedRecipe(new NamespacedKey(this, "shape_test"), new ItemStack(Material.DIAMOND_HOE)); shape_test.shape("111", "111", "111"); shape_test.setIngredient('1', Material.DIAMOND); Bukkit.addRecipe(shape_test); // Testing with ExactChoice ... not registering SmithingRecipe smith_test = new SmithingRecipe(new NamespacedKey(this, "smith_test"), new ItemStack(Material.DIAMOND_CHESTPLATE), new RecipeChoice.ExactChoice(new ItemStack(Material.IRON_CHESTPLATE)), new RecipeChoice.ExactChoice(new ItemStack(Material.DIAMOND))); Bukkit.addRecipe(smith_test); // Testing with MaterialChoice .... not registering SmithingRecipe smith_test_2 = new SmithingRecipe(new NamespacedKey(this, "smith_test_2"), new ItemStack(Material.DIAMOND_LEGGINGS), new RecipeChoice.MaterialChoice(Material.IRON_LEGGINGS), new RecipeChoice.MaterialChoice(Material.DIAMOND)); Bukkit.addRecipe(smith_test_2);
I did these two tester ones for this issue, and neither of the smithing recipes are registering. I also added a shaped recipe to verify other recipes were registering.
See pictures below, recipes for the two above are not registered.
I will include my tester plugin.
Load plugin. Then using the command:
/recipe give <yourNameHere> testerplugin:
You should see all the registered recipes.