Fake Entity - From Entity ID (Expression) — skPackets
Addon: skPackets · Category: Expression · Since: 1.0.0
Syntax
(fake|packet)[ ]entity (from|with) id %integer%Description
Retrieve a fake entity from it's entity id, this only works for spawned fake entities
Examples
command /find-my-clone:
trigger:
set {_entity} to a new fake zombie entity:
location: location of player
viewers: player
set {_key} to fake entity id of {_entity}
if {_key} is not set:
send "&cFAIL: entity ID getter returned no value." to player
else:
set {_found} to fake entity with id {_key}
if {_found} is not set:
send "&cFAIL: no fake entity found for ID %{_key}%." to player
else:
send "%{_found}%" to player
wait 5 seconds
kill fake entity {_entity}