Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions source/regions/common-scenarios.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,27 @@ Make two regions:
* One region would have ``exit=deny``.
* The other region would border the side of the deny region, extending a bit outside, on the sides that you want to let players exit out of. This region would have ``exit-overide=true``.

How can I let players move inside a region, but deny entry and exit (like in a jail)?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Similarly to the case above, make two regions:

* One with ``entry=deny``.
* Other, smaller region inside the first region, without any walls touching it, with flag ``entry=allow``. This region has to be a child of the larger region or have a higher priority.

Example::

//pos1
//pos2
/rg define larger-region
/rg flag larger-region entry deny
//inset 2
/rg define smaller-region
/rg setparent smaller-region larger-region
/rg flag smaller-region entry allow

Players that walk/fly very fast can sometimes pass through thin regions with denied entry, so if the smaller region doesn't have an outer wall made of non-passable blocks, it's good to make the bigger region at least 2 blocks larger in every direction (like in ``//outset 2``).

How do I unprotect all enchantment tables?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
3 changes: 3 additions & 0 deletions source/regions/flags.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ List flags by using the "flags" command::

The output of this command is interactive in-game. Click flag values to change them, and the arrows at the bottom to navigate through pages.

.. tip::
For some of the flags, if a player is inside the region when a flag is set, it won't take effect for that player until they leave the region and enter again, or rejoin the game. E.g. if you'd set the ``invincible`` flag to ``allow`` while being in the region, you would still take damage.

.. contents::
:local:
:backlinks: none
Expand Down