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

Command Block Arguments Length


    • Icon: Bug Bug
    • Resolution: Fixed
    • Snapshot 13w09a
    • Snapshot 13w05b, Snapshot 13w06a, Snapshot 13w07a
    • Windows 8 Server
    • Unconfirmed
    • Creative

      I created the team 'lobby' for a game I am making.
      I typed in this command in a command block:
      /scoreboard teams join lobby @p[-1103,52,450,2]
      I expected this command to add a person who is at the coordinates -1103 52 450 and in a range of 2 to the team lobby.
      I activated this command block and the server kicked everybody on it.
      The screenshot attached shows what showed up on everybody's screen when we were kicked.
      We then could not join and that screen kept on showing up every time we tried to join the server.
      I looked in the server log and it added "@p[-1103,52,450,2]" to the team lobby.
      I deleted the scoreboard.dat and we could join again.
      I ran the command block again and the same thing happened.
      I then tried with the command:
      /scoreboard teams join lobby @p[-1103,52,450]
      This time it added the person closest to those coordinates as I expected.
      This seems to occur every time the @p and all its arguments total up to more than 16 characters and there is no person at the specified location and other then that, it works as intended.
      Even using:
      @p[x=-1103,y=52,z=450,r=2] does not work it only increases the number on the screen when we get kicked from 18 to 26.
      The same happens with:
      /scoreboard teams join lobby @a[c=1,x=-1103,y=52,z=450,r=2]

            dinnerbone [Mojang] Nathan Adams
            addgame Adam
            2 Vote for this issue
            2 Start watching this issue