LootInjector
LootInjector 是一款 Paper 插件与 Fabric 模组,为你提供一处集中控制服务器掉落物的平台。你可以编辑结构宝箱、直接掉落表、生物掉落、村民交易和附魔结果,包括数据包内容。在 Paper 上,它还内置了游戏内 GUI,让你无需手动翻阅 JSON 即可浏览来源、调整概率、添加物品或屏蔽条目。
paper/: 包含 GUI 和命令工作流的 Paper 插件。
fabric/: 包含命令工作流和掉落运行时注入的 Fabric 服务端模组。
common/: 共享的 TargetType、TargetKey 和搜索辅助工具。
支持的目标类型
Structure Loot Table(结构掉落表)
Mob Drops(生物掉落)
Villager Trades(村民交易)
Enchant Table(附魔台)
Trial Vaults(试炼密室保险箱)
功能对比矩阵
| 功能 |
Paper |
Fabric |
| 运行时注入:掉落表 / 结构 / 生物 |
是 |
是 |
| GUI 编辑器 |
是 |
否 |
| Namespace 来源浏览器 |
是 |
否 |
| 结构基础掉落发现(原版 + 数据包) |
是 |
无 GUI 基础视图 |
| 生物来源浏览器及生物编辑器 |
是 |
无 GUI |
| 村民交易 GUI/编辑器 |
是 |
无 GUI |
| 附魔台 GUI/编辑器 |
是 |
无 GUI |
命令编辑 (add, addhand, block, blockhand, clear, search) |
是 |
是 |
| 类型感知搜索 (structure/loot_table/mob/villager/enchant_table) |
是 |
是 |
命令参考
基础命令:/lootinjector
通用(Paper + Fabric)
/lootinjector reload
/lootinjector search <structure|loot_table|mob|villager|enchant_table> <query>
/lootinjector add <structure|loot_table|mob|villager|enchant_table> <id> <chance> <item_id>
/lootinjector addhand <structure|loot_table|mob|villager|enchant_table> <id> <chance>
/lootinjector block <structure|loot_table|mob|villager|enchant_table> <id> <item_id>
/lootinjector blockhand <structure|loot_table|mob|villager|enchant_table> <id>
/lootinjector clear <structure|loot_table|mob|villager|enchant_table> <id>
仅 Paper
/lootinjector gui
/lootinjector add <...> [nbt](支持 NBT 参数)
/lootinjector block <...> [nbt](支持 NBT 参数)
/lootinjector open <structure|loot_table|mob|villager|enchant_table> <id>
/lootinjector debugbase <structure_id>
Paper
GUI
- 主来源页面:
- 原版/数据包结构 Namespace
- 村民
- 附魔台
- 生物掉落
- 生物掉落支持 Namespace 下钻,随后进入单个生物的编辑器。
- 生物图标在可用时使用原版刷怪蛋,否则回退使用刷怪笼图标。
- 编辑器支持:
- 查看基础条目
- 添加自定义规则(拖放 + 添加按钮)
- 屏蔽/取消屏蔽条目
- 概率编辑
- 分页 + 清除规则
Fabric
运行时
- 在掉落修改期间注入配置好的规则。
- 适用于:
- 直接掉落表目标
- 从宝箱掉落表推断出的结构别名
- 从
entities/* 掉落表推断出的生物目标
权限
Paper 使用 lootinjector.admin 进行命令访问控制。
许可证
GPLv3。详见 LICENSE。
LootInjector
LootInjector is a Paper plugin + Fabric mod that gives you one place to control loot across your server. You can edit structure chests, direct loot tables, mob drops, villager trades, and enchanting outcomes, including datapack content. On Paper, it also has an in-game GUI so you can browse sources and tweak chances, add items, or block entries without digging through JSON by hand.
paper/: Paper plugin with GUI + command workflow.
fabric/: Fabric server mod with command workflow + loot runtime injection.
common/: shared TargetType, TargetKey, search helpers.
Supported Targets
Structure Loot Table
Mob Drops
Villager Trades
Enchant Table
Trial Vaults
Feature Parity Matrix
| Feature |
Paper |
Fabric |
| Runtime injection: loot tables / structures / mobs |
Yes |
Yes |
| GUI editor |
Yes |
No |
| Namespace source browser |
Yes |
No |
| Structure base loot discovery (vanilla + datapacks) |
Yes |
No GUI base view |
| Mob source browser and mob editor |
Yes |
No GUI |
| Villager trade GUI/editor |
Yes |
No GUI |
| Enchant table GUI/editor |
Yes |
No GUI |
Command editing (add, addhand, block, blockhand, clear, search) |
Yes |
Yes |
| Type-aware searching (structure/loot_table/mob/villager/enchant_table) |
Yes |
Yes |
Command Reference
Base command: /lootinjector
Shared (Paper + Fabric)
/lootinjector reload
/lootinjector search <structure|loot_table|mob|villager|enchant_table> <query>
/lootinjector add <structure|loot_table|mob|villager|enchant_table> <id> <chance> <item_id>
/lootinjector addhand <structure|loot_table|mob|villager|enchant_table> <id> <chance>
/lootinjector block <structure|loot_table|mob|villager|enchant_table> <id> <item_id>
/lootinjector blockhand <structure|loot_table|mob|villager|enchant_table> <id>
/lootinjector clear <structure|loot_table|mob|villager|enchant_table> <id>
Paper-only
/lootinjector gui
/lootinjector add <...> [nbt] (NBT argument supported)
/lootinjector block <...> [nbt] (NBT argument supported)
/lootinjector open <structure|loot_table|mob|villager|enchant_table> <id>
/lootinjector debugbase <structure_id>
Paper
GUI
- Main Sources page:
- Vanilla/datapack structure namespaces
- Villagers
- Enchant Table
- Mob Drops
- Mob Drops has namespace drilldown, then per-mob editor.
- Mob icons use vanilla spawn eggs where available, else spawner fallback.
- Editors support:
- Viewing base entries
- Add custom rules (drag/drop + add button)
- Block/unblock entries
- Chance edits
- Paging + clear rules
Fabric
Runtime
- Injects configured rules during loot-drop modification.
- Applies to:
- Direct loot table targets
- Structure aliases inferred from chest loot tables
- Mob targets inferred from
entities/* loot tables
Permissions
Paper uses lootinjector.admin for command access.
License
GPLv3. See LICENSE.
评论 0
登录后参与评分
还没有评论,来抢沙发吧