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

/execute does not execute as a Player (or entity)

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Works As Intended
    • Minecraft 1.8.3, Minecraft 1.8.4, Minecraft 1.8.6, Minecraft 15w37a, Minecraft 15w43c
    • None
    • None
    • Java 8_60 JRE x64
    • Community Consensus
    • Creative

    Description

      if you want to execute for example the command

      /execute @r ~ ~ ~ scoreboard teams join Team 4 

      it will give you two error messages:
      Player 'commands.generic.player.unspecified' cannot be found
      and
      `Failed to execute 'tp ~ ~1 ~' as <Player name>
      where <Player name> is the @p player.
      There are three bugs here, but if one gets fixed, the others become irrelevant:

      • The command doesn't work like it would if it got executed from the player (which execute should simulate).
      • The player name doesn't get put into the first error message. If the target selection for example meets an item, it gets displayed the same way as in the /kill feedback, but not for the player.
      • There are two error messages for one error.

      If the first one gets fixed, the other two get irrelevant.

      Attachments

        Issue Links

          Activity

            People

              searge [Mojang] Searge (Michael Stoyke)
              RoiEX Robin T.
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                CHK: