Fake Entity Equipment (Expression) — skPackets
Addon: skPackets · Category: Expression · Since: 1.0.0
Syntax
(fake|packet) equipment %equipment slot% of %packetentities%Description
Gets or sets equipment on fake living entities, including players. Uses Skript equipment slots: main hand, off hand, helmet slot, chestplate slot, leggings slot and boots slot. Body and saddle are not supported by EntityLib. Delete/reset clears the slot. Equipment is retained for new viewers and persistent entity respawns.
Examples
command /dress-up:
trigger:
set {_npc} to a new fake entity:
entity: player
username: "Knight"
skin: skin of player
location: location of player
viewers: player
set fake equipment helmet slot of {_npc} to player's helmet
set fake equipment main hand of {_npc} to player's held item
wait 20 seconds
kill fake entity {_npc}