Before a phantom spawns
Starts just before a phantom spawns for a player who has not slept. Cancel it to keep phantoms away.
A Minecraft element (starts a flow) in Starts when. Needs the Basic plan or higher to go live; building and testing are free.
Example
When phantom pre spawn → Broadcast {trigger.reason}
Also called
phantom, insomnia, no sleep, spawn
Works as a data pack?
No. This one needs the Elementium plugin on a Paper server.
What it gives back
- Reason
- Should abort spawn
- Spawn location
- Spawning entity
- Type