# Dungeon Creation

To create a new dungeon you need a prebuilt dungeon map.

# Dungeon Area

Required

  1. Run the /ada wand cuboid command to get the selection tool.
  2. Select two diagonally opposite corners (lowest and highest ones) so that selection covers the whole dungeon map.
  3. Run the /ada create <name> command, where <name> is an identifier (ID) for a new dungeon. Only latin letters, numbers and an underscore allowed.

Example of a dungeon map selection
Example of a dungeon map selection

A new dungeon configuration will be created inside the /dungeons/ directory with default Settings and premade Stage and Level named default.

# Lobby Location

Required

Lobby location is where players will prepare to play the dungeon.

  1. Stay at desired location and aim at desired position.
  2. Run the /ada setlobby <dungeonId> command. Where <dungeonId> is dungeon ID.

# Spawn Location

Required

Every dungeon level must have a valid spawn location for players. New dungeons comes with built-it level with ID default. Let's adjust it's spawn location:

  1. Stay at desired location and aim at desired position.
  2. Run the /ada level setspawn <dungeonId> default command. Where <dungeonId> is dungeon ID, default is level ID.

# Spawner Locations

Required

Created dungeon has one default stage named default. It has a very basic script to spawn mobs on the spawner named also default.

But the dungeon don't have any spawners created, so let's fix that:

  1. Run the /ada wand position command to get the selection tool.
  2. Left-click blocks where you want mobs to spawn. Right-click to remove block selection.
  3. Run the /ada spawner create <dungeon> default command to define new dungeon spawner with name default. Where <dungeonId> is dungeon ID.

Example of spawner positions selection
Example of spawner positions selection

# Test Dungeon

Optional

If you did everything correclty, you'll be able to join the dungeon and complete it: /ada join <dungeonId>. Where <dungeonId> is dungeon ID.

Expected dungeon behavior:

  • One default stage that spawns zombies every 5 seconds with a task to kill 10 zombies to finish the dungeon.
  • One default level that gives $1 for every mob kill.

# Conclusion

Now that you have a very basic working dungeon, it's time to learn its features in detail!