mojira.dev
MC-191718

Recipes with different ingredients don't choose the more specific one when using tags

The Bug:

When getting the output for the given items, the game does not try to pick the most accurate recipe if there is another recipe using a tag that said item is in.

Example:

Say I have a mod that adds a new blue sand, and I want it to smelt into blue glass, and also be in the #minecraft:sand item tag. If I place the blue sand into a furnace, it won't always choose the blue sand to blue glass recipe. Since blue sand is in the #minecraft:sand tag, it would sometimes choose the #minecraft:sand to glass recipe instead.

The Proposal:

When an item exists in multiple recipes, and one of those recipes is using a tag to specify that item, the recipe using the specific item should be prioritized over the one using the tag.

How to Reproduce:

I've included a datapack that adds two recipes and an item tag to demonstrate this issue. The recipes are #test:sand->glass and blue_concrete_powder->blue_stained_glass, with both being done in a crafting table. The tag test:sand contains sand and blue_concrete_powder. If all is working correctly, putting blue concrete powder in the crafting table should yield blue stained glass instead of regular glass.

Attachments

Comments 1

This is a feature request.

David Bakle

(Unassigned)

Confirmed

Crafting, Data Packs

1.16.1

Retrieved