Packet Entity - Entity ID (Expression) — skPackets

Addon: skPackets · Category: Expression · Since: 1.0.0

Syntax

[meta field] [entity] id of [(fake|packet) entit(y|ies)] %packetentities%

Description

The numeric network entity ID. Read-only. Read-only.

Examples

command /who-am-i:
    trigger:
        set {_mob} to a new packet entity:
            entity: zombie
            location: location of player
            viewers: player
        send "%meta field entity id of packet entity {_mob}%" to player
        wait 5 seconds
        kill packet entity {_mob}

View source