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

@s doesn't work in give command

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 17w45a
    • None
    • Windows 10, Java 1.8
    • Unconfirmed

      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.

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

              Created:
              Updated:
              Resolved: