mojira.dev
MCPE-114668

Player Movement Doesn't Work Properly

When attempting to change a players movement speed via behavior events where a component group is added with a new movement value, the movement will take effect for about a tick and then revert back to default, even when the movement component has been removed from the general components section. This requires us to use an environment sensor (or some other method) to update movement every tick, which will cause unnecessary lag, especially with multiple players.

This is probably happening with underwater movement as well.
Perhaps a potential fix could be adding the attributes system that Java Edition has?

Steps To Reproduce:

  1. Download, install and start a new world with the supplied pack (experimental features on)

  2. Run the following command

    /event entity @s player_movement
    /event entity @s player_movement
  1. Observe that your movement speed will speed up for a tick

  2. Run the following command

    /tag @s add player_movement
    /tag @s add player_movement
  1. Your movement speed will now be properly doubled

    1. The tag is a trigger for an environment sensor trigger that will constantly trigger the player_movement event (with multiple players this can get quite laggy)

Expected Results:

  • Player movement saves across component groups without the need to constantly update it

Actual Results:

  • Player movement reverts to the original movement when not constantly updated

 

Attachments

Comments 3

Resolving temporarily as Awaiting Response. Could you please attach the add-ons you're using to this ticket?

Added example pack and redid the steps to reproduce

Thank you for your report!
After consideration, the issue is being closed as Working as Intended.

Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.

Full Version HistorySnapshot Version HistoryFeature Requests and Suggestions

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Gruntastic

(Unassigned)

528115

Confirmed

Multiple

add-on, behavior, behavior-pack, component-group, components, player, player-movement

1.18.10.27 Beta, 1.18.10.26 Beta, 1.18.0.24 Beta, 1.18.0.22 Beta, 1.18.0.20 Beta, ..., 1.19.11 Hotfix, 1.19.63, 1.20.50.22 Preview, 1.20.50.23 Preview, 1.20.41 Hotfix

Retrieved