Fake Entity - From Entity ID (Expression) — PacketEventsSK
Addon: PacketEventsSK · Category: Expression · Since: 1.0.0, 1.1.0 (pattern altered)
Syntax
fake[ ]entity (from|with) id %integer%Description
Retrieve a fake entity from it's entity id, this only works for spawned fake entities
Examples
command spawnfakeplayer:
trigger:
set {_p} to player
set {_player} to a new fake player entity:
location: location of player
viewers: all players
username: "test"
skin: skin of player
add the fake entity id of {_player} to {-id::*}
command lookup <text>:
trigger:
loop {-id::*}:
if {-id::*} contains arg-1 parsed as integer:
send "Found %fake entity with id loop-value%"