Entity Meta Property Field (Expression) — PacketEventsSK
Addon: PacketEventsSK · Category: Expression · Since: 1.1.2
Syntax
[the] [fake] [entity] meta [field] <[a-zA-Z0-9_ ]+> of %entitymeta%Description
Gets or sets a metadata property field value from an entity meta instance by its name. Note that some entities inherit properties (for example all entities inherit "entity" fields
### Available Meta Fields by Category * **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
on clientbound entity metadata:
# note that {_meta} is a copy of the packet's meta
set {_meta} to packet meta of event-packet
set meta glowing state of {_meta} to true
# so we set it again here
set packet meta of event-packet to {_meta}