Entity Meta - Elytra Flying State (Expression) — skPackets

Addon: skPackets · Category: Expression · Since: 1.0.0

Syntax

[the] [(fake|packet)] [entity] meta [field] elytra flying [state] of %entitymeta%

Description

The elytra flying state property. Value type: Boolean. Applies to entity and supported subclasses. Supports set. When editing metadata copied from a packet, set packet meta back to the edited object.

Examples

command /preview-elytra-flying-state:
    trigger:
        set {_mob} to a new fake player entity:
            username: "Demo"
            skin: skin of player
            location: location of player
            viewers: player
        set {_meta} to fake entity meta data of {_mob}
        set meta elytra flying state of {_meta} to true
        wait 5 seconds
        kill fake entity {_mob}

View source