[MCPE-20438] /execute can't detect player as the target Created: 16/Mar/17 Updated: 03/Apr/17 Resolved: 23/Mar/17 |
|
| Status: | Resolved |
| Project: | Minecraft (Bedrock codebase) |
| Component/s: | None |
| Affects Version/s: | 1.0.5.3, 1.0.5.13 |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | ItsPlantseed | ||
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Confirmation Status: | Unconfirmed |
| Platform: | Android |
| Description |
|
The /execute command can not detect player as the target. /execute @e ~ ~ ~ detect ~ ~-1 ~ stone -1 kill @p This command will kill the player (in survival mode) if any entities stand on a stone block. But in this case the player won't trigger the command, even though the player is an entity as well. /execute @p ~ ~ ~ detect ~ ~-1 ~ stone -1 kill @p |
| Comments |
| Comment by [Mojang] Mega_Spud (Jay Wells) [ 23/Mar/17 ] |
|
Thank you for your report! We were unable to reproduce the problem you are describing. I'm trying to work through the /execute command bugs, and I noticed that your example is trying to detect an invalid block id (Stone -1). I think the issue here is the relative position not working correctly, as detailed in Quick Links: |