Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-97163

Items held with the cursor will drop upon death with the keepInventory gamerule enabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 16w07a, Minecraft 16w07b, Minecraft 1.9 Pre-Release 1, Minecraft 1.9 Pre-Release 3, Minecraft 1.9 Pre-Release 4, Minecraft 1.9, Minecraft 1.9.1, Minecraft 1.9.2, Minecraft 16w32a, Minecraft 16w35a, Minecraft 16w36a, Minecraft 1.11.2, Minecraft 1.12.1, Minecraft 1.13.1, 1.14.4, 19w41a, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 20w48a, 21w03a, 21w05b, 21w06a, 21w07a, 1.17, 1.19.4, 1.20.4, 24w04a, 1.20.5, 1.21
    • Confirmed
    • Survival
    • Items

      When a player dies while holding any item(s) in their mouse cursor (in an inventory, or GUI for example) the stack will be removed from that player's inventory and drop as an item entity, even if the keepInventory gamerule is enabled.

      Steps to Reproduce:

      (Must be in survival mode, with cheats enabled)

      1. Enable 'keepInventory':
        /gamerule keepInventory true
        
      2. Take continuous damage (ie; stand near a cactus, in fire, falling. etc)
      3. Before dying, open your inventory and hold an item in your cursor

      Expected & Observed Behavior:

      - What ever you're holding will drop on the ground as an entity where you died.
      - The items would be returned to the player inventory.

        1. MC-97163.mp4
          4.36 MB
          [Mod] Avoma
        2. MC-97163.png
          388 kB
          [Mod] Avoma

            Unassigned Unassigned
            Jingy [Helper] Jiingy
            Votes:
            10 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              CHK: