minecraft:dash_action
Ability for a rideable entity to dash.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
cooldown_time | Decimal | 1 | The dash cooldown in seconds |
horizontal_momentum | Decimal | 1 | Horizontal momentum of the dash. |
vertical_momentum | Decimal | 1 | Vertical momentum of the dash. |
can_dash_underwater | Boolean | false | Whether the entity can dash underwater |
direction | Textentity, passenger | "entity" | Should the momentum be applied in the direction of the 'entity' or 'passenger'. When 'entity' is used the momentum is applied horizontally according to the direction the entity is looking, using only the entity's yaw. When 'passenger' is used the momentum will be applied in the direction the controlling passenger is looking, using the passenger's pitch and yaw. |
Example from the game files
This is how vanilla Nautilus uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:dash_action": {
"cooldown_time": 2,
"horizontal_momentum": 154.0,
"vertical_momentum": 0.1,
"can_dash_underwater": true,
"direction": "passenger"
}
}Used by 4
Vanilla entities with minecraft:dash_action in their definition: