DaBsu, Dialog Batch Spawner Utils
简介
DaBsu 是一款面向 Minecraft Java 版 1.21.6+ 的基于对话框的刷怪笼编辑器。它专为地图制作者设计,用于便捷、可视化地管理大量刷怪笼。DaBsu 的快速编辑功能允许用户方便地修改单个刷怪笼或一组刷怪笼;而批量编辑功能则支持以高度综合的方式选择多个刷怪笼并一起编辑它们。
语言
DaBsu 支持多语言。当玩家首次加入服务器时,数据包会提示他们选择语言(目前支持 en 和 zh_cn),或者玩家可以通过执行 function dabsu:lang 来更改语言。
获取 DaBsu 权杖
DaBsu 的大部分功能都需要通过 DaBsu 权杖 来触发。要获得该物品,请运行以下任意命令:
function #dabsu:a
function dabsu:a
function dabsu:wand
另外,如果你安装了 "...With Fast Dialog" 版本,你可以按下 G 键打开 DaBsu 的快速对话框操作,然后选择 Obtain DaBsu Debug Stick。
- 手持权杖并按住 潜行 + 右键点击 将打开 DaBsu 主菜单。
- 手持权杖并注视一个刷怪笼,即可显示该刷怪笼的信息。
- 要丢弃权杖,请按 潜行 + Q。
功能
以下是 DaBsu 所有功能的列表。如需详细说明,请参阅相应的章节。
- 快速编辑
- 可视化世界内编辑
- 对话框编辑属性
- 对话框编辑
SpawnPotentials
- 快速更改实体的
attributes 和 Equipments(更多功能即将推出)
- 同步具有相同
SpawnPotentials 的其他刷怪笼中的 SpawnPotentials 更改
- 扫描 & 注册已存在的刷怪笼
- 批量编辑
- 选择刷怪笼(长方体选择 | 范围选择 | nbt= 选择 | 相同
SpawnPotentials 选择 | 全选 | 修改选择(添加/移除/取交集))
- 编辑选中的刷怪笼(主要设置 | 替换或调整属性 | 管理
SpawnPotentials | 执行任意命令)
- 可配置设置
- 休眠及卸载数据包
- 试炼刷怪笼着色器
- 服务器末影箱
- 生成分析器
快速编辑
快速编辑允许你即时编辑单个刷怪笼。你可以选择将更改发布到 SpawnPotentials,从而应用到所有具有相同 SpawnPotentials 的其他刷怪笼上。
要进行快速编辑,请在刷怪笼上按住 潜行 + 右键点击。
可视化世界内编辑
默认情况下,你会看到一个代表刷怪笼 SpawnRange 的方块,一个代表其 RequiredPlayerRange 的球体,以及刷怪笼顶部一个代表 SpawnCount 的条形指示器。
这些显示装置上附有若干个小绿方块,你可以按住 右键拖动权杖 来更改相应的数值。

对话框编辑属性
在快速编辑期间,手持权杖时按 Q 键将打开 快速编辑菜单 对话框窗口。
在此界面中,你可以选择 Edit Properties 来编辑刷怪笼的设置(不包括 SpawnPotentials),包括 SpawnCount、SpawnRange、RequiredPlayerRange、Min/MaxSpawnDelay 和 MaxNearbyEntities。
按 F 键是进入此页面的快捷键。
点击 Edit Itself 将根据你的输入修改当前刷怪笼,点击 Edit Same Potential 将根据你的输入修改所有具有完全相同 SpawnPotentials 的刷怪笼。
对话框编辑 SpawnPotentials
在快速编辑期间,按 Q 键将打开 快速编辑菜单 对话框窗口。
在此界面中,你可以选择 Edit SpawnPotentials 来管理刷怪笼的 SpawnPotentials 条目。

