General - Create Meta (Expression) — PacketEventsSK
Addon: PacketEventsSK · Category: Expression · Since: 1.1.2
Syntax
[a] [new] [fake] %*entitydata% [entity] meta [data]Description
Create a new meta from an entity type.
### Available Metas and their fields * **entity** fields: - `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)`
* **item** fields: - *(Inherits all fields from **entity**)* - `item`
* **livingentity** fields: - *(Inherits all fields from **entity**)* - `health (hp)`
* **interaction** fields: - *(Inherits all fields from **entity**)* - `interaction width` - `interaction height` - `interaction responsive state (interaction responsive)`
* **display** fields: - *(Inherits all fields from **entity**)* - `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 display** fields: - *(Inherits all fields from **display**)* - `display block data (display block state)`
* **item display** fields: - *(Inherits all fields from **display**)* - `display item (display item stack)` - `display item transform`
* **text display** fields: - *(Inherits all fields from **display**)* - `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
set {_meta} to text display meta data:
display content: " "
display text shadowed state: true
display billboard: center
display scale: vector(1.2,1.2,1.2)
display translation: vector(-0.03,0.65,0)
display background color: rgb(random integer between 0 and 255, random integer between 0 and 255, random integer between 0 and 255)
display view range: 1
display transform interpolation duration: 2 ticks
display interpolation delay: 0 ticks
set {_entity} to a new fake text display entity:
viewers: all players
location: location of player ~ vector(0,0.5,0)
meta: {_meta}