mojira.dev
MC-154422

/loot give causes the item to be deleted if player inventory is full

The bug

Doing a /loot give @s ... for a player in Survival or Adventure mode while the player inventory is full causes the items to be deleted, rather than spawned as item entities, contrary to the behavior exhibited by the /give command when the player inventory is full.

Reproduction steps

  1. Fill your complete inventory

    /give @s minecraft:wooden_sword 36
  2. Switch to Survival mode

  3. Use /loot give

    /loot give @s loot minecraft:blocks/acacia_button

    ❌ The command feedback says "Dropped 0 items" and you did not get any item, neither was the item entity dropped

Attachments

Comments 11

affects 1.15 pre-release 1

confirmed in 20w19a. 

This is a pretty serious issue since it makes the command work incorrectly. Most users of the command probably assume that loot will drop if a player's inventory is full.

@@unknown, this report is about /loot give, not the /give command. /give deleting items for Creative mode is likely MC-8409 or closely related and probably intended.

My apologies, I misread the ticket. Can confirm in 21w03a.

Can confirm in 1.17.1. I've attached a video along with a screenshot demonstrating the problem.

[media][media]
1 more comments

Confirmed in 1.20 pre-release 4.

Can confirm in 23w45a.

Confirmed for 1.20.4.

Confirmed in 1.21.4

Piyotato

(Unassigned)

Confirmed

Platform

Normal

Commands

Minecraft 1.14.2, 1.15 Pre-release 1, 20w19a, 20w20b, 1.16 Pre-release 5, ..., 1.19.3, 1.20 Pre-release 4, 23w45a, 1.20.4, 1.21.4

Retrieved