1. Wiki
  2. /Entities
  3. /minecraft:dash_action

minecraft:dash_action

Don't want to write this by hand? GodCraft sets minecraft:dash_action for you with a switch.Get GodCraft

Overview

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

FieldTypeDefaultDescription
can_dash_underwaterBoolean"false"Whether the dash also works underwater.
cooldown_timeDecimal"1.00"Seconds before the entity can dash again.
directionString"entity"Push the dash where the "entity" faces or where the "passenger" looks.
horizontal_momentumDecimal"1.00"How strong the forward push is.
vertical_momentumDecimal"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"
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more