你将首先进入 Select Potential 菜单,这是一个按顺序列出刷怪笼所有 SpawnPotentials 条目的页面:
- 点击 [+] 按钮可以向
SpawnPotentials 追加新条目。
- Light Limit... 更改所有条目的自定义生成规则
- Merge to all... 允许你将任何复合标签合并到
SpawnPotentials 列表中的每个条目中
- Edit Full NBT 允许你直接编辑整个
SpawnPotentials 标签。
你也可以 选择一个条目来编辑特定的生成项。
存在一个快捷键:潜行 + F。如果你的刷怪笼只有一个生成选项,它将直接带你进入该条目。如果没有或多个条目,它将带你进入 Select Potential 页面。
在编辑特定条目时,你可以自由编辑生成实体 data.entity、装备战利品表 data.equipment 或该条目的权重 weight。点击 Edit Itself 应用更改。
你还可以选择 Delete 此条目或 Edit its Light Levels。

快速更改通用标签
在 Edit Common Tags 选项中,你可以更改实体的常见基础 attributes 或 equipments。
要快速更改属性,请输入数字;
要管理装备,你可以选择将生物的一件装备复制到你的背包中,或用背包或末影箱中的物品替换其中一个槽位。
同步 SpawnPotentials 更改
在对正在快速编辑的刷怪笼的 SpawnPotentials 进行任何更改后,你可以按 Q 键打开 快速编辑菜单 对话框窗口,看到提示让你 Sync Changes 或 Revert Edits。
Sync Changes 会将你对当前刷怪笼的编辑同步到所有曾经与其拥有相同 SpawnPotentials 的其他刷怪笼。
Revert Edits 将撤销你对当前刷怪笼 SpawnPotentials 的所有更改。
退出快速编辑
要完成快速编辑,请执行以下任一操作:
- 潜行 + 右键点击刷怪笼(使用魔杖)
- 手持魔杖时按 Q
- 远离刷怪笼,或该刷怪笼所在区块不再加载。
- 在 快速编辑菜单 中按下 退出快速编辑 按钮
- 离开服务器
注册预置刷怪笼
DaBsu 系统仅会追踪已注册的刷怪笼。数据包安装后,所有玩家放置的刷怪笼将自动注册。
若要注册在 DaBsu 安装前已存在的刷怪笼,或非手动放置的刷怪笼,请使用 DaBsu 主菜单中的 开始扫描并注册 功能。这是一种非常“粗”的光线投射,每两个游戏刻运行一次,以检查你的视线方向上是否有任何未注册的刷怪笼。
在此功能启用期间,手持魔杖时按 Q 可进入其选项,你可以选择光线长度、粗细以及是否能穿透方块。
此外,使用 DaBsu 魔杖右键点击未注册的刷怪笼也会将其注册。
批量编辑
批量编辑是一种更高级的编辑方法。你可以通过高度综合的方式选择多个刷怪笼并同时编辑它们。
批量编辑:选择刷怪笼
要选择用于批量编辑的刷怪笼,请使用 DaBsu 魔杖潜行 + 右键点击打开主菜单,然后点击 批量编辑:选择刷怪笼。如果当前没有选中的刷怪笼,且你不在快速编辑模式中,手持魔杖按 Q 会直接跳转到此页面。

