# Spots

Spots feature allows you to create dynamic areas inside your dungeons, that can change their "structure" when a specific event(s) occurs.

The most common usage example is openable/closeable gates and doors to unlock/restrict access to certain dungeon's areas upon certain conditions.

Spots configurations located in the /spots/ inside a dungeon's folder.

# Setup

Example of creating simple gate spot:

  1. Build a "structure" for a new spot with its initial "closed state".
  2. Run the /ada wand cuboid command to get the selection tool.
  3. Select a cuboid area for a spot. It must be inside the dungeon's protection area.
  4. Run the /ada spot create <dungeonId> gate command. Where dungeonId is dungeon ID, gate is spot ID.

A new spot will be created with the default state included that contains data of all blocks in the selection.

Example of the gate spot closed by default
Example of the gate spot closed by default

To make a spot functional, it must have at least 2 different "states" with different "structures".

  1. Rebuild the spot to make the gate open.
  2. Run the /ada spot addstate <dungeonId> gate closed command. Where dungeonId is dungeon ID, gate, is spot ID, closed is spot's state ID.

Example of the gate spot opened
Example of the gate spot opened