Entity Meta - Entity ID (Expression) — skPackets
Addon: skPackets · Category: Expression · Since: 1.0.0
Syntax
[the] [(fake|packet)] [entity] meta [field] [entity] id of %entitymeta%Description
The numeric network entity ID. Read-only. Value type: Number. Applies to entity and supported subclasses. Read-only. When editing metadata copied from a packet, set packet meta back to the edited object.
Examples
command /who-am-i:
trigger:
set {_mob} to a new fake zombie entity:
location: location of player
viewers: player
set {_meta} to fake entity meta data of {_mob}
send "%meta entity id of {_meta}%" to player
wait 5 seconds
kill fake entity {_mob}