[MCPE-21754] Level minimum detection (command blocks) Created: 05/May/17  Updated: 09/May/18  Resolved: 09/May/18

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

Type: Bug
Reporter: Hunterelliott618@gmail.com
Resolution: Cannot Reproduce Votes: 2
Labels: None

Confirmation Status: Unconfirmed
Platform: Tablet - iOS - iPad Mini

 Description   

I was creating an adventure map and trying to set up a command block shop using player levels as the currency. For each buyable item I had two command blocks setup (one impulse and one chain, with the impulse facing towards the chain), the commands were as follows (in order):
Impulse command block: /xp -2L @p[lm=2]
Chain command block: /give @p[lm=2] diamond
If you have more than 2 levels the shop works fine; it takes away 2 levels from the player and gives them their diamond. If the player has less than 2 levels, the command block still takes away 2 levels even if the player doesn't have that many and gives them a diamond (allowing them to cheat the shop). The @p[lm=2] should set the level minimum to 2, so anyone with less cannot buy from the shop. I am not amazing at using commands, but I believe this is a bug when using level minimum arguments.



 Comments   
Comment by [Mojang] Mega_Spud (Jay Wells) [ 09/May/18 ]

Cleaning up old tickets: This ticket has not been updated recently (1 year+) so is being closed as Cannot Reproduce. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines.

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Feedback – 📖 Game Wiki

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