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

Inserting item that is repeatedly replaced by command block into 'Destroy Item' slot prevents it from appearing again

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19, 1.19.2
    • Confirmed
    • Creative
    • Networking
    • Normal
    • Platform

      If you create repeating command block that keeps replacing slot in player's inventory with item, then deleting this item through 'Destroy Item' slot sometimes makes it not appear again (Even though in player's data you can see that item in that slot).

      This fixes on its own, when you rejoin world, die, or try inserting other item in that slot (in the last case, item you tried inserting gets permanently destroyed)

      You can see all this in video I attached (sorry for low quality, but the size limit here is only 10 Mb...)

      In case this wasn't obvious, at the first time sword re-appeared I middle-clicked (picking up grass block).

      Command to reproduce bug (in repeating command block):
      execute as @p run item replace entity @s hotbar.0 with minecraft:diamond_sword 1

            Unassigned Unassigned
            Ogrodnik10 Ogrodnik10
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: