Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12.2, Minecraft 18w03b, Minecraft 1.13.1, 1.15.1, 1.15.2 Pre-release 2, 1.15.2, 1.16 Release Candidate 1, 1.16, 1.16.3, 20w46a, 1.16.5, 21w05b, 21w08b, 1.17, 1.17.1, 1.18.2, 1.19, 1.19.2
When you right click on a boat to get in, the statistic minecraft.custom:minecraft.boat_one_cm increases based on how far away you were from the boat.
- Make a scoreboard with the minecraft.custom:minecraft.boat_one_cm statistic and set the display to the sidebar
- Get a boat, place it down and go in to it
→ As you can see, you haven't moved yet but the score has gone up with around 500 points
The further you stand away as you click on the boat the more points you get.
Based on 1.11 decompiled using MCP 9.35 rc1
The method net.minecraft.entity.player.EntityPlayer.addMountedMovementStat(double p_71015_1_, double p_71015_3_, double p_71015_5_) adds the distance the player moves when riding an entity. Since the player moved from where he was originally standing to now in the boat, the method sees this as moving the boat. This also occurs with minecarts, pigs, and horses.
This could probably be fixed by having the method net.minecraft.entity.Entity.addPassenger(Entity) call the method net.minecraft.entity.Entity.updatePassenger(Entity) if it successfully added the passenger.
Note: This would probably fix the bug that chicken jockeys start riding a chicken which has a block above it as well.