Player Movement: Difference between revisions

From Minecraft Parkour Wiki
Content added Content deleted
m (wip)
(Marked this version for translation)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
Every [[Ticks|tick]], the game checks for the player's inputs, and translates them into motion.
<translate>
<!--T:1-->
Every [[Special:MyLanguage/Ticks|tick]], the game checks for the player's inputs, and translates them into motion.


<!--T:2-->
This category documents all basic player actions in 1.8 that are relevant to parkour.
This category documents all basic player actions in 1.8 that are relevant to parkour.


== Overview ==
Minecraft's moveset is quite simple: other than jumping, the player has three different move speeds:


* Walking is the default.
* Sprinting is faster, and allows the player to jump further.
* Sneaking is slower, and allows the player walk to the edge of blocks and to grab [[Ladders and Vines|ladders/vines]].


== Overview == <!--T:3-->
== Actions [WIP] ==


<!--T:4-->
*[[Jumping]]
Minecraft's moveset is quite simple: on top of jumping, the player has three different move speeds:
* [[Sprinting]]
* [[Sneaking]]
* [[Swimming]]


<!--T:5-->
== Jumping ==
* Walking as the default.
The player can jump up to 1.249m high. (1.252 in 1.9+). To start a jump, the player must have been on ground the previous tick: this allows the player to initiate a jump one tick after running off a block
* Sprinting, which is faster and allows the player to jump further.
* Sneaking, which is slower and allows the player walk to the edge of blocks and to grab [[Special:MyLanguage/Ladders and Vines|ladders/vines]].


In short, jumping sets the player's vertical speed to 0.42. Every tick, this speed is decreased by 0.08, then multiplied by 0.98.


<!--T:6-->
Each of these three actions have a '''base acceleration''' (respectively '''0.1''', '''0.13''', and '''0.03''') which is added to the player's velocity every tick.


<!--T:7-->
== Walking ==
This base value is multiplied by 0.2 when mid-air, and also varies depending on whether the player is [[Special:MyLanguage/45 Strafe|Strafing]].
Walking is the default movement state, adding 0.1 units of acceleration every tick (times 0.98 if not strafing).


<!--T:8-->
The terminal walking speed on ground is 0.22 m/t.
For detailed formulas concerning velocity, see [[Special:MyLanguage/Movement Formulas|Movement Formulas]].




== Sprinting ==
Sprinting is activated by walking and pressing the Sprint key, or by double-tapping forward.


== Action Details == <!--T:9-->
If the Sprint key isn't held, the player stops sprinting after 30 seconds. Colliding with a wall also causes the player to stop sprinting.


<!--T:10-->
Sprinting is 30% faster than walking, granting a total of 0.13 units of acceleration every tick (times 0.98 if not strafing).
*[[Special:MyLanguage/Jumping|Jumping]]

*[[Special:MyLanguage/Sprinting|Sprinting]]
If the player jumps while sprinting, they gain 0.2 units of acceleration towards the direction they are facing (even if they are strafing). This is why sprintjumping is the most efficient technique to gain speed. The terminal sprinting speed on ground is 0.286 m/t.
*[[Special:MyLanguage/Sneaking|Sneaking]]

</translate>
Sprinting in air is delayed by one tick.
== Sneaking ==
Sprinting is activated by pressing the Sneak key.

Sneaking is the slowest movement speed, being 70% slower than walking and granting only 0.0294 units of acceleration per tick.

If the player is strafing, the acceleration is added as is in both directions, making the player move '''√'''2 times faster, with about 0.0416 units of acceleration per tick.


More importantly, sneaking allows the player to move towards the edge of a block without falling, which is useful for positioning.

* In 1.8, it prevents the player from falling 1 block or more.
* In 1.11+, it prevents the player from falling more than 0.6b (the player's [[stepping]] height).

Note that sneaking works with "1 tick of delay": if it's activated while walking off a ledge, the player will stop moving for a tick as if it worked, but will start falling on the next. This phenomenon is commonly called "shift glitch".



Another property of sneaking on a ledge is that it doesn't reset the player's speed even if they don't appear to be moving. This can be used to gain a little more speed for jumps with no momentum.


Sneaking lowers the player's bounding box in 1.9+:

* By default, the player is 1.8m tall
* When sneaking in versions 1.9 - 1.13, the player is 1.65m tall.
* When sneaking in versions 1.14+, the player is only 1.5m tall, making them able to fit under 1.5b ceilings.

Latest revision as of 03:28, 22 August 2021

Other languages:

Every tick, the game checks for the player's inputs, and translates them into motion.

This category documents all basic player actions in 1.8 that are relevant to parkour.


Overview

Minecraft's moveset is quite simple: on top of jumping, the player has three different move speeds:

  • Walking as the default.
  • Sprinting, which is faster and allows the player to jump further.
  • Sneaking, which is slower and allows the player walk to the edge of blocks and to grab ladders/vines.


Each of these three actions have a base acceleration (respectively 0.1, 0.13, and 0.03) which is added to the player's velocity every tick.

This base value is multiplied by 0.2 when mid-air, and also varies depending on whether the player is Strafing.

For detailed formulas concerning velocity, see Movement Formulas.


Action Details