提供 5 种不同的选择方法:
定义两个角,它们形成的长方体内的所有已注册刷怪笼都将被选中。逻辑与 /fill 命令相同。这适用于未加载的区块。
定义这两个坐标时,你可以在输入框中输入数值,点击 设置长方体位置 1/2 将其设置为当前位置,或者点击 快速长方体位置 然后使用魔杖右键点击来定义两个位置,类似于 WordEdit 的操作。
选择距离你给定范围内的所有刷怪笼。这是唯一无法选择未加载区块中刷怪笼的选择方法。
调整页面上方的滑块以更改此范围。
这与 nbt= 选择器参数的逻辑相同。系统将提示你输入一个复合标签,并选择至少包含一个你所输入标签实体的所有刷怪笼。例如,{id:"minecraft:zombie"} 将选择生成僵尸的所有刷怪笼。(实际上并不完全准确。由于 Minecraft 不检查刷怪笼实体内部的 NBT,你必须再次使用 {id:"zombie"} 进行选择并将其添加到之前的选择中 (见下文),才能真正选中所有僵尸)。
此选择方法跨维度且适用于未加载的区块。
你必须站在一个刷怪笼上才能使用此功能。选择与你所站立的刷怪笼具有相同 SpawnPotentials 的所有刷怪笼。此选择方法跨维度且适用于未加载的区块。
所有已注册的刷怪笼都将被选中,跨维度且适用于未加载的区块。
页面顶部有一个复选框“添加到选择而非替换”。如果勾选,新选中的刷怪笼将添加到现有选择中,而不是创建新的选择。
所有选中的刷怪笼将闪烁蓝色以示区别。
批量编辑:修改选择
你可以移除一些刷怪笼或与另一个选择取交集来修改你的选择,类似于 Photoshop 的操作。为此,请使用 DaBsu 魔杖潜行 + 右键点击打开主菜单,然后点击 批量编辑:修改选择。
在页面顶部的按钮中选择模式为 从选择中移除 或 取交集,其余操作与“选择刷怪笼”页面相同。
清除选择
要清空选择,请在主菜单中点击 批量编辑:取消选择 按钮。
批量编辑:编辑选中的刷怪笼
要编辑选中的刷怪笼,请在主菜单中点击 批量编辑:编辑选中的刷怪笼 按钮。只要至少选中了一个刷怪笼,手持魔杖按 Q 也会带你来到这里,作为快捷方式。
你有 4 种不同的方式来修改这些选中的刷怪笼。所有这些操作都跨维度且适用于未加载的区块中的所有选中刷怪笼:
这将刷怪笼的 Delay 标签设置为你输入的值。(即:预热刷怪笼)
设置除 SpawnPotentials 以外的刷怪笼属性。留空某个框不会改变原始值。将模式更改为 “加或减” 将对原始值与你的输入进行数学运算,而不是替换它们;这样你就可以进行通用调整,例如将所有选中刷怪笼的 SpawnCount 减少 1。
管理刷怪笼的 SpawnPotentials。根据你选择的内容,你将看到不同的可用功能。
如果你选择中的所有刷怪笼都具有完全相同的 SpawnPotentials,那么你可以自由进入并像快速编辑一样编辑每个条目。如果不是,你只能进行非常通用的编辑,例如替换所有光照规则或将一个标签合并到每个条目中。
这允许你在刷怪笼的位置以其标记实体身份运行任何命令。
注意,如果你运行的命令改变了刷怪笼的属性或潜在概率,你必须在编辑后从 DaBsu 主菜单运行 自检和优化 功能,以便 DaBsu 系统中正确更新你所做的所有更改。
自定义选项
DaBsu 为用户提供了一些选项,分为两类:全局设置,影响 DaBsu 的兼容性和性能;以及 个人设置,仅影响您自己的偏好。
这两个类别都可以通过 DaBsu 菜单访问(使用 DaBsu 法杖 Shift + 右键点击)。
用户也可以在个人设置中更改语言。
休眠(卸载)
如果您即将把作品公开发布,您 必须 让 DaBsu 进入休眠状态。
您可以通过在 全局设置 中点击该选项,或运行 function dabsu:hibernate 来实现。
这将移除所有标记实体、记分板以及 DaBsu 使用的几乎所有内容,但会保留存储文件。数据包进入休眠状态后,请将 DaBsu 从 datapacks 文件夹中移除,以防止玩家访问它。
您始终可以通过将 DaBsu 放回 datapacks 文件夹、执行 reload 并运行 function dabsu:resume 来恢复 DaBsu。只要未移除 DaBsu 的存储文件,所有已注册的刷怪笼都会保持注册状态。
多人游戏
多名玩家可以同时使用 DaBsu 的快速编辑功能而不会相互干扰(前提是他们没有尝试编辑同一个刷怪笼)。对于批量编辑,选择范围在所有玩家之间共享,因此同一时间只能有一个选择范围,供所有玩家共同使用。
其他功能
添加了一些其他的“小”功能:
一个(几乎)无限容量的 共享 且 实时同步 的存储空间,供所有用户使用。
这旨在供开发者快速分享常用物品。
您可以从主菜单访问此功能。这会强制所有已注册的刷怪笼检查自身是否被修改,并在 DaBsu 系统中更新其信息。通常,刷怪笼仅在被编辑或有玩家靠近时才会执行此操作。
在快速编辑期间,您可以选择运行持续 5 秒的生成分析,以可视化显示在当前空间、光照和特殊条件下怪物可以在哪些位置生成。这是通过强制刷怪笼以高频率生成同种怪物的特殊版本,并记录其生成位置来实现的。
DaBsu 并不完全支持试炼刷怪笼。除非有非常充分的理由,否则您应该使用数据包中的 试炼刷怪笼配置文件,它可以轻松管理多个试炼刷怪笼的生成概率。
DaBsu 附带了一个转换器,可以将试炼刷怪笼的内联 NBT 配置转换为等效的 JSON 结构,您可以直接将其复制到数据包的 JSON 配置文件中。为此,请在试炼刷怪笼上进入快速编辑模式,并使用法杖按下 Q 键。
技术信息
性能:在空闲状态下,您应该可以忽略其性能开销。
启用快速操作:在发布版本中,提供了两种不同版本的 DaBsu。标记为“带快速操作”的版本使用 JSON 定义了对话框,可以从暂停菜单或通过按下 G 键调用。如果这不会干扰您的游戏体验,那么使用此版本可能会更方便。
运行 function dabsu:version 将告知您当前的版本。它还会返回数字版本号,并将 storage dabsu:sys pong__ 设置为 true。
DaBsu, Dialog Batch Spawner Utils
Introduction
DaBsu is a dialog based Spawner Editor for Minecraft Java 1.21.6+. It is designed for map makers to manage a large amount of spawners conveniently and visually. DaBsu's quick edit allows users to conveniently modify a single spawner or a family of spawners, and DaBsu's batch edit allows you select multiple spawners in highly comprehensive ways and edit them together.
Language
DaBsu comes with support of multi-language. When a player joins the server for the first time, the data pack will ask them to select their language (currently supports en and zh_cn), or one may change their language by executing function dabsu:lang.
Get a DaBsu Wand
Most functions of DaBsu are triggered with a DaBsu Wand. To obtain one, run any of the following commands:
function #dabsu:a
function dabsu:a
function dabsu:wand
Alternatively, if you installed the "...With Fast Dialog" version, you can press G and open DaBsu's Quick Dialog Actions, then select Obtain DaBsu Debug Stick.
- Holding the wand and Sneak + Right Click will open DaBsu Main Menu.
- Holding the wand and look at a spawner displays information of that spawner.
- To get rid of the wand, Sneak + Q.
Features
Here is a list of all functionalities of DaBsu. To see detailed explanation please go to their corresponding chapter.
- Quick Edit
- Visualized In-World Edit
- Dialog Edit Properties
- Dialog Edit
SpawnPotentials
- Quick Change entity's
attributes and Equipments (More coming)
- Sync
SpawnPotentials changes to other spawners with the same SpawnPotentials
- Scan & Register Pre-existed Spawners
- Batch Edit
- Select Spawners (Cuboid Selection | Range Selection | nbt= Selection | Same
SpawnPotentials Selection|Select All | Modify Selection (Add/Remove/Take Intersection))
- Edit Selected Spawners (Prime | Replace or Adjust Properties | Manage
SpawnPotentials | Execute Any Command)
- Configurable Settings
- Hibernate and uninstall data pack
- Trial Spawner Toner
- Server Ender Chest
- Spawn Analyzer
Quick Edit
Quick Edit allows you to edit a single spawner on the go. You may choose to publish your changes on SpawnPotentials to all other spawners with the same SpawnPotentials.
To enter quick edit, Sneak + Right Click on a spawner.
Visualized In-World Edit
By default you will see a box representing the spawner's SpawnRange, a sphere representing its RequiredPlayerRange, and a bar on top of the spawner representing its SpawnCount.
There are several little green cubes attached to these displays, and you may change the corresponding values by holding down right click with the wand and dragging.

