Posted June 30, 20223 yr 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.