When a player is teleported every tick, some of their actions seem to be invalidated only on server-side.
How to Reproduce:
Place a command block, set it to "Repeat/Always Active"
Input the command
execute as @a facing entity @s feet positioned as @s run tp @s ^ ^ ^-0.1
(note that other situations of teleporting work too, but I find this is the easiest to notice)
Try to place blocks or open the Command Block GUI as the it pulls you in.
Note that occasionally, the block doesn't place or the GUI opens with no command inside.
It's very occasional, so it may not be a major issue, but the fact that it happens at all freaks me out when I make Datapacks that apply these kinds of teleports.
Attachments
Comments 2
It seems likely that this is caused by an underlying bug that causes the player to click on their own hitbox, preventing the item from placing. This can be seen by performing the same test with a water bucket, lava bucket, or bucket of aquatic mob. These items can be placed through entities, and do not suffer from this issue.
I can confirm this in 1.21 Pre-Release 2.