mojira.dev
MC-48985

c(amount) argument does not work in testfor

What was expected to happen:

The command block will only power the comparator when there is only 1 person in the area.

What happened:

The Comparator turned on with more than 1 person

Command: testfor @a[x=-800,y=11,z=4,dx=26,dy=12,dz=26,c=1]

notice has the c DOES equal 1 yes, yes it does indeed. Therfore this has been declared a malacious bug ruining many works of command blocks

Comments 3

The c parameter LIMITS the selected players to the given amount. It still works if there are more players. try /say @e[c=3] It will output 3 Entities even though there are more in your world. You can use the comparator output strength to count the players.

Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. If this has been done, we can reopen the issue.

Keep in mind that the "Resolved"-Status on this ticket just means "Answered", and that we are waiting for further information on whether this issue still exists or not. We will reopen it as soon as the requested information has been delivered.

Ticket resolved as incomplete, because no answer in a reasonable amount of time (1+ year), if it still happens, please update the ticket.

Nick Todd Johnson

(Unassigned)

Unconfirmed

Minecraft 14w07a

Retrieved