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

distance argument can't find players with @a, @p or @e[type=player]

XMLWordPrintable

    • Confirmed

      Using "distance" as an @a, @p, or @e[type=player] argument will make the command unable to find players.

      How to reproduce:

      • Make sure you're the only entity in the world
        /kill @e[type=!player]
      • Type in chat:
        /say @a

        this works and will find the player.

      • Type in chat
        /say @a[distance=..5]

        this does not work and state no entities were found.

      • Type in chat
        /say @e[distance=..5]

        this works and will find the player.

      • Type in chat
        /say @e[type=player]

        this works and will find the player.

      • Type in chat
        /say @e[type=player,distance=..5]

        this does not work and state no entities were found.

      • Type in chat
        /say @s[type=player,distance=..5]

        this works and will find the player.

            dinnerbone [Mojang] Nathan Adams
            Pepijn96 Pepijn
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: