Villagers lose their discounts when relogging while it is a zombie villager
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
- Spawn a villager and make it link to a work station
- Make sure to play on hard difficulty
- Spawn a zombie to turn him into a zombie villager
- Cure him
- 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} - Turn him back into a zombie villager
- Relog
- 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.
2020-08-20, 06:49 PM
2022-11-04, 01:41 PM
2022-10-21, 01:54 PM
14
7
1.16.2 - 1.18.1
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