Posted February 27, 20223 yr So back in 1.16.5, I was able to get the burn time of an itemstack like coal with ForgeHooks.getBurnTime(itemstack); but how would I do the same in 1.18.1?
February 27, 20223 yr in the same way: ForgeHooks.getBurnTime(itemstack, RecipeType.SMELTING) this returns the burn time of the given ItemStack for the Smelting RecipeType
February 27, 20223 yr Author 17 minutes ago, Luis_ST said: in the same way: ForgeHooks.getBurnTime(itemstack, RecipeType.SMELTING) this returns the burn time of the given ItemStack for the Smelting RecipeType I have tryed that, but it returns -1 instead of the burn time Edit: Actually nvm you're right. Just forgot I had multiple lines calling itemstack.getBurnTime() throughout my code. Edited February 27, 20223 yr by NindyBun
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.