Dungeon Conquest API 是一个基于 Fabric 模组 Dungeonz 启发的实例化地牢系统。
该模组允许你通过数据包添加大规模、可再生的地牢结构。你只需要提供结构的 NBT 文件和 JSON 文件,以便 Dungeon Conquest API 识别你的地牢即可。
由于模组生成的结构存在于独立的维度中,并遵循专门的生成逻辑,因此你可以在几乎没有严重性能影响的情况下加载真正庞大的地牢。
地牢系统的工作原理
模组引入了一个新方块:dungeon_conquest_api:dungeon_portal(地牢传送门)。放置后,你可以设定进入传送门时将创建的地牢 ID。当玩家踏入地牢维度时,游戏会搜索 dungeon_conquest_api:dungeon_spawn(地牢出生点)方块,并将玩家瞬间传送至其位置,从而让你能够在构建结构时精确设置出生点。此外还有 dungeon_conquest_api:dungeon_exit(地牢出口)方块,自然用作返回地牢外的方式。
当地牢创建完成后,它会直接与传送门关联,允许玩家自由进出同时保留他们的进度。创建后,系统将启动一个 5 小时的倒计时,之后地牢将被删除——使其能够重新生成并刷新怪物与战利品。如果清理计划执行时仍有玩家在地牢内,系统会将重置延迟 20 分钟。
Dungeon Conquest API is an instanced dungeon system inspired by the Fabric mod Dungeonz.
This mod allows you to add massive, renewable dungeon structures using datapacks. All you need are your structure's NBT files and a JSON file that lets Dungeon Conquest API recognize your dungeon.
Since the structures generated by the mod exist in a dedicated dimension and follow specialized generation logic, you can load truly colossal dungeons without any severe performance impact.
How Does the Dungeon System Work?
The mod introduces a new block: dungeon_conquest_api:dungeon_portal. When placed, you set the ID of the dungeon to be created upon entering the portal. Once a player steps into the dungeon dimension, the game searches for a dungeon_conquest_api:dungeon_spawn block and instantly teleports the player to its location, allowing you to set the exact spawn point when building your structure. There is also a dungeon_conquest_api:dungeon_exit block, which naturally serves as the way back out of the dungeon.
When a dungeon is created, it links directly to the portal, allowing players to enter and exit freely while preserving their progress. Upon creation, a 5-hour countdown begins, after which the dungeon is deleted -allowing it to regenerate with refreshed mobs and loot. If any players are still inside when the cleanup is scheduled to happen, the system delays the reset by 20 minutes.
评论 0
登录后参与评分
还没有评论,来抢沙发吧