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

Switching gamemodes while in inventory can delete items

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.16.1, 1.16.4
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      If your gamemode is switched between survival and creative via a datapack when you pick up an item in your inventory with your cursor, that item will be unexpectedly deleted. This makes it difficult to create datapacks or gamemodes that involve switching between the two, especially if important items are involved, or if those items are supposed to trigger the gamemode change themselves.

      How to reproduce

      1. Obtain an item in survival
      2. Make a datapack that changes your gamemode while your in your inventory screen (on an interval, triggered by another player, etc.)
      3. Attempt to move that item in your inventory, and hold it as your gamemode changes

      What I'd expect to happen: The item remains under my cursor, or is dropped in front of me
      What actually happens: The item disappears.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            Pacca Pacca
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              CHK: