Wiki 9Minecraft Wiki 9Minecraft
Dawn Api Wiki › Guides › Controlling Entity Velocity Using the /motion Command

Controlling Entity Velocity Using the /motion Command

Manipulating how fast and in what direction entities move in vanilla Minecraft often requires complicated vector tags or explosion knockback. Dawn API adds the standalone /motion command to give you clean, direct control over the motion and velocity of entities.

Applying Velocity to Entities

To launch, steer, or halt an entity using the command:

1. Open chat or access a command block in a world where commands are permitted.

2. Enter /motion followed by the target selector for the player or mob you want to influence.

3. Specify the motion parameters to define the direction and speed vector you wish to apply, then run the command.

Executing the command applies the movement impulse instantly to the targeted entity.

Interactive Map Mechanics

The /motion command opens up versatile options for custom world designers:

  • Launch Pads: Wire a pressure plate to a command block executing /motion to propel players upward or across large gaps.
  • Braking Triggers: Cancel momentum by applying zeroed velocity when a player enters an elevator landing or designated safe zone.
  • Mob Launchers: Create dynamic combat arenas where incoming monsters are launched toward or away from defensive positions.