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
- 仅限服务器端。客户端安装为可选,仅启用自动剪贴板复制功能。
链接
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
评论 0
登录后参与评分
还没有评论,来抢沙发吧