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

[please remove this] Clear query for item count does not return entity stat AffectedItems

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.8.7
    • None
    • Unconfirmed

      Please remove this bug report, it appears I made some mistake somewhere i dunno, but it's working fine now.

      Setting a player's AffectedItems stat to a score and then running a clear command to test the amount of items of a type in their inventory does not update their score. However, when it is on a command block running the clear command, the result is provided and updated.

      Test:
      1. /stats entity @p set AffectedItems @p scoreobj
      2. /scoreboard players set @p scoreobj 0
      3. /give @p stone
      4. /clear @p stone 0 0
      5. Score does not update

      Test 2 with block:
      1. /stats block X Y Z set AffectedItems @p scoreobj
      2. /scoreboard players set @p scoreobj 0
      3. /give @p stone
      4. /clear @p stone 0 0
      5. Score does update

            Unassigned Unassigned
            onnowhere Onnowhere
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: