minecraft:dash_action for you with a switch.Get GodCraftOverview
minecraft:dash_action is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Lets a rider make the entity dash forward in a quick burst, like a camel.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
can_dash_underwater | Boolean | "false" | Whether the dash also works underwater. |
cooldown_time | Decimal | "1.00" | Seconds before the entity can dash again. |
direction | String | "entity" | Push the dash where the "entity" faces or where the "passenger" looks. |
horizontal_momentum | Decimal | "1.00" | How strong the forward push is. |
vertical_momentum | Decimal | "1.00" | How strong the upward push is. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:dash_action": {
"can_dash_underwater": "false",
"cooldown_time": "1.00",
"direction": "entity",
"horizontal_momentum": "1.00",
"vertical_momentum": "1.00"
}
}