TheDoctorSoda Posted September 27, 2015 Posted September 27, 2015 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! Quote
Choonster Posted September 27, 2015 Posted September 27, 2015 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. Quote 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.
TheDoctorSoda Posted September 27, 2015 Author Posted September 27, 2015 Ah, thanks for that. Nice example Quote
Recommended Posts
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.