Posted September 27, 201510 yr So I was wondering how I would check if a block is registered under a certain ore dictionary entry. I assume there's a simple answer? EDIT: There's a really good example below, for future googlers!
September 27, 201510 yr Use OreDictionary.getOreIDs to get an array of ore IDs for an ItemStack and OreDictionary.getOreName to get the ore name from an ore ID. See this code for an example. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.