Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-52547

Selectors on commands run by /execute are not run as if by /execute's target

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 14w11b
    • Fix Version/s: Minecraft 14w30c
    • Labels:
      None
    • Confirmation Status:
      Unconfirmed

      Description

      When run directly by a player the following command works as expected.

      Kills Creepers in a large area around the player: /kill @e[type=Creeper,x=-128,dx=256,z=-128,dz=256,y=0,dy=256]

      Selectors on commands run by execute are not run as if by the target, but by whatever is running the execute command instead.
      Kills Creepers in a large area around the executor (e.g. a command block) and not all players: execute @a ~ ~ ~ kill @e[type=Creeper,x=-128,dx=256,z=-128,dz=256,y=0,dy=256]

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            xkero xkero
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: