Is Sleeping (Condition) — Skript

Addon: Skript · Category: Condition · Since: 1.4.4, 2.11 (living entities)

Syntax

%livingentities% (is|are) sleeping

Description

Checks whether an entity is sleeping.

Examples

if player is sleeping:
	make player wake up without spawn location update
if last spawned fox is sleeping:
	make last spawned fox stop sleeping

View source