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

Entities Do Not Accept "team" Selector Parameter/Only living entities (mobs, animals, villagers, players) can be on a team

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • Minecraft 14w30b, Minecraft 14w30c, Minecraft 14w31a, Minecraft 14w32a, Minecraft 14w32b, Minecraft 14w32c, Minecraft 14w32d
    • None
    • Unconfirmed

      When running the following:

      /scoreboard teams join TEAM1 @e[type=Item]

      The item entity is entered into the team as expected. However, inserting a "team" parameter like so:

      /scoreboard teams join TEAM2 @e[type=Item,team=TEAM1]

      Will not work, and the entity remains in TEAM1. The same occurs when setting the parameter to "blank", "not blank", and "not on team" (given that they could match to begin with, of course):

      /scoreboard teams join TEAM2 @e[type=Item,team=]
      /scoreboard teams join TEAM2 @e[type=Item,team=!]
      /scoreboard teams join TEAM2 @e[type=Item,team=!TEAM1]

      It will work correctly on player targets and regular mobs. Note that this is not restricted to joining teams (in which the following will not work):

      /say @e[type=Item,team=TEAM1]

            searge [Mojang] Searge (Michael Stoyke)
            skylinerw [Mod] Skylinerw
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: