Shared Lootr
Shared Lootr 保留了玩家喜爱的 Lootr 的所有特性——防破坏的破损保护、未开启时的金色高亮视觉效果、原版箱子进度奖励以及腐烂/刷新机制,同时防止多人服务器因玩家数量而复制地牢战利品。不再为每个路过的玩家生成额外的箱子副本,每个 Lootr 容器都在整个服务器上共享一个全局库存(GLOBAL,默认)或按队伍(TEAMS)共享,原生支持 FTB Teams 和原版计分板队伍的共享功能。
共享模式 (config/shared_lootr.toml)
GLOBAL (默认) — 所有玩家都解析到固定的共享池 UUID 00000000-0000-0000-0000-000000000001。一名玩家打开箱子会更新所有人的库存和已开启的视觉状态。
TEAMS — 队友共享单个战利品池,而不同队伍保持独立的池子:
- 如果安装了 FTB Teams 且玩家属于某个小队或服务器队伍,Shared Lootr 将使用该 FTB Team UUID(零硬性依赖)。
- 否则,如果玩家属于原版的计分板
PlayerTeam,Shared Lootr 会通过确定性算法派生 UUID.nameUUIDFromBytes("shared_lootr:vanilla_team:" + teamName)。
- 不属于任何队伍的玩家默认保留自己的私有池(
soloPlayersSharePool = false),或者可以选择加入共享的个人池(soloPlayersSharePool = true)。
可通过游戏内的 Mod Menu(Fabric)或原生的 Mods → Config 按钮(Forge / NeoForge)进行配置,或直接编辑 config/shared_lootr.toml。
支持矩阵 (8 个目标)
| Minecraft |
Fabric |
Forge |
NeoForge |
集成方式 |
| 26.2 |
✅ |
— |
✅ |
官方 Lootr ITeamResolver (1.24.41+) |
| 26.1.2 |
✅ |
— |
✅ |
官方 Lootr ITeamResolver (1.23.38+) |
| 1.21.1 |
✅ |
— |
✅ |
官方 Lootr ITeamResolver (1.11.38+) |
| 1.20.1 |
✅ |
✅ |
— |
最小化 UUID 投影 Mixin (0.7.35.x) |
鸣谢
特别感谢 noobanidus(Lootr 的作者)在 Minecraft 1.21.1、26.1.2 和 26.2 上设计并发布了官方的 ITeamResolver ServiceLoader API,使得 Shared Lootr 2.0 大幅轻量化且具有未来兼容性。
Shared Lootr
Shared Lootr keeps everything players love about Lootr — anti-griefing break protection, unopened golden highlight visuals, vanilla chest advancements, and decay/refresh mechanics — while preventing multiplayer servers from duplicating dungeon loot by player count. Instead of generating an extra copy of every chest for every player who walks by, each Lootr container shares one inventory globally across the server (GLOBAL, default) or per team (TEAMS), with native FTB Teams and vanilla scoreboard team sharing.
Sharing Modes (config/shared_lootr.toml)
GLOBAL (Default) — Every player resolves to the fixed shared pool UUID 00000000-0000-0000-0000-000000000001. One player looting a chest updates the inventory and opened visual state for everyone.
TEAMS — Teammates share a single loot pool while separate teams keep independent pools:
- If FTB Teams is installed and the player belongs to a party or server team, Shared Lootr uses that FTB Team UUID (zero hard dependency).
- Otherwise, if the player belongs to a vanilla scoreboard
PlayerTeam, Shared Lootr deterministically derives UUID.nameUUIDFromBytes("shared_lootr:vanilla_team:" + teamName).
- Players not in any team keep their own private pool by default (
soloPlayersSharePool = false), or can opt into a shared solo pool (soloPlayersSharePool = true).
Configure in-game via Mod Menu (Fabric) or the native Mods → Config button (Forge / NeoForge), or by editing config/shared_lootr.toml.
Supported Matrix (8 Targets)
| Minecraft |
Fabric |
Forge |
NeoForge |
Integration |
| 26.2 |
✅ |
— |
✅ |
Official Lootr ITeamResolver (1.24.41+) |
| 26.1.2 |
✅ |
— |
✅ |
Official Lootr ITeamResolver (1.23.38+) |
| 1.21.1 |
✅ |
— |
✅ |
Official Lootr ITeamResolver (1.11.38+) |
| 1.20.1 |
✅ |
✅ |
— |
Minimal UUID projection Mixin (0.7.35.x) |
Credits
Special thanks to noobanidus (author of Lootr) for designing and shipping the official ITeamResolver ServiceLoader API on Minecraft 1.21.1, 26.1.2, and 26.2, making Shared Lootr 2.0 dramatically lighter and future-proof.
评论 0
登录后参与评分
还没有评论,来抢沙发吧