Dialog Edit Properties
During quick edit, pressing Q while hoding the wand will open the Quick Edit Menu dialog window.
From there, you may select Edit Properties to edit the spawner's settings except SpawnPotentials, including SpawnCount, SpawnRange, RequiredPlayerRange, Min/MaxSpawnDelay, and MaxNearbyEntities.
Pressing F is a shortcut for getting to this page.
Clicking Edit Itself will modify this spawner with your input, and Clicking Edit Same Potential will modify all spawners with the exact same SpawnPotentials with your input.
Dialog Edit SpawnPotentials
During quick edit, pressing Q will open the Quick Edit Menu dialog window.
From there, you may select Edit SpawnPotentials to manage the spawner's SpawnPotentials entries.

You will first be taken to the Select Potential menu, which is a page that lists all of the spawner's SpawnPotentials entries in order:
- Clicking the [+] button can append a new entry to
SpawnPotentials.
- Light Limit... changes the custom spawn rules for all entries
- Merge to all... lets you merge any compound tag into every entry in the
SpawnPotentials list
- Edit Full NBT lets you directly edit the entire
SpawnPotentials tag.
You may also select an entry to edit that particular spawn.
A shurtcut exists as Sneak + F. If your spawner has only one spawn option, then it directly takes you to that entry. If it has none or multiple entries, then it takes you to the Select Potential page.
When editing a particular entry, you may freely edit the Spawning Entity data.entity, the Equipment Loot Table data.equipment or the Weight weight of this entry. Click Edit Itself to apply your changes.
You may also choose to Delete this entry or Edit its Light Levels.

