Jump to content

Recommended Posts

Posted (edited)

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 by BloodshotPico
Adding my name at the end.
  • 2 weeks later...
Posted

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. :)

Posted
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.

  • Like 1
Posted
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. :)

Posted
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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.