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

@s doesn't work in give command

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Minecraft 17w45a
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Windows 10, Java 1.8
    • Confirmation Status:
      Unconfirmed

      Description

      The command /give @s diamond, which I used commonly in pre-17w45a, no longer works. It fails with the message "Only players may be affected by this command", even though @s can only target a player in this instance. If I change it to /give @s[type=player] diamond, it works.

      Why this is a problem:
      The game's assertion that @s could target entities other than players is false when the player is executing the command.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: