The bug
When the player changes their movement state between standing, swimming, sneaking, and gliding, the position regarded as their eye height does not change. This hinders the use of the /execute anchored
command, as the purpose is to account for dynamically changing eye positions.
Steps to reproduce:
Create a new world with the Upcoming Creator Features experiment enabled (or use an existing world).
Place down a repeating command block, enable the Always Active setting, and insert the following command in it. This should place a particle in front of the player's eyes using the new
/execute anchored
./execute as @p at @s anchored eyes run particle minecraft:basic_flame_particle ^ ^ ^3
Change your movement state, such as sneaking or swimming.
→❌ The particle's offset remains the same, at about 1.5 blocks up, instead of adjusting for your new eye level.
Related issues
Attachments
Comments

Thank you for your report!
We're tracking this issue in MCPE-31896, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki