mojira.dev
MCPE-240754

Custom command location argument completions use the integer coordinates of the targeted block.

The client autocompletes custom command parameters registered with the type CustomCommandParamType.Location using the integer coordinates of the targeted block, despite this type being compatible with float coordinates. Thus, these parameters invariably autocomplete like the location parameter of /setblock, as opposed to /tp. There is no way to access the /tp-like autocompletion.

Steps to reproduce

  1. Create a world with the attached behaviour pack.

  2. Look at a block.

  3. Open the chat and type the partial command /test:location followed by a space to allow autocompletion of the parameter.

Expect result

  • The location suggested is the exact location you are targeting.

Observed result

  • The location suggested is always an integer coordinate.

Attachments

Comments 1

Thank you for helping us improve Minecraft! We saved your files:

[media]

StrawberryJam

(Unassigned)

Unconfirmed

Multiple

26.32

Retrieved