[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.
This problem can also be done with @p as the target:

/execute @p ~ ~ ~ detect ~ ~-1 ~ stone -1 kill @p


 Comments   
Comment by [Mojang] Mega_Spud (Jay Wells) [ 23/Mar/17 ]

Thank you for your report!
However, this issue has been closed as Cannot Reproduce.

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 MCPE-20543.

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Feedback – 📖 Game Wiki

Generated at Sat Jan 11 15:27:04 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.