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
Create a world with the attached behaviour pack.
Look at a block.
Open the chat and type the partial command
/test:locationfollowed 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.
Thank you for helping us improve Minecraft! We saved your files: