mojira.dev
MC-241147

Playful panda rolling ignores movement speed attribute

The bug

Playful pandas rolling ignores their movement speed attribute, which makes them move when their generic.movement_speed is set to 0.

To reproduce

  1. Summon a playful panda with a generic.movement_speed of 0:

    /summon minecraft:panda ~2 ~ ~ {HiddenGene:"playful",MainGene:"playful",attributes:[{id:"minecraft:generic.movement_speed",base:0.0d}]}
  2. Wait for a while.

  3. ❌ The panda will start rolling.

  4. Summon a playful panda with a generic.movement_speed of 10:

    /summon minecraft:panda ~2 ~ ~ {HiddenGene:"playful",MainGene:"playful",attributes:[{id:"minecraft:generic.movement_speed",base:10.0d}]}
  5. Wait for a while.

  6. ❌ The panda rolls with the same speed.

Expected result

Playful pandas wouldn't move when their generic.movement_speed is set to 0, and their rolling would not ignore said attribute.

Linked issues

Comments 1

This behavior is present in 1.17.1 as well and isn't exclusive to the 1.18 snapshots.

ampolive

(Unassigned)

Confirmed

Platform

Low

Mob behaviour

command

1.17.1, 21w44a, 1.18 Pre-release 1, 1.18 Pre-release 2, 1.18 Pre-release 6, ..., 1.20 Release Candidate 1, 1.20, 1.20.1, 1.20.4, 1.21

Retrieved