负重超限
每件物品都有重量。携带过多,世界便会开始反击。
原版游戏中,玩家可以在一个背包栏里装下一整座采石场——唯一的限制仅仅是槽位数量。当玩家拥有几个潜影盒后,他们便成了行走的储物单元,坐骑、矿车和储物基地也随之变得无关紧要。
Overencumbered 为每件物品赋予重量,实时汇总玩家实际携带的重量,并在玩家跨越阈值时施加后果。
无需数据库,无依赖项——所有状态均保存在 config.yml 中。
工作原理
每个周期(默认每秒两次),插件会执行以下操作:
- 计算背包、盔甲、副手以及(可选地)末影箱中的物品重量总和——包括按可配置比例计算的潜影盒内容物。
- 将总重量除以玩家的承载上限。
- 选择对应的层级并应用其效果。
| 层级 |
阈值(默认值) |
效果(默认值) |
| 轻盈 |
低于 50% |
无 - 正常移动 |
| 超重 |
50% - 80% |
缓慢 I,额外饥饿消耗 |
| 压垮 |
80% + |
缓慢 II,更严重的饥饿消耗,无法冲刺,无法跳跃,周期性伤害 |
重量表
未列出的物品使用 default-weight(0.5)。精确的材料条目优先检查,然后是标签,最后是默认值——因此只需几行代码即可涵盖游戏中的每种原木、木板或剑:
default-weight: 0.5
weights:
minecraft:netherite_block: 64.0
minecraft:iron_block: 36.0
minecraft:stone: 1.0
minecraft:feather: 0.05
minecraft:shulker_box: 4.0
tags:
minecraft:logs: 1.5
minecraft:planks: 1.0
minecraft:swords: 6.0
无效的标签名称会被安全忽略——拼写错误绝不会导致插件崩溃。
潜影盒的重量取决于其内部物品
潜影盒不是没有重量的魔法袋子。其内容物按 shulker-contents-factor(默认 0.5,即一半速率)计算重量,因此装满下界合金块的箱子会对携带者产生拖拽感,但不会像直接搬运散落的下界合金块那样惩罚严厉。
weigh:
inventory: true
armor: true
offhand: true
ender-chest: false
shulker-contents: true
shulker-contents-factor: 0.5 # 0.0 = 箱子免费,1.0 = 全额重量
shulker-nesting: 1
承载上限
一个数值即可调整整个系统,并提供可选的权限加成(最高匹配权生效):
capacity: 1000.0
capacity-overrides:
overencumbered.capacity.vip: 1500.0
HUD
可选的彩色动作条显示实时负载——绿色、黄色然后红色:
Weight 742/1000kg (74%)
命令
| 命令 |
描述 |
权限 |
/overencumbered |
显示自身的重量、容量和层级 |
overencumbered.use |
/overencumbered check [player] |
显示其他玩家的重量 |
overencumbered.admin |
/overencumbered top |
在线最重的玩家 |
overencumbered.use |
/overencumbered reload |
重新加载配置 |
overencumbered.admin |
别名:/weight、/encumbrance、/oe。
overencumbered.bypass 允许工作人员无视所有重量效果。
为何它改变玩法
- PvP 与探索 - 无法带着塞满潜影盒的采石场投入战斗;你必须在交战前决定丢弃什么。
- 坐骑与矿车 - 骡子、羊驼和箱子船成为处理大量物资运输的答案。
- 储物基地 - 存放战利品的地方再次变得有价值。
- 经济 - 搭配交易插件,货物移动将成为一项物流决策。
诚实的限制
- 默认设置故意设计为可玩而非惩罚性:平均物品的完整库存大致处于超重线附近。搬运数千个方块的建造者可能需要更高的
capacity 或其建造者等级的 capacity-overrides 权限。
- 效果使用原版药水效果加上 Paper 的跳跃/冲刺事件,因此如果还有其他插件管理这些效果可能会发生冲突——对这些玩家使用
overencumbered.bypass。
- 压垮伤害通过原版
damage() 传递,因此盔甲可以减少该伤害。全副武装的玩家能抵抗压垮更长时间。这是有意为之。
Overencumbered
Every item has weight. Carry too much and the world starts to push back.
Vanilla lets a player pocket an entire quarry in one inventory - the only real limit is slot
count. By the time a player owns a few shulker boxes they are a walking storage unit, and mounts,
carts and storage bases stop mattering.
Overencumbered gives every item a weight, sums what a player is actually carrying in real time,
and applies consequences as they cross thresholds.
No database, no dependencies - all state lives in config.yml.
How it works
Each cycle (twice a second by default) the plugin:
- Sums the weight of the inventory, armour, offhand and (optionally) ender chest - including the
contents of shulker boxes at a configurable fraction.
- Divides the total by the player's capacity.
- Picks a tier and applies its effects.
| Tier |
Threshold (default) |
Effects (default) |
| Light |
under 50% |
none - normal movement |
| Overburdened |
50% - 80% |
Slowness I, extra hunger drain |
| Crushed |
80% + |
Slowness II, heavier hunger drain, cannot sprint, cannot jump, periodic damage |
Weight table
Anything unlisted uses default-weight (0.5). Exact material entries are checked first, then
tags, then the default - so a few lines cover every log, plank or sword in the game:
default-weight: 0.5
weights:
minecraft:netherite_block: 64.0
minecraft:iron_block: 36.0
minecraft:stone: 1.0
minecraft:feather: 0.05
minecraft:shulker_box: 4.0
tags:
minecraft:logs: 1.5
minecraft:planks: 1.0
minecraft:swords: 6.0
Invalid tag names are ignored safely - a typo can never break the plugin.
Shulker boxes weigh what is inside them
A shulker box is not a magic weight-free bag. Its contents count at shulker-contents-factor
(default 0.5, i.e. half rate), so a box of netherite drags on the carrier without being as
punishing as hauling it loose.
weigh:
inventory: true
armor: true
offhand: true
ender-chest: false
shulker-contents: true
shulker-contents-factor: 0.5 # 0.0 = box is free, 1.0 = full weight
shulker-nesting: 1
Capacity
One number tunes the whole system, with optional per-permission grants (highest match wins):
capacity: 1000.0
capacity-overrides:
overencumbered.capacity.vip: 1500.0
HUD
An optional colour-coded action bar shows the live load - green, yellow then red:
Weight 742/1000kg (74%)
Commands
| Command |
Description |
Permission |
/overencumbered |
Show your own weight, capacity and tier |
overencumbered.use |
/overencumbered check [player] |
Show another player's weight |
overencumbered.admin |
/overencumbered top |
Heaviest players online |
overencumbered.use |
/overencumbered reload |
Reload configuration |
overencumbered.admin |
Aliases: /weight, /encumbrance, /oe.
overencumbered.bypass lets staff ignore all weight effects.
Why it changes gameplay
- PvP and exploration - no hauling a shulker-fed quarry into a fight; you choose what to drop
before you engage.
- Mounts and carts - mules, llamas and chest boats become the answer to bulk hauling.
- Storage bases - a place to deposit loot has real value again.
- Economy - pair it with a trade plugin and moving goods becomes a logistics decision.
Honest limits
- Defaults are deliberately playable, not punishing: a full inventory of average items sits
around the overburdened line. Builders moving thousands of blocks will want a higher
capacity
or a capacity-overrides permission for their builder rank.
- Effects use vanilla potion effects plus Paper's jump/sprint events, so a plugin that also manages
those can conflict - use
overencumbered.bypass for those players.
- Crushed damage goes through vanilla
damage(), so armour reduces it. A fully armoured player
resists the crush for longer. That is intentional.
评论 0
登录后参与评分
还没有评论,来抢沙发吧