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

Inventory Item Count:0b does not work with scoreboard @a

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • Minecraft 14w11b, Minecraft 14w18b, Minecraft 14w19a, Minecraft 14w20b, Minecraft 14w21a, Minecraft 14w21b
    • Unconfirmed

      Using the commands:

       /scoreboard players set @a Rupees 1 {Inventory:[{Count:1b,tag:{display:{Name:"Rupee"}}}]}

      or

       /scoreboard players set @a Rupees 2 {Inventory:[{Count:2b,tag:{display:{Name:"Rupee"}}}]}

      does work,

       /scoreboard players set @a Rupees 0 {Inventory:[{Count:0b,tag:{display:{Name:"Rupee"}}}]}

      does not.


      I am trying to make a Zelda like shop system - so the player score of an objective called "Rupees" has to be exactly the same as the amount of items called Rupee the player has in his inventory (because /clear does not have a minimum value).


      It works with the values 1-50 (max moneybag size, because 50 command-blocks is much) but not with zero.

      So if a player buys an item and I remove the rupees, the scoreboard will never be zero even if the player has no more rupees - and therefore he can always keep buying items.

            Unassigned Unassigned
            EscoreFairplay EscoreFairplay
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: