mojira.dev
MCPE-229940

running '/execute' local coordinates on a entity doesnt work properly on entities riding boats

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:

  1. Spawn any entity (for example a villager)

  2. Spawn a boat and bring the entity you spawned to ride the boat

  3. 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.

Attachments

Comments 1

Chawanwit

(Unassigned)

1526241

Confirmed

Windows

1.21.114 Hotfix

Retrieved