mojira.dev
MCPE-64354

Testfor @e[type=pillager,c=4] not working correctly

I wrote c=4 in the command /testfor, but the command works even when the number of mobs equals a different number

Attachments

Comments 3

Hi Ilya,

I think you've misunderstood the count selector. Count will limit the number of returns (ie in this case you would never return more than 4 even if 600 existed in the area). Count is not designed to only return when exactly x number of mobs are in an area.

What I think you'll need to do (and I'm no command block expert) is use a comparator output from the command block running the command. I think you'd be wanting to execute on a power level of 4 but it would need testing.

Ionic

Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response

Is this still an issue in the latest version?

If it is, please be sure to include steps to reproduce the problem:

Steps to Reproduce:
1.
2.
3.

Observed Results:
(Briefly describe what happens)

Expected Results:
(Briefly describe what should happen)

If your ticket does not look like the example given here, then it's likely to be closed as incomplete.

This ticket will automatically reopen when you reply.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.

For any account or purchasing related issues, please contact Minecraft Customer Support directly, as we cannot assist with those here at the bug tracker.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Ilya Chervak

(Unassigned)

Unconfirmed

Android

1.15.0.54 Beta

Retrieved