set Warning Distance
Sets the warning distance that causes the screen to be tinted red when the player is within the specified number of blocks from the border.
Parameters
distance
The distance in blocks. (The default is 5 blocks.)