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

Scoreboard command entity selector prefers players

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Minecraft 1.8.9, Minecraft 16w03a, Minecraft 16w04a
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Windows 7; Java 64bit
    • Confirmation Status:
      Unconfirmed

      Description

      So I was trying some things with execute and scoreboard, and I noticed some wrong behaviour regarding execute commands that have a scoreboard command in them.

      When you stand very closely to an entity, and you perform an execute-scoreboard command on it, the @e[c=1] selector will prefer you (the player) over itself. When you use an execute-say the @e[c=1] just selects itself, as expected.

      Here are the commands I ran to prove the bug:
      Command:

      execute @e[...] ~ ~ ~ scoreboard players set @e[c=1] testObj 1

      Result:

      The scoreboard value of you (the player) for testObj gets set to 1

      ------------
      Command:

      execute @e[...] ~ ~ ~ say @e[c=1]

      Result

      The entity says it's own name.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: