mojira.dev
MC-94127

minecraft.walk_one_cm increases when standing in collision box of certain entities

The bug

When a player is inside the collision box of some entities minecraft.walk_one_cm stat increases.

How to reproduce 1

  1. Get for example some cows in a small (1x1) fenced area

  2. Run:

    /scoreboard objectives add walk minecraft.custom:minecraft.walk_one_cm
    /scoreboard objectives setdisplay sidebar walk
  3. Get in the fenced area

  4. Jump in from above and once you are not visibly moving and the score is increasing turn the cows' AI off:

    /execute as @e[type=cow] run data merge entity @s {NoAI:1}

    → ❌ The score increases without moving

How to reproduce 2 (easier)

  1. Place a rail facing to a block

  2. Place a minecart on the rail

  3. Run:

    /scoreboard objectives add walk minecraft.custom:minecraft.walk_one_cm
    /scoreboard objectives setdisplay sidebar walk
  4. Move towards the minecart to make your hitboxes overlap
    → ❌ The score increases without moving

Linked issues

Attachments

Comments 12

Still in 1.9.1-pre3

Can confirm for MC 1.12.1.

Confirmed for 1.13.1, since command updates i'll leave a updated version on how to reproduce.

How to reproduce

  1. Get some cows in a 4x4 fence area

  2. /scoreboard objectives add walk minecraft.custom:minecraft.walk_one_cm

  3. /scoreboard objectives setdisplay sidebar walk

  4. Get in the fence area with the cows.

  5. /scoreboard players add @s walk

  6. Once you notice that the stat increases even though you are not visibly moving turn the cows' AI off

    /execute as @e[type=cow] run data merge entity @s {NoAI:1}

Confirmed in 1.16.1.

2 more comments

Can confirm in 21w06a. Video attached.

Can confirm in 21w07a.

Can confirm in 1.16.5 and 21w08b.

Can confirm in 21w15a.

Can confirm in 21w17a.

marcono1234

(Unassigned)

Confirmed

(Unassigned)

collision, stat, statistics, walk, walkOneCm

Minecraft 15w50a, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.4, Minecraft 16w21a, Minecraft 1.10.2, ..., 21w08b, 21w15a, 21w17a, 1.20.3 Release Candidate 1, 1.20.4

Retrieved