Skip to content

Phasing

Makes the power holder phase through certain blocks.

Type ID: kaya:phasing

Info

This type provides the following context parameters when the power holder collides with a block:

Parameter Description
kaya:phased_block The block the power holder is about to phase through.

Format

Field Type Default Description
phase_down_condition Condition {type: "is_entity_sneaking", entity: "this"} Determines when the power holder phase through a block below them.
render_effect Render Effect "blindness" Determines the effect to render when the power holder is phasing through blocks.
view_distance Float 8.0 Determines the distance the power holder can see when they're phasing through a block. This value must be at least 2.0.

Render effect

A string that determines the effect to render when phasing through blocks.

Values

Value Description
blindness Renders a darkened fog around the power holder, as if they have the blindness status effect.
none Renders no effects.

Example

{
    "type": "kaya:phasing",
    "phase_down_condition": true,
    "active_condition": {
        "type": "kaya:check_block_type",
        "tag": "#minecraft:impermeable",
        "block": "phased_block"
    }
}

This example will make the power holder phase through blocks included in the #minecraft:impermeable block tag, such as glass blocks.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.