Posted July 9, 20196 yr Hello, so i'm making a furnace here and i would like it to double ores. Unfortunately, i have no idea how to check if the item is actually an ore. I want it to be compatible with other modded ores like aluminum from thermal expansion, etc. How do i do this? Thanks in advance.
July 9, 20196 yr What version of Minecraft are you modding for? Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
July 9, 20196 yr Your best bet is to use the ore dictionary. Things-that-are-ores will be registered with an oredict name starting with "ore", eg. "oreIron" "oreCopper" etc. You could also check the output of the furnace recipe to see if the item there is registered as a "ingot" Which way you want to go will depend on if you want to double produce when smelting ore blocks or if you want to double produce when producing ingots. This matters for how you want your furnace to interact with other tech mods which grind ore blocks into "dust piles" (one ore block grinds into two dust piles, one dust pile smelts to one ingot). Similar to that problem, my own mod doesn't have minable ore blocks, but instead the blocks drop chunks (so it can be effected by Fortune). Those chunks (registered with the oredict as "rawOre___") smelt into nuggets but can also be ground up into tiny dust piles, which can be crafted/sifted into dust piles (sifting grants another slight increase, being only 8:1 instead of crafting table's 9:1). Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
July 9, 20196 yr Author Alright, thank you for the reply. I think i'm going to look at some other mods code (Like Furnace Overhaul) and see how they do.
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.