Good evening dear community of good questions,
I have 2 commands: 1 that generates an item and 1 (X) that generates a villager that exchanges this item with another (Y). The problem is, if I get X and want to trade in with Y, I don't want to be exchanged.
References:
Excerpt from the item at Villager (Y):
[…] {Id: "minecraft: potion", Count: 1b, day: {display: {Name: '{"text": "[#] Ethanol (20 ° C)", "bold": true, "italic ": false} '}, CustomPotionEffects: [{Id: 9b, Amplifier: 0b, Duration: 1800, ShowParticles: 0b}, {Id: 15b, Amplifier: 0b, Duration: 300, ShowParticles: 0b}, {Id: 18b, Amplifier: 3b, Duration: 6000}, {Id: 19b, Amplifier: 1b, Duration: 200}], CustomPotionColor: 16777215}} […]
Item data for the generated item (X):
{id: "minecraft: potion", Count: 1b, day: {display: {Name: '{"text": "[#] Ethanol (20 ° C)", "bold": true, "italic": false } '}, CustomPotionEffects: [{Id: 9b, Amplifier: 0b, Duration: 1800, ShowParticles: 0b}, {Id: 15b, Amplifier: 0b, Duration: 300, ShowParticles: 0b}, {Id: 18b, Amplifier: 3b, Duration: 6000}, {Id: 19b, Amplifier: 1b, Duration: 200}], CustomPotionColor: 16777215}}
Hi, this is a Minecraft bug. On the other hand, nothing can be done in vanilla.