mojira.dev
MC-48939

Command block argument doesn't exist: cm

This isn't a personal bug, but more of a request for an argument that is missing in the testfor command. You can use "c" to set the maximum number of players/entities to effect. However, unlike other arguments, there is no cm for minimum number of players. Could you please add this? It would be extremely useful. Thanks!

Comments 2

This site is for bug reports only. For feature suggestions or changes please see: Minecraft Suggestions on Reddit.

This can be very usefull to know the number of players with the output power of a command block.
And, if we put negative number to cm (for example cm=-10), the command take the C limit without the first 10 (-cm) players.

With command like this /testfor @a[c=10], @a[c=10,cm=-10], /testfor @a[c=10,cm=-20], ...
And a circuit like this :
[C] = Command block ; — RedStone ; [R] = Comparator
[C][R] ----- 10 ----- [C][R] ----- 10 ----- [C][R] ----- 10 -----

The distance of the redstone is the number of players

Daniel H

(Unassigned)

Unconfirmed

block, command, players, testfor

Minecraft 14w07a

Retrieved