Packet Entity (Type) — skPackets

Addon: skPackets · Category: Type · Since: 1.0.0

Syntax

packetentity

Description

Fake entity and packet entity are aliases for the same virtual entity that exists only on the client side. It can be used to send packets to the client without actually spawning a real entity on the server.

Examples

command /my-double:
    trigger:
        set {_mob} to a new packet entity with persistent:
            entity: player
            username: "Demo"
            skin: skin of player
            viewers: player
            location: location of player
            meta field:
                sneaking: true
                pose: "crouching"
        wait 5 seconds
        kill packet entity {_mob}

View source