mojira.dev
MC-8431

command block arguments do not work on scoreboard objectives

I have set up a objective called "money" that shows up in the sidebar. I then gave myself some money.

I added 2 command blocks. One that executes "give @p[money_min=1,r=5] 33" and the other "scoreboard players remove @p[money_min=1,r=5] 1"

As expected, activating this configuration exchanges my money for dispensers.

However, the command continues to decrement and spew dispensers until well below zero.

Comments 3

money_min -that is wrong....i think you need to write score_money_min or somting...i dont remember....

Command blocks use the score_ prefix to refer to objectives. Your current setup is not filtering based on the amount of your money objective.

Thanks. I'll check the wiki to verify that it is listed correctly everywhere.

I would like to add that error reporting could be improved 😉

Pepijn de Vos

(Unassigned)

Unconfirmed

Snapshot 13w04a

Retrieved