Back to mods
Player Motion project artwork

Modrinth · Minecraft mod

Player Motion

Explosion-based library that uses subtick timing to ensure that only one player is pushed by the blast without any side effects.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Player Motion release matches 26.3 datapack?

Updated last month
Best match for your filters 1.4.5
Game version 1.21.10, 1.21.11, 1.21.7
Loader datapack

Player Motion 1.4.5 targets 1.21.10, 1.21.11, 1.21.7 with datapack. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.

Where it goes

Is Player Motion required on the client, server, or both?

Installation on the client is optional. Installation on the dedicated server is optional.

Client Optional
Dedicated server Optional
Loader for this release datapack
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source marks this as usable on both the client and server.

What else does Player Motion 1.4.5 need?

1.4.5 on 26.3 datapack. Every mod below is checked against that same setup.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Player Motion without breaking your instance.

Built for Player Motion 1.4.5 on 26.3 datapack. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.4.5. It targets 1.21.10, 1.21.11, 1.21.7 with datapack; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    Installation on the client is optional. Installation on the dedicated server is optional.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.4.5. It opens that exact file at the source.

About this project

What does Player Motion add?

Player Motion

Player Motion is an explosion-based library that uses subtick timing to ensure that only one player is pushed by the blast without any side effects.

Credit to @BigPapi13 for making the original library this is inspired by. This project aims to succeed it.

Credit to nedraw from the minecraft commands discord for the ender crystal methodology & implementation this is now based on.

Credit to @SuperSwordTW for helping make significant math performance & stability improvements.

How to use

Launching a player where in a specific direction

scoreboard players set $strength player_motion.api.launch 10000
function player_motion:api/launch_looking
  • $strength represents motion in blocks/tick, scaled by 10000. A strength of 10000 will push the player at 1 block/tick
  • The facing direction in which the function is called is the direction the player will be launched
  • Only the player executing the command will receive a motion update

Launching a player with xyz vector

scoreboard players set $x player_motion.api.launch 500
scoreboard players set $y player_motion.api.launch 12000
scoreboard players set $z player_motion.api.launch -3125
function player_motion:api/launch_xyz
  • $x, $y, and $z are the strength in blocks/tick to launch the player in the x, y, and z directions
  • As before, only the player executing the command will be launched

*Note: These functions are additive and will apply motion in addition to existing motion rather than directly setting it to whatever input you send

Limitations + Known Issues

While this library is likely the closest we've gotten to perfect player motion manipulation, there are some limitations worth mentioning:

  • MSPT Inconsistency: Even though the motion applied is constant, the rate at which the server and client update may vary, and calling motion updates per tick may result in inconsistencies when these variations become too large. For consistent results, the library should only be used for instantaneous bursts of motion, and continuous forces should instead rely on riding-based methods or levitation, depending on the context.

If you know any possible solutions or would like to help fixing these problems, please let me know!

Project description from Modrinth.

Pick your setup

Player Motion by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

20 available setups

Showing the newest 12 of 20 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Player Motion versions and loaders

1 of 9 releases match
Clear filters

Looking for an older file? The official Modrinth project page is in Resources.