Posted October 18, 20186 yr Hello so I've been looking around and I haven't yet found anything for the updated version of forge for the fuel values of items and was wondering if anyone would be able to shed some light upon this at all? It's just the basics I'm looking for, something like giving the item the properties of coal yet changing the value to be something custom. I am currently running the latest version of the mdk (by accident) 1.12.2 - 14.23.5.2770 Thanks for any help in advance. ~Blood Edited October 18, 20186 yr by BloodshotPico Adding my name at the end.
October 18, 20186 yr Author 6 minutes ago, V0idWa1k3r said: Override item#getItemBurnTime and return the value you want. Thanks for the response, with that I've found more information on it like here:
October 28, 20186 yr Author Regarding this same issue, how do I make an item last for 8-9 stacks of items along with 81 stacks of items? This is the 81 stacks of items code (Or along 81 stacks or something :') ) package com.bloodshotpico.overwhelmingores.items; import net.minecraft.item.ItemStack; public class ItemPristine extends ItemBase { public ItemPristine(String name) { super(name); } @Override public int getItemBurnTime(ItemStack itemstack) { return 1036800; } } Any help with this? Thanks in advance.
October 28, 20186 yr 4 hours ago, BloodshotPico said: last for 8-9 stacks of items along with 81 stacks of items? Could you please clarify your question? What is your actual issue? What do you want to acheive? 4 hours ago, BloodshotPico said: return 1036800; Take note that casts the fuel burn time to a short before saving it to the NBT, meaning that the max burn time you can have persist is 32767. As your number is greater than 32767 it will not persist, instead it will be saved as -21023. There is no fix to this issue as far as I am aware, that's a vanilla oversight.
October 28, 20186 yr Author 6 hours ago, V0idWa1k3r said: Could you please clarify your question? What is your actual issue? What do you want to acheive? Take note that casts the fuel burn time to a short before saving it to the NBT, meaning that the max burn time you can have persist is 32767. As your number is greater than 32767 it will not persist, instead it will be saved as -21023. There is no fix to this issue as far as I am aware, that's a vanilla oversight. That was my issue it wasn't burning to the value I wanted, is there anyway around it being limited to that value at all? Or is that a hard limit? Thanks for the information too.
October 28, 20186 yr 3 hours ago, BloodshotPico said: is there anyway around it being limited to that value at all? 10 hours ago, V0idWa1k3r said: There is no fix to this issue as far as I am aware, that's a vanilla oversight https://github.com/MinecraftForge/MinecraftForge/issues/5056
October 28, 20186 yr Author 3 minutes ago, V0idWa1k3r said: https://github.com/MinecraftForge/MinecraftForge/issues/5056 This is supposed to be fixed in the new update 1.13? Of forge.
October 28, 20186 yr 4 minutes ago, BloodshotPico said: This is supposed to be fixed in the new update 1.13? Of forge. Well, yes. But forge for 1.13 isn't out yet.
October 28, 20186 yr Author 1 minute ago, V0idWa1k3r said: Well, yes. But forge for 1.13 isn't out yet. Yeah I know, I'll just wait for that to come out and hopefully have the correct values there, thanks for the info man, big time thanks for it.
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.