Skip to content

Rectangular Region

Andrew edited this page Jan 29, 2017 · 5 revisions

The Rectangular Region is a two dimensional Region that extends vertically to the world height boundaries.

Creation

/foxguard create worldregion <name> rectangular [<x> <z>]... This is how Rectangular Regions are made.

  1. All the positions in the state buffer are copied to a list.
  2. The creation arguments are parsed in sets of two. Every two numbers corresponds to a point (X,Z). These points are then added to the list as well.
  3. All the points on the list are used to compute the dimensions and position of the region. The region will be the smallest rectangular region that still contains all of the points.

Modification

Rectangular Regions cannot currently be modified.

Notes

  • Only the X and Z values are used to calculate the bounds. The Y value is just ignored.
  • It is possible to use a Rectangular Region to cover a single block column. Just use only one point.

Clone this wiki locally