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

Execute does not work properly on @e

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Minecraft 1.12 Pre-Release 2
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Unconfirmed

      Description

      When using execute on an entity, the executed command will be executed on the player (or command block) instead of the entity.

      How to test
      1. Open a world and find a sheep.
      2. Run the command: /execute @e[type=sheep,c=1] ~ ~ ~ setblock ~ ~2 ~ stone
      3. Stone will be placed 2 blocks above YOU instead of above the sheep
      4. Chat will say [Sheep: Block placed] which means the sheep is running the command; its just relative to the player instead of the sheep itself

      On previous versions of minecraft, the block would be placed relative to the sheep since the sheep is technically running the command via the execute. I can only assume this broke due to the addition of @s

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                1kingsam the1kingsam
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: