minecraft:jump.dynamic for you with a switch.Get GodCraftOverview
minecraft:jump.dynamic is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Changes the entity's hop based on how fast it is moving, like a rabbit. It needs minecraft:movement.skip to work.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
regular_skip_data | JumpDataDefinition | {"animation_duration":1,"distance_scale":1,"height":0.1,"jump_delay":30} | Jump settings used for normal hops. |
fast_skip_data | JumpDataDefinition | {"animation_duration":1,"distance_scale":1,"height":0.1,"jump_delay":30} | Jump settings used for fast hops. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:jump.dynamic": {
"regular_skip_data": {
"animation_duration": 1,
"distance_scale": 1,
"height": 0.1,
"jump_delay": 30
},
"fast_skip_data": {
"animation_duration": 1,
"distance_scale": 1,
"height": 0.1,
"jump_delay": 30
}
}
}