Posted October 12, 201311 yr Working on a custom furnace. Been sifting through my code for hours thinking I've done something wrong. After I tracked down this issue this is where it was located: public static int getItemBurnTime(ItemStack itemstack){ System.out.println(itemstack.toString(); if(itemstack == null){ return 0; }else{ Item item = itemstack.getItem(); System.out.println(GameRegistry.getFuelValue(itemstack)); return GameRegistry.getFuelValue(itemstack); } } Now looking where I posted the println statements I know itemstack is not null and also know it's the correct itemstack by the console output. Doesn't matter What I through in the furnace, coal, wood etc still returns 0. Is this a bug or am I missing something?
October 12, 201311 yr Hi I suspect that GameRegistry.getFuelValue might be for custom fuels only? You might try calling TileEntityFurnace.getItemBurnTime(Itemstack) instead, I think it will do what you want. -TGG
October 12, 201311 yr You use the function wrong. Its just a fuel register function like Modloader.addFuel.
October 17, 201311 yr Author Yeah thanks, I figured it out about an hour after I posted this. Consider the topic dead
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.