Modpack Assistant
用于整合包开发和服务器管理的服务器端命令。包括世界检查、区域编辑、战利品与生成模拟、配方和标签审计,以及常见的管理便利功能。
Modpack Assistant 不会添加任何方块、物品、实体或 GUI。它的所有功能均通过命令实现,因此可以无缝集成到整合包中,而不干扰其他内容。可以随时添加到整合包中或从中移除。
原版客户端可以连接并使用所有功能。唯一的客户端额外功能是自动剪贴板复制,当客户端未安装该模组时,会回退为点击聊天消息进行复制。
分析与报告
只读扫描,会在 logs/modpackassistant/ 下写入报告文件。
| 命令 | 用途 |
|---|---|
/ma scanOres <chunk_radius> [min_y] [max_y] |
按方块和高度统计矿石分布 |
/ma mapBiomes <radius> [interval] [y] |
在不加载区块的情况下,统计区域内的生物群系覆盖情况 |
/ma simulateLoot <iterations> <loot_table> [luck] |
任意战利品表的掉落统计 |
/ma simulateSpawns <biome> <dimension> <ticks> |
估算自然生成情况,不会向世界中添加实体 |
/ma findConflicts [type] |
消耗相同输入配方的冲突检测 |
/ma findUncraftables [namespace] |
没有任何配方、战利品表或交易来源的物品 |
/ma auditUnification [namespace] |
包含多个物品或完全不包含物品的材料标签 |
/ma exportTags <item/block/entity/fluid> [json/csv] |
导出每个注册对象及其关联的标签 |
模拟操作会显示预期结果,并列出无法评估的任何规则。
世界编辑
| 命令 | 用途 |
|---|---|
/ma clear <radius> [keep <ores/ores_and_modded/nothing> / remove <predicate>] [protect_bedrock] |
批量删除指定区域区块内的方块 |
/ma drain [location] <radius> |
移除相连的流体水体(泛洪填充式清除) |
/ma kill <type> 或 /ma kill by <entity> |
批量移除实体 |
/ma minearea <radius> [harvest] |
模拟挖掘区域内的所有矿石,并将掉落物存入桶中 |
/ma testStructureLoot <structure> [samples] |
根据结构战利品表测试生成的箱子战利品,附带告示牌,并提供一个 clear 命令以精确移除其放置的内容 |
/ma cancel |
中止当前正在进行的长时间运行操作 |
区域命令统一使用一种半径约定:半径 0 表示单个区块,半径 n 表示每边 (2n+1) 个区块。提示信息始终显示实际的区块跨度,而非原始参数。基岩保护默认开启,批量实体移除尊重 datapack 保护标签,且除非通过显式的玩家目标类型,否则绝不会误伤玩家。
管理便利功能
| 命令 | 用途 |
|---|---|
/toggledownfall |
切换主世界天气在晴朗和下雨之间 |
/ma devenv <true/false> |
冻结或恢复日光、天气和怪物生成 |
/ma opsword |
一把附魔等级达到 255 的下界合金剑 |
/ma enchant add <enchantment> <0-255> |
将手持物品的附魔等级提升至超出正常限制 |
/ma enchant remove <enchantment> |
从手持物品上移除一种附魔 |
/ma repair [player] |
修复手持物品 |
/ma heal [player], /ma feed [player] |
恢复生命值和饥饿值 |
/ma god [player] |
切换无敌模式 |
/ma nightvision |
切换永久夜视效果 |
/ma tpd <dimension> [targets] |
安全地将实体传送至另一个维度 |
物品数据提取
/ma hand、/ma print <source> 和 /ma copy <source> [format] 可从八个物品源(手持物品、副手物品、快捷栏、背包、背包加快捷栏、盔甲槽、所有物品、目标玩家的背包)读取数据,并以九种格式输出:纯文本、组件、NBT、SNBT、JSON、KubeJS、KubeJS 原生格式、CraftTweaker 和 CSV。这对于将确切的物品堆叠粘贴到脚本或配方中非常有用,无需手动编写组件语法。
长时间运行的行为方式
区域清除、矿石调查、挖掘模拟和流体排水被分解为共享刻调度器上的逐区块任务。没有任何操作会在单个刻内扫描或编辑整个区域。同一时间只能运行一个任务,它会更新报告进度,拒绝重叠执行,并在收到 /ma cancel 命令时停止。
配置
config/modpackassistant-common.toml 包含物品检查的权限级别、每个高负载命令的半径、迭代次数和方块上限、报告目录以及任务间隔。
管理命令默认需要权限级别 2。
要求
- Minecraft 26.1.2
- NeoForge 26.1.2.73 或更高版本
- Java 25
- 仅限服务器端。客户端安装为可选,仅启用自动剪贴板复制功能。
链接
- 源码与问题反馈:
- 许可证:MIT
Modpack Assistant
Server-side commands for modpack development and server administration. World inspection, region editing, loot and spawn simulation, recipe and tag audits, and the usual admin conveniences.
Modpack Assistant doesn't add any blocks, items, entities, or GUIs. Everything it does is via commands, so it drops into a pack without interfering with anything else. Can be added or removed from a pack at any time.
Vanilla clients can connect and use every feature. The only client-side extra is automatic clipboard copying, which falls back to click-to-copy chat when the mod is not installed on the client.
Analysis and reports
Read-only scans that write a report file under logs/modpackassistant/.
| Command | Purpose |
|---|---|
/ma scanOres <chunk_radius> [min_y] [max_y] |
Ore distribution by block and by height |
/ma mapBiomes <radius> [interval] [y] |
Biome coverage over an area, without loading chunks |
/ma simulateLoot <iterations> <loot_table> [luck] |
Drop statistics for any loot table |
/ma simulateSpawns <biome> <dimension> <ticks> |
Estimated natural spawning, no entities added to the world |
/ma findConflicts [type] |
Recipes that consume the same inputs |
/ma findUncraftables [namespace] |
Items with no recipe, loot table, or trade source |
/ma auditUnification [namespace] |
Material tags holding several items, or none at all |
/ma exportTags <item/block/entity/fluid> [json/csv] |
Every registered object with its tags |
Simulations state their expected results and list any rule they could not evaluate.
World editing
| Command | Purpose |
|---|---|
/ma clear <radius> [keep <ores/ores_and_modded/nothing> / remove <predicate>] [protect_bedrock] |
Mass-delete blocks across a chunk region |
/ma drain [location] <radius> |
Flood-fill removal of a connected body of fluid |
/ma kill <type> or /ma kill by <entity> |
Bulk entity removal |
/ma minearea <radius> [harvest] |
Simulate mining every ore in a region and bank the drops in barrels |
/ma testStructureLoot <structure> [samples] |
Chests of generated loot per structure loot table, with signs, plus a clear that removes exactly what it placed |
/ma cancel |
Abort the active long-running operation |
Region commands use one radius convention throughout: radius 0 is a single chunk, radius n is (2n+1) chunks per side. Messages always state the real chunk span rather than the raw argument. Bedrock protection defaults to on, and bulk entity removal respects adatapack protection tag and never catches players except through the explicit player-targeting types.
Admin conveniences
| Command | Purpose |
|---|---|
/toggledownfall |
Flip overworld weather between clear and rain |
/ma devenv <true/false> |
Freeze or restore daylight, weather, and mob spawning |
/ma opsword |
A netherite sword enchanted to level 255 |
/ma enchant add <enchantment> <0-255> |
Enchant the held item past normal limits |
/ma enchant remove <enchantment> |
Strip one enchantment from the held item |
/ma repair [player] |
Repair the held item |
/ma heal [player], /ma feed [player] |
Restore health and hunger |
/ma god [player] |
Toggle invulnerability |
/ma nightvision |
Toggle permanent night vision |
/ma tpd <dimension> [targets] |
Move entities to another dimension safely |
Item data extraction
/ma hand, /ma print <source>, and /ma copy <source> [format] read from eight item sources
(hand, offhand, hotbar, inventory, inventory_and_hotbar, armor, everything, and the inventory of a
targeted player) and write in nine formats: plain, components, NBT, SNBT, JSON, KubeJS, KubeJS
native, CraftTweaker, and CSV. Useful for pasting an exact stack into a script or a recipe without hand-writing component syntax.
How long operations behave
Region clears, ore surveys, mining simulations, and fluid drains are decomposed into per-chunk jobs
on a shared tick scheduler. Nothing scans or edits a whole region inside a single tick. Only one run
is active at a time and it updates on report progress, refuses to overlap, and stops on /ma cancel.
Configuration
config/modpackassistant-common.toml holds the permission level for item inspection, the radius,
iteration, and block caps for each expensive command, the report directory, and the job interval.
Admin commands default to permission level 2.
Requirements
- Minecraft 26.1.2
- NeoForge 26.1.2.73 or newer
- Java 25
- Server side. Installing on the client is optional and only enables automatic clipboard copying.
Links
- Source and issues:
- License: MIT
下载 Modpack Assistant
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Modpack Assistant
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Modpack Assistant
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Modpack Assistant
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Modpack Assistant
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Modpack Assistant
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Modpack Assistant
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Modpack Assistant
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Modpack Assistant
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Modpack Assistant
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
适用于 Minecraft 26.3 和 NeoForge 26.3.0.115 的首次发布
新增
/mpa chunkthroughput <radius> [x] [z]会在以指定区块位置(或玩家,或世界重生点)为中心、半径为给定区块数的圆形区域内生成每个区块,并报告服务器每秒生成的区块数,包括总体数据和每个工作线程的数据。已经加载的区块会单独计数。运行过程会显示进度,可以使用/mpa cancel停止。半径最大可达 5000 个区块。由 @Asbestosstar 贡献,参见 breakinblocks/Modpack-Assistant#5。/mpa showBarriers on会将每个屏障方块绘制为带有屏障标志的半透明红色立方体,相邻屏障之间不渲染面,从而使墙壁和地板看起来是一个连续的表面。/mpa showBarriers off可再次隐藏它们。该设置保存在客户端配置中,默认关闭,且需要在客户端安装本模组。基于 Rylex (LegendaryRylex/showbarriers, MIT) 的 Show Barriers。
更改
/mpa simulateSpawns从维度的自然生物生成列表中读取数据,并在其之上应用生物群系的影响,因为 26.3 将生成设置从生物群系中分离出去。时间线对生成的变更未包含在内,报告头部已注明这一点。/mpa simulateLoot和/mpa testStructureLoot背后的战利品安全检查遵循 26.3 的战利品格式,其中修饰符、条件和嵌套表可以是纯引用。拒绝指向修饰符、条件或表的标签引用。- 配置文件现在为
config/modpackassistant-local.toml,因为 26.3 用本地配置替换了通用配置。旧版modpackassistant-common.toml中的设置不会自动迁移;请手动复制。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