mojira.dev
MCPE-78772

Villagers drop items when killed

Update by @unknown
Summary
Villagers can drop items they are offering to trade when killed.

How to reproduce:

  1. Summon a villager and give him a job.

  2. Take an emerald and hold it up until the villager offers an item

  3. /effect @s strength 999999 14

  4. Switch to another slot in your hotbar and quickly kill the villager.

-> Sometimes he drops the item that he was holding ❌

Original Description
When holding an item a villager will hold a bunch of different items they could said item for, if the player kills them while they are have the item out, the villager can drop the item. It's not every time but it does happen.

Linked issues

Comments 9

This issue has been reported in the recent 1.16 betas (MCPE-72089) but I was unable to reproduce this issue in the 1.14.60 Hotfix. Is the version in your report correct?

Yes it was happening in the 1.14.60 Hotfix. The way I did it was holding an emerald near a villager, give myself strength 20 and kill the villager while they have the item. It doesn't happen every time but it did happen.

Confirmed in 1.14.60 and 1.16.0.64

I think this is an intended game mechanic

Still affects 1.16.1, 1.16.10, and beta 1.16.100.50. 
Eigdelbert Hamuel Musni Agulto, this is not intended.

Still affects 1.16.100.58

affects 1.16.220.50

Eigdelbert Hamuel Musni Agulto Kill villagers for getting their trades for free(That's what I understand from what he said)

Still affects v1.20.41, just happened to me in my survival world.

Gruntastic

(Unassigned)

385014

Confirmed

Multiple

item-dropping, villager

1.18.10.27 Beta, 1.18.10.26 Beta, 1.18.0.24 Beta, 1.18.0.22 Beta, 1.18.0.20 Beta, ..., 1.18.2 Hotfix, 1.18.30.33 Preview, 1.18.12 Hotfix, 1.19.20.24 Preview, 1.19.11 Hotfix

Retrieved