-
Bug
-
Resolution: Fixed
-
1.19.2, 22w42a, 22w43a, 22w44a, 22w45a, 22w46a, 1.19.3 Pre-release 2, 1.19.3 Release Candidate 1, 1.19.3, 23w03a, 23w04a, 1.19.4 Pre-release 1, 1.19.4 Pre-release 3, 1.19.4, 23w12a, 23w13a, 23w14a, 23w16a, 23w17a, 23w18a, 1.20 Pre-release 1, 1.20 Pre-release 2, 1.20 Pre-release 4, 1.20 Pre-release 5, 1.20 Pre-release 6, 1.20 Pre-release 7, 1.20 Release Candidate 1, 1.20, 1.20.1, 23w31a
-
None
-
Confirmed
-
Trading
-
Low
-
Platform
If you hold an item that the villager is buying, it will hold out an item that its selling corresponding to the item you were holding. Now if that item were to be a totem of undying the villager holds, you can kill it and make it use it to glitch out that trade. I would expect a different result like either the trade being removed or the totem still being able to be traded, but it just transforms the totem item into air in the trade.
To replicate this, summon a villager that is selling a totem for any item, using the command below, and hold out the item it's selling, like the emerald using the command, then kill the villager and watch it use the totem. Now you can open its trading menu and see that the totem item has been replaced with air. I wouldn't expect it to be like that and would expect a different outcome or even having the villager not able to use the totem. But I guess this is what happens if you perform these very specific steps.
/summon minecraft:villager ~ ~ ~ {VillagerData:
{type:plains,profession:farmer,level:2},Offers:{Recipes:[{buy:
{id:emerald,Count:1},sell:{id:totem_of_undying,Count:1}}]},Health:1,Attributes:[\{Name:"generic.max_health",Base:1f}]}
- relates to
-
MC-271598 Killing a villager while it offers a Totem of Undying uses the totem and removes it from its hand
- Open