mojira.dev
MC-32305

Give and kill at the same time overrides keepinventory

I'm using command blocks for my minigame, and keepInventory is on, but when I use instant damage to kill players and give at the same time, they drop their items

Comments 5

Can't reproduce.
Only the given item drops because the player couldn't pick it up.

"at the same time" is impossible. Either give or kill will come first.

With what command are you killing them?

/give @a 1
/effect @a 7 20 7

Unable to reproduce. The item that has been given does not have a chance to be picked up out of the air before the player is killed, so it is not picked up, but all the other items stay in the player's inventory.

Brandon L

(Unassigned)

Unconfirmed

Minecraft 13w38c

Retrieved