Can Despawn (Condition) — Skript

Addon: Skript · Category: Condition · Since: 2.11

Syntax

%livingentities% can despawn (on chunk unload|when far away)

Description

Check if an entity can despawn when the chunk they're located at is unloaded. More information on what and when entities despawn can be found at <a href="https://minecraft.wiki/w/Mob_spawning#Despawning">reference</a>.

Examples

if last spawned entity can despawn on chunk unload:
	make last spawned entity not despawn on chunk unload

View source