Double Jump - Provismet/Provi-Origins GitHub Wiki
Adds velocity to the y-axis. This action is almost equivalent to using the Add Velocity action. However, it only sets the y-axis velocity and does not change velocity on the x-axis or z-axis; this action is ideal for double jumps that don't break your momentum (the standard kind found in other games).
Type ID: proviorigins:double_jump
Fields
| Field | Type | Default | Description |
|---|---|---|---|
velocity |
Float | How much velocity to set the y-axis to. | |
client |
Boolean | true |
Should the action execute on the server. |
server |
Boolean | true |
Should the action execute on the client. |
reset_fall_height |
Boolean | true |
Determines whether the action will reset the fall height of the entity. |
Examples
"entity_action": {
"type": "proviorigins:double_jump",
"velocity": 0.42,
}
This example will send the player upwards with the same velocity as a standard jump.