#Anchored eyes bug? (1.21.11)

1 messages · Page 1 of 1 (latest)

violet sundial
#

Hi fellow datapackers.
While working on a simple raycast code, I experienced a weird thing with the good old anchored eyes.

at @s anchored eyes seems not to move the command execution position to the player 'eyes' without a positioner using local coordinates. (^ ^ ^)

Just try running:
/execute at @s anchored eyes run particle minecraft:block_marker{block_state:"barrier"} ^ ^ ^
/execute at @s anchored eyes run particle minecraft:block_marker{block_state:"barrier"} ~ ~ ~

You'll see only the first one will actually show the particle in the eyes position, the other will just use the player position origin (aka 'feet')

Is this intended behaviour?

hardy gust
#

it is

#

anchored doesn't change the position

#

only the anchor

#

which you can target with ^ ^ ^

violet sundial
#

well makes sense

#

I can't see how I've never stumbled upon this in my whole time as datapacker.

#

thanks for the answer