Quick Change Common Tags
Inside the Edit Common Tags option, you may change common base attributes or equipments of the entity.
To quickly change attributes, type the number;
To manage equipments, you can choose to copy one of the mob's equipment into your inventory, or replace one of the slots with an item inside your inventory or enderchest.
Sync SpawnPotentials changes
After you made any changes through any means to the SpawnPotentials of the spawner being quick edited, you may press Q to open the Quick Edit Menu dialog window and see a prompt for you to Sync Changes or Revert Edits
Sync Changes will sync your edits to this spawner to all other spawners that used to have the same SpawnPotentials with it.
Revert Edits will revert all your changes to the SpawnPotentials of this spawner.
Quitting Quick Edit
To finish quick edit, do any of the following:
- Sneak + Right Click the spawner with the wand again
- Sneak + Q while hoding the wand
- Get far enough from the spawner, or the spawner's chunk is no longer loaded.
- Press the Exit Quick Edit button in the Quick Edit Menu
- Leave the server
Register Pre-Existing Spawners
The DaBsu system will only keep track of registered spawners. After the data pack is installed, all player placed spawners will be automatically registered.
To register spawners existed before DaBsu is installed or spawners that are not placed by hand, use the Start Scanning & Registering function from DaBsu main menu. This is a very "thick" raycast that runs every other tick to check if there are any un-registered spawners along your line of sight.
During this is enabled, pressing Q while holding the wand will take you to its options that you can choose how long the ray is, how thick it is and if it can pierce through blocks.
Additionally, right clicking an unregistered spawner with DaBsu wand will register it.
Batch Edit
Batch editing is a more advanced editing methods. You can select multiple spawners in highly comprehensive ways and edit them at the same time.
Batch Edit Selecting Spawners
To select spawners for batch editing, open main menu by Sneak + Right Click with DaBsu wand, Then click Batch Edit: Select Spawners. If there are currently no selected spawners, pressing Q with the wand takes you here directly (if you are not in quick edit).

