-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
None
-
Server:
Linux minecraft-server 5.0.0-1018-azure #19~18.04.1-Ubuntu SMP Wed Aug 21 05:13:05 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Java:
openjdk 11.0.4 2019-07-16t Cloud Shell
OpenJDK Runtime Environment (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3)
OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3, mixed mode, sharing)Server: Linux minecraft-server 5.0.0-1018-azure #19~18.04.1-Ubuntu SMP Wed Aug 21 05:13:05 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux Java: openjdk 11.0.4 2019-07-16t Cloud Shell OpenJDK Runtime Environment (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3) OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3, mixed mode, sharing)
-
CraftBukkit version git-Spigot-94af569-a3fdef8 (MC: 1.14.4) (Implementing API version 1.14.4-R0.1-SNAPSHOT)
-
Yes
When you make a villager buy something with a custom name, you will not be able to successfully trade with the villager. In the client, it appears that the trade went though, but the items "rubber band" back into the player's inventory.
My guess is that the string when an Item has color is not exactly the same when comparing it in the Villager's inventory, or that maybe it's not being deserialized correctly
Summon Command for the Villager:
/summon villager ~ ~1 ~ {
VillagerData:
,
Invulnerable: 1,
PersistenceRequired: 1,
Offers: {
Recipes: [{
buy:
,
buyB: {
id: ghast_tear,
Count: 1,
tag:{
CustomModelData:204002,
display: {
Name: '
',
Lore: ['
']
}
}
},
sell:
,
maxUses: 9999999
}]
},NoAI:1
}
Command to summon the item:
/give @p minecraft:ghast_tear{display:{Name:'
{"text":"Soul of Light","color":"light_purple"}',Lore:['
{"text":"The essence of light creatures"}']},CustomModelData:204002} 1
Same commands do work in Vanilla Minecraft on a local world
Let me know if you need any other info!
- is caused by
-
SPIGOT-5063 Deserialized items with colored names don't match original items
- Resolved