General - Create Meta (Expression) — skPackets
Addon: skPackets · Category: Expression · Since: 1.0.0
Syntax
[a] [new] [(fake|packet)] %*entity type% [entity] meta [data]Description
Creates metadata for an entity type. Every entity inherits the base entity fields. Living entities add health; displays share display fields and add fields for their content.
**All entities** - entity id / id - on fire state / on fire - sneaking state / sneaking - sprinting state / sprinting - swimming state / swimming - invisible state / invisible - glowing state / glowing - elytra flying state / elytra flying - custom name - custom name visible state / custom name visible - silent state / silent - gravity state / gravity - frozen time / frozen ticks - pose
**Living entities (including players)** - health / hp
**Dropped items** - item
**Interactions** - interaction width - interaction height - interaction responsive state / interaction responsive
**All displays (plus base entity fields)** - display interpolation delay - display transform interpolation duration - display teleport interpolation duration - display translation - display scale - display left rotation - display right rotation - display billboard constraints / display billboard - display brightness override / display brightness - display view range - display shadow radius - display shadow strength - display width - display height - display glow color override / display glow color
**Block displays (plus display fields)** - display block data / display block state
**Item displays (plus display fields)** - display item / display item stack - display item transform
**Text displays (plus display fields)** - display text / display content - display line width - display background color - display text shadowed state / display shadowed state / display shadowed - display see through state / display see through - display use default background state / display use default background - display text alignment / display alignment
Examples
command /welcome-sign:
trigger:
set {_meta} to text display meta data:
display content: "Hello!"
display billboard: center
display scale: vector(2, 2, 2)
set {_entity} to a new fake text display entity:
location: location of player
viewers: player
meta: {_meta}
wait 5 seconds
kill fake entity {_entity}