Hello, i have a grinder block and it has a tile entity, and in the updateEntity method in the tile entity, i call this code:
System.out.println(OreDictionary.getOreID("oreCopper"));
I have IndustrialCraft2 installed and there exists copper in the game, but it prints this in my console:
2014-01-05 20:50:47 [iNFO] [sTDOUT] 69
but that isn't the id of the copper block!!! is this a bug with the OreDictionary or am i doing something very wrong? I did all of this testing because this code works with iron and gold, but not for the ore dictionary checks:
public static ItemStack getGrindingResult(ItemStack itemstack)
{
if (itemstack != null)
{
if (itemstack.getItem().itemID == Block.oreIron.blockID) return new ItemStack(TechCraftItems.DUSTS, 2, 0);
if (itemstack.getItem().itemID == Block.oreGold.blockID) return new ItemStack(TechCraftItems.DUSTS, 2, 1);
if (itemstack.getItem().itemID == OreDictionary.getOreID("oreCopper")) return new ItemStack(TechCraftItems.DUSTS, 2, 2);
if (itemstack.getItem().itemID == OreDictionary.getOreID("oreTin")) return new ItemStack(TechCraftItems.DUSTS, 2, 3);
if (itemstack.getItem().itemID == OreDictionary.getOreID("oreSilver")) return new ItemStack(TechCraftItems.DUSTS, 12, 4);
if (itemstack.getItem().itemID == OreDictionary.getOreID("oreAluminium")) return new ItemStack(TechCraftItems.DUSTS, 2, 5);
}
return null;
}