minecraft:vertical_movement_action for you with a switch.Get GodCraftOverview
minecraft:vertical_movement_action is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Makes a rideable entity rise or sink when the rider presses jump, useful for flying or swimming mounts.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
vertical_velocity | Decimal | "0.5" | Up or down speed added when jump is pressed; negative values make it go down. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:vertical_movement_action": {
"vertical_velocity": "0.5"
}
}