When using the command “/execute” local position on an entity riding a boat or rideable entities, it doesn't work properly.
For example, a villager is on a boat. If I run the command “/execute as @e[type=villager] at @s positioned ^ ^ ^10 run setblock ~~~ dirt” it doesn't place the block where the villager is looking at.
Steps To Reproduce The Bug:
Spawn any entity (for example a villager)
Spawn a boat and bring the entity you spawned to ride the boat
Run the command “/execute as @e[type=(the entity you spawned)] at @s positioned ^ ^ ^10 run setblock ~~~ dirt” (you can change the 10 to any value like from 5 - 15)
Result:
The dirt block will not be placed at the direction the (entity you spawned) is looking at.
I don't know if this is a bug or intentional so pls fix it if its a bug.
Sorry my english is bad.