Mojira Archive
MC-52819

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

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.

Works As Intended

EscoreFairplay

2014-04-12, 03:08 AM

2015-09-07, 06:04 AM

2014-04-12, 10:29 AM

0

3

Unconfirmed

count, inventory, scoreboard

Minecraft 14w11b - Minecraft 14w21bMinecraft 14w11b, Minecraft 14w18b, Minecraft 14w19a, Minecraft 14w20b, Minecraft 14w21a, Minecraft 14w21b

-