[MCPE-22991] Command Block error Created: 26/Jun/17  Updated: 07/Dec/18  Resolved: 07/Dec/18

Status: Resolved
Project: Minecraft (Bedrock codebase)
Component/s: None
Affects Version/s: 1.1.1.51
Fix Version/s: None

Type: Bug
Reporter: Nguyen Quoc Trung
Resolution: Works As Intended Votes: 0
Labels: None

Issue Links:
Relates
relates to MCPE-22445 Name Selector With Not Argument Incor... Resolved
Confirmation Status: Unconfirmed
Platform: Tablet - Android - Other (Specify in description)

 Description   

So I typed in this command in the command block: /testfor @p[lm=!10] . This means it should find the closest player with a minimum level of 10. But even when I have no level, the command block still execute that command and send feedback: it found me (I have no level, but the condition is the closest player with atleast 10 levels).



 Comments   
Comment by [MCPE Mod] Auldrick [ 02/Feb/18 ]

At the time this report was created, the lm target selector argument keyword may not yet have been supported. But even if it was, this command would not have worked because your syntax is incorrect. The correct syntax is:

/testfor @p[lm=10]

without the !. The corrected syntax works as expected.

This issue works as intended.

Comment by AhmadTeddyAudreyGamer2nd [ 27/Jan/18 ]

/testfor @p [lm=!10] is not working

Comment by Nguyen Quoc Trung [ 26/Jun/17 ]

Which means the lm tag is not working

Generated at Sat Jan 11 15:37:03 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.