Add a tag if the amount of glass bottles is higher than 0
scoreboard players tag @a[score_hasBottles_min=1] add TAG
When I execute these commands in order, I do not get the TAG because hasBottles does not increase. This should theoretically work, but something is going wrong, I don't know what.
- I have already added the hasBottles objective to my world and I'm holding more than 1 glass bottle.
- Running the clear command seperately returns the correct amount of affected items.
- When running the first command, it says that it has "stored the AffectedItems stat in hasBottles on @s".
I'm at a dead end here and I would like for someone to help me. Thanks in advance.
I am assuming that the /stats command is not in an execute command. Therefore your command is giving the score to the command block which doesn't work as it is a block, not an entity. In order for it to work, try using /execute @a ~ ~ ~ <stats commands>