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

/execute can't detect player as the target

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • None
    • 1.0.5.3, 1.0.5.13
    • None
    • Unconfirmed
    • Android

      The /execute command can not detect player as the target.

      /execute @e ~ ~ ~ detect ~ ~-1 ~ stone -1 kill @p

      This command will kill the player (in survival mode) if any entities stand on a stone block. But in this case the player won't trigger the command, even though the player is an entity as well.
      This problem can also be done with @p as the target:

      /execute @p ~ ~ ~ detect ~ ~-1 ~ stone -1 kill @p

            PlantSeed ItsPlantseed
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: