Mojira Archive
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