When teleporting a player with the true option to a block of 0.01 or less, the player can teleport to the block. The video contains examples of teleportation relative to the player and to exact coordinates.
Steps to Reproduce:
Enter the command while standing close to the wall: /execute at @s run tp ~0.01 ~ ~ true
Observed Results:
The player is teleported to the block
Expected Results:
The player does not teleport
Attachments
Comments 11

The "true" option is supposed to prevent teleporting inside a block. From the videos, it appears that you are teleporting next to the block instead of being inside. If the location would actually be completely inside a block, does "true" prevent teleporting for you?
The "true" option is supposed to prevent teleporting inside a block. From the videos, it appears that you are teleporting next to the block instead of being inside. If the location would actually be completely inside a block, does "true" prevent teleporting for you?
@Umija5895M If you teleport more than 0.1 to the block, it is prevented, but even if you teleport to 0.11, the player is still not in the block.
It is still not clear what you think is wrong? If you teleport entirely inside a block does it prevent teleport? Please try providing more specific examples of what works as expected and what doesn't. So far, from the explanation and video it does not seem like you are trying to teleport inside a block, but rather just next to one.
@Umija5895MΒ The video shows me teleporting with true as close to the wall as I can get, as close as I can get to the wall, and the player is not pushed out of the block. But if I teleport 0.01 further to the block, it still teleports me even though I get a bit stuck in the block (although true is used to exclude this case), and the player is pushed out because of this. But if I teleport 0.011, it doesn't teleport the player.
I am unable to reproduce this as of 1.21.22. Is this still an issue?
This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.
Quick Links:
π Bug Tracker Guidelines β π¬ Community Support β π§ Mojang Support (Technical Issues) β π§ Microsoft Support (Account Issues)
π Project Summary β βοΈ Feedback and Suggestions β π Game Wiki
Yes, this is still an issue. Come close to the wall and teleport 0.01 into the wall with the option true
Uploaded a new video
Can confirm. The steps to reproduce should be updated to clarify that (as shown in the video) you need to type /execute at @s run tp ~0.01 ~ ~ true
when standing up against a wall to reproduce the bug.
Thank you for your report!
After consideration, the issue is being closed as Won't Fix.
Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behavior, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.
Quick Links:
π Bug Tracker Guidelines β π¬ Community Support β π§ Mojang Support (Technical Issues) β π§ Microsoft Support (Account Issues)
π Project Summary β βοΈ Feedback and Suggestions β π Game Wiki