Minecraft wiki entry for Before_Village_%26_Pillage, associated text: Villagers would distinguish between data values, so different colors of wool could not replace white wool, charcoal could not be traded in place of coal, and damaged tools could not be traded in place of fully repaired tools‌[Bedrock Edition only]. NBT data, however, was ignored, so the content of a written book did not matter.