mojira.dev
MCPE-226102

c=-1 target selector is broken

In the recent Minecraft Bedrock Edition update, the @n target selector was added, but an issue has arisen with the existing c target selector.

Originally, using c=-a was supposed to select the farthest 'a' entities. However, after the update, only c=-1 behaves incorrectly by selecting the closest single entity instead of the farthest one.

Other negative values like c=-2 and c=-3 still work correctly.

Steps to reproduce:

  1. /execute as @e[c=-1] run say Hello
    -> selects the closest entity instead of the farthest one

  2. /execute as @e[c=-2] run say Hello
    -> correctly selects the farthest 2 entities

This bug breaks the intended functionality of selecting the farthest entities using negative c values, affecting command usage and automation.

Please fix this issue as soon as possible.

Linked issues

Attachments

Comments 0

No comments.

boy1309

(Unassigned)

1460641

Confirmed

Android

android 14

1.21.100

1.21.101 Hotfix

Retrieved