-
Bug
-
Resolution: Fixed
-
1.0.5.13, 1.1.0.0
-
Confirmed
-
Android
When using the /execute command with coordinates, the relative coordinates start from the wrong place, ie the players head (or top half) rather than the feet.
What I expected to happen:
This command should detect that a player is standing on a stone block: /execute @p ~ ~ ~ detect ~ ~-1 ~ stone 0 kill @p ("-1" is one below the player)
What actually happened:
However only this command works: /execute @p ~ ~ ~ detect ~ ~-2 ~ stone 0 kill @p - Which means the relative position is starting from the wrong place (ie the head not the feet)
Steps to Reproduce:
- Standing on the ground (grass), use the command /setblock ~ ~-1 ~ stone, it places a stone block directly under your feet
- Now use the command /execute @p ~ ~ ~ detect ~ ~-1 ~ stone 0 kill @p, nothing happens
- Now try /execute @p ~ ~ ~ detect ~ ~-2 ~ stone 0 kill @p - It detects the stone block underneath you and executes the /kill command
Edit: Added test world, uses "/give diamond" instead of /kill
- is duplicated by
-
MCPE-20891 /execute Not detecting players
- Resolved
- relates to
-
MCPE-17091 Command suggestions show up if there's a space at the beginning
- Resolved
-
MCPE-20413 Successful /execute Command Outputs Error Message
- Resolved
-
MCPE-21362 Ender Pearl Teleportation - Wrong Y Coordinate
- Resolved