mojira.dev
MCPE-165051

'/execute anchored' is only applied once

Using more than one `execute anchored` per command doesn't work as expected and only the first one is applied.

Examples to reproduce (put them in a repeating commandblock):

execute as @a at @s anchored eyes run particle minecraft:basic_flame_particle ^^^3

will put the particle 3 blocks in front of where the player is looking.

execute as @a at @s anchored feet run particle minecraft:basic_flame_particle ^^^3

will put the particle 3 blocks in front of where the player is looking, but forward based on the feet position.

execute as @a at @s anchored eyes anchored feet run particle minecraft:basic_flame_particle ^^^3

will put the particle 3 blocks in front of where the player is looking, instead of at the feet.

execute as @a at @s anchored feet anchored eyes run particle minecraft:basic_flame_particle ^^^3

will put the particle 3 blocks in front of where the player is looking based on the feet instead of the eyes.

You might say "but why would you want to do that anyways": in more complex execute commands, being able to switch back and forth between these is very helpful.

For example, using the method described here you can use a single execute command to check whether a player is roughly looking in the direction of something.

Comments 3

I'm experiencing the same problem in 1.19.70.24. It's easy to reproduce by

/execute anchored eyes anchored feet run setblock ^ ^ ^1 dirt

Still an issue in 1.19.73 and 1.19.80.24

This has caught me in 1.19.83, trying to use the Java-derived method described above on the reddit link to test of an entity is looking at something. The anchor stays at the eyes even after anchored feet.

Plagiatus

(Unassigned)

1044061

Confirmed

Windows

Windows 10

vanilla-parity

1.19.50, 1.19.81 Hotfix, 1.20.10

Retrieved