# 地牢介绍（基础）

## 地牢的组成

* 怪物组 [**@地牢怪物**](/dungeonplus/di-lao/di-lao-ren-wu-dungeontask-1.md)
  * 对接兼容 **MythicMobs** 怪物插件 (4.X/5.X)
  * 每个怪物组可以自定义不同的怪物，以及怪物击杀满足条件时触发下一阶段的 **副本脚本逻辑**
* 障碍物组
  * 预先在地牢地图内建筑好障碍墙体，可在地牢运行 **障碍物组控制脚本** 将障碍区域方块
  * 进行清除或者恢复操作，用于隔离不同副本阶段区域等操作
* 交互脚本 [**@地牢交互**](/dungeonplus/di-lao/di-lao-jiao-hu-jiao-ben-dungeoninteract.md)
  * 玩家在地牢世界内的一些交互操作，例如 **破坏方块、放置方块、玩家死亡** 等一系列交互类型
  * 满足交互触发条件时可触发 **副本脚本逻辑**
* 地牢任务 [**@地牢任务**](/dungeonplus/di-lao/di-lao-ren-wu-dungeontask.md)
  * 地牢世界运行期间，可通过 **地牢任务脚本** 启动或关闭一个预先配置好的地牢任务
  * 地牢任务分为 **循环、延迟** 两种类型，可在运行期间触发 **副本脚本逻辑**

## 地牢地图导入&地牢在线编辑

{% hint style="info" %}
**以下为 地牢世界导入 步骤：**

&#x20; **1：**&#x9996;选你需要有一个符合自己 **服务器版本** 的地图

&#x20; **2：**&#x5730;图文件夹仅保留 **region/level.dat/level.dat\_old** 文件，其他可视情况移除

&#x20; **3：**&#x5C06;地图文件夹放至 **DungeonPlus/map/<地图名>** 文件夹下

&#x20; **4：**&#x4F7F;用 **"dp import 地图名"** 即可将世界导入

&#x20; **5：**&#x4E16;界导入后将自动生成相关地牢配置文件夹 **DungeonPlus/dungeon/<地图名>**
{% endhint %}

{% hint style="info" %}
**以下为 地牢在线编辑 步骤：**

**1：**&#x8BF7;确保你已导入一张地牢地图，若未导入请查看 @地牢世界导入 步骤

**2：**&#x5728;游戏内使用 **"dp editor edit <地牢名>"** 命令进入地牢编辑世界（地牢名默认为<地图名>）

**3：**&#x5728;游戏内使用 **"dp editor info"** 命令打开快捷编辑聊天栏（点击聊天栏文本进行编辑操作）

**4：**&#x5728;游戏内编辑完成后需要使用 **"dp editor save"** 命令进行保存操作

　

需要注意，地牢在线编辑世界内的 **方块操作、世界时间、世界天气** 修改操作也会被保存

编辑副本不一定需要在线编辑，你也可以直接在配置内进行修改，并使用 **"dp reload"** 命令进行重载

部分功能需要直接在配置内进行修改，例如 [**@地牢区域**](/dungeonplus/di-lao/di-lao-qu-yu.md) 功能
{% endhint %}

{% hint style="success" %}
地牢在线编辑功能 **并不会影响到玩家已创建游玩的副本对局** 仅影响在编辑保存后开启的副本对局
{% endhint %}

## 地牢启动

{% hint style="success" %}
完成 **@地牢世界导入** 以及 **@地牢在线编辑** 步骤后，恭喜你完成了一个地牢的创建

在游戏内，你可以使用 **"dp start <地牢名>"** 命令开启一个副本，相关命令权限为 **"dungeon.start"** 需要给予玩家
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ersha.gitbook.io/dungeonplus/di-lao/di-lao-jie-shao.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
