Entities Sorted by Distance (Expression) — SkBee

Addon: SkBee · Category: Expression · Since: 3.0.0

Syntax

%entities% sorted by distance from %location%

Description

Sort entities by distance from a central location.

Examples

loop all entities sorted by distance from player:
set {_sort::*} to all mobs sorted by distance from {_loc}
set {_p::*} to all players sorted by distance from {spawn}
loop all mobs sorted by distance from player:

View source