Entity Snapshot (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.10

Syntax

[the] entity snapshot of %entities/entitydatas%

Description

Returns the entity snapshot of a provided entity, which includes all the data associated with it (name, health, attributes, etc.) at the time this expression is used. Individual attributes of a snapshot cannot be modified or retrieved.

Examples

spawn a pig at location(0, 0, 0):
	set the max health of entity to 20
	set the health of entity to 20
	set {_snapshot} to the entity snapshot of entity
	clear entity
spawn {_snapshot} at location(0, 0, 0)

View source