View Distance (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.4, 2.11 (worlds)

Syntax

[the] view distance[s] of %players/worlds%

Description

The view distance of a world or a player. The view distance of a player is the distance in chunks sent by the server to the player. This has nothing to do with client side view distance settings. View distance is capped between 2 to 32 chunks.

Examples

set view distance of player to 10
add 50 to the view distance of world "world"
reset the view distance of player
clear the view distance of world "world"

View source