mojira.dev
MC-117424

/execute does not execute correctly

The /execute command will execute said command at the executors location instead of at the specified entity's location.

For example, running the following

/execute @e[type=bat] ~ ~ ~ testfor @p[r=2]

in a command block will only give a successful output if you are within a radius of 2 blocks from the command block, as opposed to from the bat.

Here are some video examples where the bat is told to explode (via summoned creeper) with a successful output:
Previous/Expected Behavior (1.12-pre1): https://youtu.be/05ALD44QtaU
Current Behavior (1.12-pre2): https://youtu.be/En6l4UmK1rg
(The commands themselves used in the example videos are consistent and listed in either video's description.)

Linked issues

Comments 2

Thank you for your report!
However, this issue has been closed as a Duplicate of MC-117319.

It has been linked to this report. If you have additional information, please add it to that report.
Please search before reporting, as it's likely that one exists already.

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

I'd like to point out that I did search before reporting, however, I wasn't expecting it to be marked as "resolved" considering it still occurs in the latest version.

I'll add what I've found to MC-117319 if it happens to still occur in the next version released.

11people5

(Unassigned)

Unconfirmed

Minecraft 1.12 Pre-Release 2

Retrieved