Climbing statistic only registers upward movement
The bug
The minecraft.custom:minecraft.climb_one_cm statistic will only increment when the player climbs upwards, not downwards or sideways.
Steps to Reproduce:
- Run the following commands:
/scoreboard objectives add climb minecraft.custom:minecraft.climb_one_cm /scoreboard objectives setdisplay sidebar climb /scoreboard players set @a climb 0
Climb downwards or sideways whilst on a ladder.
→
Notice how the score does not increase.
Code analysis
Code analysis by [Mod] Chandler can be found in this comment.
Created Issue:
Climbing statistic only registers upward movement
The climbOneCm statistic will only increment when the player climbs upwards, not downwards or sideways.
Environment
Operating system: OSX 10.9.5
Java Version: 1.6.0_65
Operating system: OSX 10.9.5
Java Version: 1.6.0_65
The bug
The minecraft.custom:minecraft.climb_one_cm statistic will only increment when the player climbs upwards, not downwards or sideways.
Steps to Reproduce:
- Run the following commands:
/scoreboard objectives add climb minecraft.custom:minecraft.climb_one_cm /scoreboard objectives setdisplay sidebar climb /scoreboard players set @a climb 0Climb downwards or sideways whilst on a ladder.
→Notice how the score does not increase.
The bug
The minecraft.custom:minecraft.climb_one_cm statistic will only increment when the player climbs upwards, not downwards or sideways.
Steps to Reproduce:
- Run the following commands:
/scoreboard objectives add climb minecraft.custom:minecraft.climb_one_cm /scoreboard objectives setdisplay sidebar climb /scoreboard players set @a climb 0Climb downwards or sideways whilst on a ladder.
→Notice how the score does not increase.
Code analysis
Code analysis by [Mod] Chandler can be found in this comment.
The bug
The minecraft.custom:minecraft.climb_one_cm statistic will only increment when the player climbs upwards, not downwards or sideways.
Steps to Reproduce:
- Run the following commands:
/scoreboard objectives add climb minecraft.custom:minecraft.climb_one_cm /scoreboard objectives setdisplay sidebar climb /scoreboard players set @a climb 0Climb downwards or sideways whilst on a ladder.
→Notice how the score does not increase.
Code analysis
Code analysis by [Mod] Chandler can be found in this comment.
Affects 1.19
Affects 1.19
Possibly intended, climbing Means gaining hight, climbing a ladder/mountain/etc.
It can also refer to a descent. "He climbed down the ladder" is a legitimate use of the word.
True, that's why I said "possibly intended" but in general, climbing means gaining hight, and the real term for your sentence would be "decend from the ladder" but that barrely ever gets said.
Can confirm in 20w48a. I've attached a video showcasing this bug in action.
Can confirm in 21w03a.
Can confirm in 21w05b. Here are some steps to reproduce this issue:
Steps to Reproduce:
→
The code found at net.minecraft.entity.player.PlayerEntity.increaseTravelMotionStats() (Based on 21w05b yarn mappings) only checks for a positive difference in Y movement as seen here, which would need to be changed to check for any difference in any direction:
Can confirm in 21w06a.
Can confirm in 21w07a.
Can confirm in 21w14a.
Still affects 21w16a
Affects 1.17
Can confirm in 1.17.1.
Affects 1.18
Affects 1.18.1
Affects 1.18.2
Affects 1.19
Can confirm in 1.19.2.