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
is duplicated by 16
Comments 18
And also MC-116905 – I think that's why the game explicitly ignores NBT, to avoid using enchanted items.
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.
The issue MC-269738 and it's status as triaged may be relevant to this issue.
Sorry, but bug reports are only accepted in English.