Entity Meta - Display Translation (Expression) — skPackets

Addon: skPackets · Category: Expression · Since: 1.0.0

Syntax

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

Description

The display transformation translation vector. Value type: Vector. Applies to display and supported subclasses. Supports set. When editing metadata copied from a packet, set packet meta back to the edited object.

Examples

command /floating-sign:
    trigger:
        set {_displayMeta} to text display meta data:
            display content: "Hello!"
        set {_mob} to a new fake text display entity:
            location: location of player
            viewers: player
            meta: {_displayMeta}
        set {_meta} to fake entity meta data of {_mob}
        set meta display translation of {_meta} to vector(0, 1, 0)
        wait 5 seconds
        kill fake entity {_mob}

View source