Jump to content

Recommended Posts

Posted

I've been trying to make an infinite fuel item by returning said item after it has been used as fuel the same way a Lava Bucket returns an empty Bucket after it has been used. I am aware of the methods getContainerItem, hasContainerItem and hasCraftingRemainingItem but I don't know which one to use (if it even is one of them) nor do I know how they work. Can anyone help me get this to work?

Below is the items current code.

package com.hivemind.superheated.item;

import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.crafting.RecipeType;

public class BlazingCore extends Item {

	public BlazingCore(Properties properties) {
		super(properties);
	}
	
	@Override
	public int getBurnTime(ItemStack itemStack, RecipeType<?> recipeType) {
		return 400;
	}
}

 

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.