Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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.

  • 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:

 

  • 2 weeks later...
  • 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. :)

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.

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

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.

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

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.