Skip to content

Instantly share code, notes, and snippets.

@tterrag1098
Created April 18, 2014 16:59
Show Gist options
  • Save tterrag1098/11054099 to your computer and use it in GitHub Desktop.
Save tterrag1098/11054099 to your computer and use it in GitHub Desktop.
int id = OreDictionary.getOreID(stack);
for (ItemStack i : OreDictionary.getOres(id))
{
if (GameRegistry.findUniqueIdentifierFor(i.getItem()).modId.contains("modid"))
//drop items
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment