Skip to content

Modify Scale#

Since v1.0.0

Allows changing the size and scale of an entity.

Type ID: voile:modify_scale

Fields#

Field Type Default Description
scale_types Array of Identifiers ["pehkui:width", "pehkui:height", "pehkui:drops", "pehkui:visibility"] The scale types to modify. You can find a list of all scale types on Pehkui's mod page.
scale Float The scale to set.

Examples#

{
    "type": "voile:modify_scale",
    "scale": 0.5
}

This example halves the size of the entity, including its drops and visibility.

{
    "type": "voile:modify_scale",
    "scale_types": [
        "pehkui:width",
        "pehkui:height"
    ],
    "scale": 1.25
}

This example increases only the width and height of the entity by 25%.

{
    "type": "voile:modify_scale",
    "scale_types": [
        "pehkui:entity_reach"
    ],
    "scale": 2
}

This example doubles the entity reach of the entity.