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

"/data get" returns slot number when getting item NBT

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • Minecraft 1.14.2 Pre-Release 2
    • None
    • Unconfirmed
    • (Unassigned)

      To reproduce:

      1. Have stones in your e.g. fourth hotbar slot, but nowhere else.
      2.

      /execute store result score @s scoreName run data get entity @s Inventory[{id:"minecraft:stone"}]

      Result: Your score in the scoreboard "scoreName" becomes 3, like the slot number.

      Expected: Either 1 for success or, better: The number of matching slots. Currently this command fails and stores the number 0 if there are multiple stacks of stone.

            Unassigned Unassigned
            FaRo1 Fabian Röling
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: