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

minecraft:vertical_movement_action

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

Overview

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

FieldTypeDefaultDescription
vertical_velocityDecimal"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"
  }
}

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