mojira.dev
MC-260104

Corners of blocks can't detect player

Corners of blocks can't detect Entity

What I expected to happen was...:
Whole block should detect entity if he is standing on it **

What actually happened was...:
If entity (or player) is standing on the corner of some block, he can't be detected with any command that can detect entity standing on the block.

Steps to Reproduce:
1. Stand on some block
2. Use sneak to move to the corner of the block
3. Use some command, which should detect you For stone you can {}use: /execute as @p at @s if block ~ ~-0.1 ~stone run say @s

Comments 2

You're not above stone then... at/positioned as a player runs at the center of the feet, not the whole area (it it'd need to run a command for every point below the player).

This is not a bug, but you misunderstanding the command.

Thats because the center of your feet is not directly on a block. As Dhranios already said, thats just how the command works

Ondřej Krejča

(Unassigned)

Unconfirmed

1.19.3

Retrieved