mojira.dev
MC-180134

Villagers from 1.13.2 or below do not increase or decrease prices

Villagers from 1.13.2 or below do not increase or decrease prices (except with Hero of the Village). 

Steps to reproduce:

  1. Summon a villager in 1.13.2 or below and update to the latest version

  2. Hit the villager
    -> the price does not increase as expected

  3. Infect the villager and cure it
    -> the price does not decrease as expected

It would be expected that the prices would change.

Attachments

Comments 4

Steps to reproduce:

  1. Summon a villager with a custom trade:

    /summon villager ~ ~ ~ {VillagerData:{profession:farmer,level:2,type:plains},Offers:{Recipes:[{buy:{id:emerald,count:32},sell:{id:emerald_block,count:1},rewardExp:0b,maxUses:9999999}]}}
    /summon villager ~ ~ ~ {VillagerData:{profession:farmer,level:2,type:plains},Offers:{Recipes:[{buy:{id:emerald,count:32},sell:{id:emerald_block,count:1},rewardExp:0b,maxUses:9999999}]}}
  1. Hit the villager -> the price does not increase as expected

  2. Infect the villager and cure it -> the price does not decrease as expected

  3. Give yourself hero of the village -> the price does decrease

    /effect give @p minecraft:hero_of_the_village
    /effect give @p minecraft:hero_of_the_village

Also, would like to request ownership to maintain the report.

The prices of custom trades do change - you just have to specify the priceMultiplier NBT tag (see MC-175018). The part about old villagers not changing their prices seems like a valid bug, though.

Thanks j_p_smith! Using /data get entity {UUID} Offers, there was no price multiplier for the 1.13.2 villagers which is why it's occurring. Is it intentional that hero of the village discounts trades without a price multiplier? If so, I could probably remove that from the report.

Yes, I'd say the Hero of the Village part is probably intended.

W_V

sof

(Unassigned)

Community Consensus

Mob behaviour, Trading, Village system

1.15.2, 20w17a, 20w18a, 20w19a, 20w20a, ..., 21w19a, 1.17.1, 24w39a, 1.21.3, 1.21.4

Retrieved