mojira.dev
MC-195830

The "minecraft:movement_speed" attribute resets upon reloading the world

The Bug:

The "minecraft:movement_speed" attribute resets upon reloading the world.

All attributes should be saved upon the world being reloaded. A workaround for this bug would be to use attribute modifiers instead of altering the base attribute.

Steps to Reproduce:

  1. Alter your "minecraft:movement_speed" attribute by using the command provided below.

    /attribute @s minecraft:movement_speed base set 0.3
  2. Run around and observe your movement speed.

  3. Exit the world, reload into it, run around, and observe your movement speed.

Observed Behavior:

The "minecraft:movement_speed" attribute is reset.

Expected Behavior:

The "minecraft:movement_speed" attribute would not be reset.

Linked issues

Attachments

Comments 15

The bug should be assigned to the Commands category.

This also happens when you die.

Can confirm in 1.16.1

 

Reports can only be confirmed for the latest version (1.16.5) and snapshot

Video attached.

5 more comments

Can confirm in 1.20.1

Requesting ownership if possible.

Still here in 1.21's full release.

still here

Still an issue in 1.21.5 — this is incredibly annoying when trying to give players permanent stat boosts via datapack.

user-a4a49

Avoma

(Unassigned)

Confirmed

Platform

Low

Commands, Player, Save Data

1.16.1, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Pre-release 2, 1.16.2 Pre-release 3, ..., 1.21, 1.21.3, 1.21.4, 25w08a, 1.21.7

Retrieved