The bug
When a player is inside the collision box of some entities minecraft.walk_one_cm
stat increases.
How to reproduce 1
Get for example some cows in a small (1x1) fenced area
Run:
/scoreboard objectives add walk minecraft.custom:minecraft.walk_one_cm /scoreboard objectives setdisplay sidebar walk
Get in the fenced area
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)
Place a rail facing to a block
Place a minecart on the rail
Run:
/scoreboard objectives add walk minecraft.custom:minecraft.walk_one_cm /scoreboard objectives setdisplay sidebar walk
Move towards the minecart to make your hitboxes overlap
→ ❌ The score increases without moving
Linked issues
relates to 1
Attachments
Comments 12
Confirmed for 1.13.1, since command updates i'll leave a updated version on how to reproduce.
How to reproduce
Get some cows in a 4x4 fence area
/scoreboard objectives add walk minecraft.custom:minecraft.walk_one_cm
/scoreboard objectives setdisplay sidebar walk
Get in the fence area with the cows.
/scoreboard players add @s walk
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}
Still in 1.9.1-pre3