Jump to content

[1.15.2] Keeping NBT tags when smelting a custom item


udison999

Recommended Posts

I am having a problem with keeping NBTTags when smelting a custom item.

In my mod I have a MeatBase class, which is a food class just for meat. Each meat item created ingame gets a random marbling level, which is stored in nbt tags within the item. But when I cook the meat (using the vanilla furnace block) the tags get lost, ending in a meat item without any nbt in it. One way I tought would work was creating a custom RecipeType for my mod's meats items, but I could not find a way to make these recipes work in vanilla furnace.

I was looking for the best way to keep nbt tags in vanilla smelting specifically, since I am focusing in vanilla cooking for now, not a custom recipe type.

Any kind of help is very welcome, and I'm sorry if this is duplicated/answered in other topic.

 

Link to comment
Share on other sites

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.