Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-198493

Villagers lose their discounts when relogging while it is a zombie villager

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 22w43a
    • 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4 Release Candidate 1, 1.16.4, 20w45a, 20w46a, 20w48a, 20w49a, 20w51a, 21w03a, 1.16.5, 21w05a, 21w05b, 21w06a, 21w07a, 21w08a, 21w08b, 21w10a, 21w11a, 21w13a, 21w14a, 21w15a, 21w16a, 21w17a, 21w18a, 1.17, 1.17.1, 1.18.1
    • None
    • Confirmed
    • Trading

      The bug

      When you cure a zombie villager to get discounts, and then turn him back into a zombie villager and then relog and cure him again, it will lose the discounts. They only disappear upon relogging when he is a zombie villager.

      How to reproduce

      1. Spawn a villager and make it link to a work station
      2. Make sure to play on hard difficulty
      3. Spawn a zombie to turn him into a zombie villager
      4. Cure him
      5. Use this to command to speed up the process:
        /execute as @e[type=minecraft:zombie_villager,distance=..20] run data merge entity @s {ConversionTime:0}
      6. Turn him back into a zombie villager
      7. Relog
      8. Cure him again and use this command:
        /execute as @e[type=minecraft:zombie_villager,distance=..20] run data merge entity @s {ConversionTime:0}

        The prices will be as they were before, because he lost all of its discounts and then got one single discount through the curing process.

            boq [Mojang] Bartosz Bok
            bugsbugsbugs bugsbugsbugs
            Votes:
            14 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: