Teleport Packet Entities (Effect) — skPackets

Addon: skPackets · Category: Effect · Since: 1.0.0

Syntax

teleport (fake|packet) entit(y|ies) %packetentities% to %location%

Description

Moves packet entities and updates the position and world used when restoring their viewers.

Examples

command /follow-me:
    trigger:
        set {_mob} to a new packet entity:
            entity: zombie
            location: location of player
            viewers: player
        wait 2 seconds
        set {_loc} to location of player
        teleport packet entity {_mob} to {_loc}
        wait 3 seconds
        kill packet entity {_mob}

View source