There are 5 different method of selection provided:
Define 2 corners and all registered spawners within the cuboid they form will be selected. It is the same logic as the /fill command. This works across unloaded chunks.
To define the 2 coordinates, you can either type them in the input box, click Set Cuboid Pos 1/2 to set it to your current location, or click Fast Cuboid Position then right click with the wand to define 2 positions, kind of like WordEdit.
Select all spawners within a given range from you. This is the only selection method that cannot select spawners in unloaded chunks.
Adjust the slidebar on the top of the page to change this range.
This is the same logic as the nbt= selector argument. You will be prompted to enter a compound tag, and the system will select all spawners that have at least one entity containing the tag you entered. For example. {id:"minecraft:zombie"} will select all spawners that spawn zombies. (Not quite, actually. Since Minecraft does not check NBT inside spawner entity, you will have to select again with {id:"zombie"} and add it to the previous selection (See Below) for it to actually select all zombies).
This selection works across dimensions and unloaded chunks.
You must be standing on a spawner to use this one. Select all spawners that have the same SpawnPotentials as the spawner you are standing on. This selection works across dimensions and unloaded chunks.
All registered spawners will be selected, works across dimensions and unloaded chunks.
On the top of the page there is a check box "Add to selection instead of replace". If checked, the new selected spawners will be added to the pre-existing selection instead of making a new selection.
All selected spawners will flash blue to indicate that.
Batch Edit Modify Selection
You are allowed to modify your selection by removing some spawners from it or taking intersection with another selection, kind of like PhotoShop. To do that, open main menu by Sneak + Right Click with DaBsu wand, Then click Batch Edit: Modify Selection.
Choose your mode to be either Remove From Selection or Take Intersetion with the button on the top, and everything else is the same as the Selecting Spawners page.
Clear Selection
To Empty your selection, Click the Batch Edit: Cancel Selection button in the main menu.
Batch Edit Selected Spawners
To Edit your selected spawners, Click the Batch Edit Selected Spawners button in the main menu. As long as you have at least one spawner selected, pressing Q while holding the wand will also take you here, as a shortcut.
There are 4 different ways you can modify these selected spawners. All of them applies to all selected spawners across dimensions and unloaded chunks:
This sets the Delay tag of the spawner to your input. (i.e., prime the spawners)
Set the properties of this spawners except SpawnPotentials. Leaving a box empty will not change the original value. Changing the mode to "Add or Subtract" will do math on the original value with your input instead of replacing them; this way you can make general adjustments like reduce all selected spawner's SpawnCount by 1.
Manage the spawner's SpawnPotentials. Depending on what you selected, you will see different available functions.
If all spawners in your selection has the exact same SpawnPotentials, then you can freely go into and edit each entry just like Quick Edit. If not, you can only do very general edits like replacing all light rules or merge a tag into every single entry.
This allows you to run any command at the location of the spawner as its marker entity.
Note if you run commands that changed the spawner's properties or potentials, you have to run the Self Check and Optimize function from the DaBsu main menu after the edit, so that all the changes you made are correctly updated in the DaBsu system.
Custom Options
DaBsu provides users with a few options, split into 2 categories: Global settings, which affects the compatibility and performance of DaBsu, and Personal Settings, which are preferences only affecting yourself.
Both categories can be accessed through the DaBsu menu (Shift Right Click with DaBsu wand)
Users can also change their language in Personal Settings.
Hibernating (Uninstalling)
If you are about to release your work into the public, you must hibernate DaBsu.
Do it by clicking the option in Global settings or running function dabsu:hibernate.
This removes all marker entities, scoreboards, and just about everything that DaBsu uses except storage files. After the data pack is hibernated, remove DaBsu from the datapacks folder so players cannot access it.
You can always resume DaBsu by putting it back into datapacks, reload, and run function dabsu:resume. All registered spawners will remain registered, provided that you did not remove DaBsu's storage file.
Multiplayer
Multiple players may use DaBsu's quick edit at the same time without interfering each other (as long as they are not trying to edit the same spawner). For batch edit, the selection is shared among all players so there can only be one selection at a time, used by all players.
Misc Functions
A few other "little" things added:
An (almost) infinite storage shared and synced in real time for all users.
This is intended for devs to share commonly used items quickly.
You can access this from the main menu. This forces all registered spawners to check if they have been changed and update their information in the DaBsu system. Normally spawners will only do this if they just got edited or a player is nearby.
During quick edit you can choose to run a 5 seconds long spawn analysis that visually shows you where mobs can spawn with your current space, light, and special conditions. This works by forcing the spawner to spawn a special version of the same mob at high frequency and documenting where they spawns.
DaBsu does not support trial spawners fully. Unless you have a really good reason, you should be using a Trial Spawner Config File in Datapack, which can easily manage spawn potentials of multiple trial spawners.
DaBsu comes with a converter that can convert a trial spawner's inline NBT configuration into an equivalent JSON structure that you can directly copy to a JSON config file in your data pack. To do that enter quick edit on a trial spawner and press Q with your wand.
Technical Information
Performance: During idle, you should be able to ignore its performance cost.
With Quick Actions: In the releases, 2 different versions of DaBsu are provided. The one labled "With Quick Action" has a dialog defined with JSON and can be called from the pause menu or by pressing G. If this does not interference with your game then using this version could be more convenient.
Running function dabsu:version will tell you its current version. It also returns the numeric verions and set storage dabsu:sys pong__ to true.
评论 0
登录后参与评分
还没有评论,来抢沙发吧