generated from FabricMC/fabric-example-mod
Modify Passenger Height
Provismet edited this page Jul 1, 2023
·
2 revisions
Creates a y-axis offset for passengers of the entity that owns the power. Effectively shifting the passenger either up or down.
Type ID: proviorigins:modify_passenger_height
Field | Type | Default | Description |
---|---|---|---|
offset_add |
Float | 0.0 |
The distance that the passenger should be shifted by. |
offset_multiply |
Float | 1.0 |
Passenger distance scaling based on the height of this entity. |
The passenger offset is calcuated as:
passenger_offset = entity.height * 0.75 * offset_multiply + offset_add
{
"type": "proviorigins:modify_passenger_height",
"offset_multiply": 1.6
}
This example would push any passenger of the player up by 0.9 blocks, placing them above the head.