Skip to content

Elevation Region

Andrew edited this page Jan 29, 2017 · 2 revisions

The Elevation Region is a single dimensional Region defined between two elevation (Y coordinates) that extends infinitely in the horizontal direction. It is often used to set build height limits.

Creation

/foxguard create worldregion <name> elevation [y]...

This is how Elevation Regions are made.

  1. All the positions in the state buffer are copied to a list.
  2. The creation arguments are parsed. Every number corresponds to an elevation (Y). These elevations are then added to the list as well.
  3. All the points on the list are used to compute the vertical dimensions of the region. The region will be the smallest elevation region that still contains all of the points. Essentially the highest and lowest points will be used.

Modification

Elevation Regions cannot currently be modified.

Notes

  • Only the Y values are used to calculate the bounds. The X and Z values are just ignored.
  • It is possible to use a Rectangular Region to cover a single horizontal slice of the world. Just use only one point.
  • The Elevation Region is one of the few regions that are actually easy to create without adding points to the state buffer. You can simply specify the upper and lower bounds in the creation arguments.
Clone this wiki locally