Skip to content

Instantly share code, notes, and snippets.

@frymaster
Created June 16, 2013 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frymaster/5792351 to your computer and use it in GitHub Desktop.
Save frymaster/5792351 to your computer and use it in GitHub Desktop.
remove two recipes. Taken from http://dev.bukkit.org/bukkit-mods/tesseractuhc/
ItemStack goldenApple = new ItemStack(Material.GOLDEN_APPLE, 1, (short) 0);
ItemStack glisteringMelon = new ItemStack(Material.SPECKLED_MELON);
Iterator<Recipe> recipes = Bukkit.recipeIterator();
while(recipes.hasNext()) {
Recipe recipe = recipes.next();
if(recipe.getResult().equals(goldenApple) || recipe.getResult().equals(glisteringMelon))
recipes.remove();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment