mojira.dev
MC-299998

Teleport command does not tab-complete properly with single-entity selectors

When typing a tp facing command, the autocomplete/tab-complete does not suggest possible completions when the first selector argument is a single-entity selector (@s, @p, @n, @r, <username>)

To reproduce:

  1. Type any partial command below:

/tp @s
/tp @n
/tp @r
/tp @p
/tp <your username>
/tp @s ~ ~ ~
/tp @s ~ ~ ~ facing
/tp @s ~ ~ ~ facing entity @s
etc.
  1. Attempt to tab-complete at various stages of writing the command

    1. Expected behavior: There should be tab complete options for all the arguments including destination, location, rotation, facing, facinglocation, facingEntity, facingAnchor. The behavior should be identical to the behavior with the commands /tp @a and /tp @e.

    2. Actual behavior: After writing this partial command, all tab-completion options afterwards will no longer be suggested. Only syntax is hinted in gray text and notice that ‘incorrect argument’ is also displayed while attempting to write the commands despite valid command. These behaviors do not exist when typing a /tp @a or /tp @e command.

Linked issues

Attachments

Comments 1

onnowhere

(Unassigned)

Confirmed

Commands

1.21.8, 25w31a

Retrieved