Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@LionZXY
Created December 26, 2015 17:26
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 LionZXY/f3640bf41d46e4548a51 to your computer and use it in GitHub Desktop.
Save LionZXY/f3640bf41d46e4548a51 to your computer and use it in GitHub Desktop.
OreDictItemData tData = OM.data(itemStack);
getNormalOreDict(tData.mMaterial.mMaterial.mNameInternal);
public static String getNormalOreDict(String oreDict) {
if (OreDictionary.doesOreNameExist("plate" + oreDict) && OreDictionary.getOres("plate" + oreDict).size() > 0)
return "plate" + oreDict;
if (OreDictionary.doesOreNameExist("ingot" + oreDict) && OreDictionary.getOres("ingot" + oreDict).size() > 0)
return "ingot" + oreDict;
if (OreDictionary.doesOreNameExist("gem" + oreDict) && OreDictionary.getOres("gem" + oreDict).size() > 0)
return "gem" + oreDict;
return oreDict;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment