Entity Meta - Pose (Expression) — skPackets

Addon: skPackets · Category: Expression · Since: 1.0.0

Syntax

[the] [(fake|packet)] [entity] meta [field] pose of %entitymeta%

Description

The pose name, such as standing, crouching or swimming. 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 /crouching-clone:
    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 pose of {_meta} to "standing"
        wait 5 seconds
        kill fake entity {_mob}

View source