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

migrated

The bug should be assigned to the Commands category.

migrated

This also happens when you die.

migrated

Can confirm in 1.16.1

 

Chandler

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

Avoma

Video attached.

migrated

The game does not save this attribute due to an error.

Avoma

Can confirm in 1.18.1 and 22w05a.

Avoma

Can confirm in 1.18.2 and 1.19 Pre-release 1.

Avoma

Can confirm in 1.19.

[media][media]
Avoma

Can confirm in 1.19.2.

Brain81505

Can confirm in 1.20.1

BugTracker

Requesting ownership if possible.

migrated

Still here in 1.21's full release.

jokbon

still here

Erik Morris

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

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, ..., 24w20a, 1.21, 1.21.3, 1.21.4, 25w08a

Retrieved