-
Bug
-
Resolution: Duplicate
-
None
-
Minecraft 1.14.2
-
vanilla server 1.14.2, op account on the server
-
Unconfirmed
-
(Unassigned)
Villager takes undiscounted price despite having discount.
I have a villager that sells enchanted book for 22 emeralds and a book. It sells it for discounted price of 1 emerald and a book (it's cured zombie villager).
Despite showing me discounted price it takes price of 23 emeralds each time I buy a book.
https://www.youtube.com/watch?v=MXdWjpM739M&feature=youtu.be
For better debugging I used data get command on that villager:
[19:40:33] [Client thread/INFO]: [CHAT] Librarian has the following entity data: {Brain: {memories: {"minecraft:job_site": {pos: [I; -958, 9, -1738], dimension: "minecraft:overworld"} } } , HurtByTimestamp: 2644, Attributes: [{Base: 20.0d, Name: "generic.maxHealth"}, {Base: 0.0d, Name: "generic.knockbackResistance"}, {Base: 0.5d, Name: "generic.movementSpeed"}, {Base: 0.0d, Name: "generic.armor"}, {Base: 0.0d, Name: "generic.armorToughness"}, {Base: 48.0d, Modifiers: [ {UUIDMost: 5917967947921311305L, UUIDLeast: -5904918447711954997L, Amount: -0.05997899203072909d, Operation: 1, Name: "Random spawn bonus"} ], Name: "generic.followRange"}, {Base: 0.0d, Name: "generic.attackKnockback"}], FoodLevel: 0b, Invulnerable: 0b, FallFlying: 0b, ForcedAge: 0, Gossips: [ \{Type: "major_positive", Value: 25, TargetMost: 1609281239365339289L, TargetLeast: -8897459037561276573L}, \{Type: "trading", Value: 25, TargetMost: 1609281239365339289L, TargetLeast: -8897459037561276573L}, \{Type: "minor_negative", Value: 25, TargetMost: 1609281239365339289L, TargetLeast: -8897459037561276573L}], PortalCooldown: 0, AbsorptionAmount: 0.0f, LastRestock: 5522L, FallDistance: 0.0f, DeathTime: 0s, Xp: 153, HandDropChances: [0.085f, 0.085f], PersistenceRequired: 0b, Age: 0, Motion: [0.0d, -0.0784000015258789d, 0.0d], UUIDLeast: -5515482595870152719L, Health: 20.0f, LeftHanded: 0b, Air: 300s, OnGround: 1b, Dimension: 0, Offers: {Recipes: [ {maxUses: 8, buyB: {id: "minecraft:air", Count: 1b}, buy: {id: "minecraft:paper", Count: 24b}, sell: {id: "minecraft:emerald", Count: 1b}, xp: 2, uses: 0, priceMultiplier: 0.05f, specialPrice: 0, demand: -16, rewardExp: 1b}, {maxUses: 6, buyB: {id: "minecraft:book", Count: 1b}, buy: {id: "minecraft:emerald", Count: 22b}, sell: {id: "minecraft:enchanted_book", Count: 1b, tag: {StoredEnchantments: [ {lvl: 4s, id: "minecraft:fire_protection"}]}}, xp: 1, uses: 0, priceMultiplier: 0.2f, specialPrice: 0, demand: 6, rewardExp: 1b}, {maxUses: 6, buyB: {id: "minecraft:air", Count: 1b}, buy: {id: "minecraft:book", Count: 4b}, sell: {id: "minecraft:emerald", Count: 1b}, xp: 10, uses: 0, priceMultiplier: 0.05f, specialPrice: 0, demand: 6, rewardExp: 1b}, {maxUses: 6, buyB: {id: "minecraft:air", Count: 1b}, buy: {id: "minecraft:emerald", Count: 1b}, sell: {id: "minecraft:lantern", Count: 1b}, xp: 5, uses: 0, priceMultiplier: 0.05f, specialPrice: 0, demand: -6, rewardExp: 1b}, {maxUses: 6, buyB: {id: "minecraft:book", Count: 1b}, buy: {id: "minecraft:emerald", Count: 8b}, sell: {id: "minecraft:enchanted_book", Count: 1b, tag: {StoredEnchantments: [{lvl: 1s, id: "minecraft:aqua_affinity"}]}}, xp: 10, uses: 0, priceMultiplier: 0.2f, specialPrice: 0, demand: -2, rewardExp: 1b}, {maxUses: 6, buyB: {id: "minecraft:air", Count: 1b}, buy: {id: "minecraft:emerald", Count: 1b}, sell: {id: "minecraft:glass", Count: 4b}, xp: 10, uses: 0, priceMultiplier: 0.05f, specialPrice: 0, demand: 6, rewardExp: 1b}, {maxUses: 6, buyB: {id: "minecraft:air", Count: 1b}, buy: {id: "minecraft:emerald", Count: 5b}, sell: {id: "minecraft:clock", Count: 1b}, xp: 15, uses: 0, priceMultiplier: 0.05f, specialPrice: 0, demand: -6, rewardExp: 1b}, {maxUses: 6, buyB: {id: "minecraft:air", Count: 1b}, buy: {id: "minecraft:emerald", Count: 4b}, sell: {id: "minecraft:compass", Count: 1b}, xp: 15, uses: 0, priceMultiplier: 0.05f, specialPrice: 0, demand: -6, rewardExp: 1b}, {maxUses: 6, buyB: {id: "minecraft:air", Count: 1b}, buy: {id: "minecraft:emerald", Count: 20b}, sell: {id: "minecraft:name_tag", Count: 1b}, xp: 30, uses: 0, priceMultiplier: 0.05f, specialPrice: 0, demand: -6, rewardExp: 1b}]}, Rotation: [312.15195f, 0.0f], HandItems: [{}, {}], ArmorDropChances: [0.085f, 0.085f, 0.085f, 0.085f], UUIDMost: -4145941517770405163L, Pos: [-957.0108066107484d, 9.0d, -1736.1129276058841d], Fire: -1s, ArmorItems: [{}, {}, {}, {}], CanPickUpLoot: 1b, VillagerData: {profession: "minecraft:librarian", level: 5, type: "minecraft:plains"}, HurtTime: 0s, Inventory: []}
[19:41:00] [Client thread/INFO]: [CHAT] Librarian has the following entity data: {maxUses: 6, buyB: {id: "minecraft:book", Count: 1b} , buy: {id: "minecraft:emerald", Count: 22b}, sell: {id: "minecraft:enchanted_book", Count: 1b, tag: {StoredEnchantments: [ {lvl: 4s, id: "minecraft:fire_protection"} ]}}, xp: 1, uses: 0, priceMultiplier: 0.2f, specialPrice: 0, demand: 6, rewardExp: 1b}
- duplicates
-
MC-151282 Villager trade GUI doesn't show the correct price on servers if trade demand is high
- Resolved