mojira.dev
MC-129057

The recipe book doesn't move ingredients that have NBT data

Since the beginning of version 1.12 and the introduction of the Recipe Book, there is a bug related to this book that prevents ingredients containing NBT data from being automatically transferred to the crafting grid when clicking on a book.
The following video shows the bug with leather containing a compound tag :
https://streamable.com/x2t23
The recipes are normally not sensitive to NBT data, which allows the recipe but prevents adding the ingredients.
The error is only server side and related to a player inventory method that is only used for the recipe book.
Related MCP Mappings :

PlayerInventory.findSlotMatchingUnusedItem(ItemStack p_194014_1_)
ServerRecipeBookHelper.func_194325_a(Slot p_194325_1_, ItemStack p_194325_2_)

Affected method: net.minecraft.world.entity.player.Inventory.findSlotMatchingUnusedItem(ItemStack) (Mojang name)
The check Inventory.isSameItem(ItemStack, ItemStack) makes all subsequent checks irrelevant.

Linked issues

MC-128863 Water bottle does not get transfered from inventory when a custom recipe is selected from in game recipie book. Resolved MC-175400 Dispenser recipe in recipe book crafts a dropper instead of a dispenser Resolved MC-176837 Dispenser glitches in recipe book Resolved MC-178671 gridstone fishing pole cannot craft warped fungus on a stick Resolved MC-195000 Click a Dispenser from the recipe book, but get a Dropper Resolved

Comments 18

Sorry, but bug reports are only accepted in English.

I'll edit it np 🙂

Yes, i just help you to identify the trouble but it looks the same bug 🙂

And also MC-116905 – I think that's why the game explicitly ignores NBT, to avoid using enchanted items.

8 more comments

It was resolved as Works As Intended by Mojang themselves, that means it is by design. That's a non-debatable fact.

Villagers and crafting are entirely different things. Additionally, that report has not been triaged by Mojang and can still get resolved as intended by them. A non-triaged report does not mean it is a bug.

This may be working as intended, but the side-effect of it may not be. It doesn't make sense to have a recipe book that doesn't allow you to auto-fill the dispenser recipe (the reason I came to see if there was a bug report). I doubt Mojang intentionally made it where you couldn't auto-complete the dispenser recipe.

Not allowing ingredients with NBT data is likely intentional, but breaking certain auto-complete recipes almost certainly is not.

I would start a separate issue about that, but all of them are resolved as duplicates of this, despite them being different.

Is this going to be fixed or not?

Resolution:Works As Intended

The issue MC-269738 and it's status as triaged may be relevant to this issue.

Corail

(Unassigned)

Confirmed

Crafting, UI

Minecraft 1.12.2, 1.15.1 Pre-release 1, 20w12a, 20w13b, 20w15a, 20w17a, 1.16.1, 1.16.2, 1.17.1

Retrieved