Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-21754

Level minimum detection (command blocks)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • None
    • 1.0.8.1
    • None
    • Unconfirmed
    • Tablet - iOS - iPad Mini

      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.

            Superpill5 Hunterelliott618@gmail.com
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: