Warden
一款服务端 Fabric 模组,让管理员通过游戏内命令对爆炸、武器、物品、附魔和状态效果进行精细控制,无需手动编辑配置文件。
功能
爆炸限制
按来源类型限制或完全禁用爆炸。支持:
tnt(TNT)、tnt_minecart(TNT矿车)
creeper(苦力怕)
bed(床)、respawn_anchor(重生锚)
end_crystal(末影水晶)
ghast(恶魂)
wither(凋灵)、wither_skull(凋灵骷髅头颅)
每种来源可独立设置最大威力,或完全禁用。
/warden explosion set tnt maxPower 1.0
/warden explosion disable creeper
武器限制
按武器或武器组限制战斗属性。支持近战和远程武器。
近战属性(剑、斧、战锤、三叉戟、长矛):
damage — 最大攻击伤害
attackSpeed — 最大攻击速度
reach — 最大近战距离
远程属性(弓、弩、三叉戟):
projectileDamage — 命中时的最大投射物伤害
rechargeTime — 两次使用之间的最小间隔刻数
攻击冷却(所有近战):
disableCooldown <ticks> — 每次攻击后强制施加物品冷却时间,利用 Minecraft 内置的物品冷却系统有效限制攻击频率(与攻击速度分开计算)
目标可以是单个物品(如 minecraft:netherite_sword)或组别(如 sword、axe、all)。
/warden weapon set sword damage 6.0
/warden weapon set bow projectileDamage 8.0
/warden weapon set all disableCooldown 10
物品限制
限制玩家可持有的特定物品数量。超出限制的物品将根据配置选择掉落或删除。
maxCount <n> — 玩家可携带的该类型物品最大数量(定期检查)
deleteOverflowItem — 如果为 true,超出限制的物品将被删除而非掉落
checkIntervalTicks — 检查库存的频率(默认:每 20 刻 / 1 秒)
dropPickupDelay — 掉落的溢出物品在重新被拾取前的延迟刻数
/warden item set minecraft:diamond maxCount 64
/warden config deleteOverflowItem true
附魔限制
全局限制任何附魔的最大等级,并可选针对特定物品类型进行覆盖。
- 全局上限:适用于拥有该附魔的所有物品
- 物品覆盖:针对特定物品类型的不同上限(例如:全局将锋利限制为 3 级,但允许剑上使用 5 级)
/warden enchant set minecraft:sharpness maxLevel 3
/warden enchant set minecraft:sharpness maxLevel 5 for sword
/warden enchant disable minecraft:mending
状态效果限制
限制施加给玩家的状态效果的最大等级和/或最大持续时间。
maxLevel — 限制效果放大器级别
maxDuration — 限制效果持续时间(以刻为单位)
/warden effect set minecraft:speed maxLevel 1
/warden effect set minecraft:strength maxDuration 200
/warden effect disable minecraft:invisibility
豁免系统
位于豁免列表中的玩家(或处于创造模式)完全不受所有限制影响。
exemptCreative — 切换自动豁免创造模式玩家(默认:true)
- 指定玩家的豁免设置跨会话持久保存
/warden exempt add Steve
/warden exempt remove Steve
/warden config exemptCreative false
动作栏 HUD
当限制正在影响玩家时,他们会收到实时的动作栏通知。每个类别(物品、武器、附魔、效果)均可由管理员全局切换,且单个玩家可以自行选择退出特定类别的通知。
/warden actionbar item false (玩家选择退出物品通知)
/warden config itemActionBarEnabled false (管理员全局禁用)
全局配置开关
每个限制类别都可以独立启用或禁用,而无需移除已配置的规则。
/warden config weaponLimitsEnabled false
/warden config explosionLimitsEnabled true
实用命令
| 命令 |
描述 |
/warden status |
查看所有活跃限制的概览 |
/warden reload |
从磁盘重载配置 |
/warden reset |
将所有限制重置为默认值 |
/warden reset <category> |
重置单个类别(explosion、item、weapon、enchant、effect、actionbar、exempt) |
/warden help |
游戏内命令参考 |
配置
配置会自动保存到服务器的 config/warden.json 文件中。所有通过命令进行的更改都会立即写入磁盘——无需重启。配置也会实时同步到连接的客户端。
要求
- Minecraft 1.21.11
- Fabric Loader ≥ 0.16.0
- Fabric API
权限
所有 /warden 管理命令需要操作员等级 2(gamemaster)。/warden actionbar 命令对所有玩家开放,用于管理自己的 HUD 偏好设置。
Warden
A server-side Fabric mod that gives admins granular control over explosions, weapons, items, enchantments, and status effects, all managed in-game via commands, with no need to manually edit config
files.
Features
Explosion Limits
Cap or completely disable explosions by source type. Supports:
tnt, tnt_minecart
creeper
bed, respawn_anchor
end_crystal
ghast
wither, wither_skull
Each source can have its max power set independently, or be fully disabled.
/warden explosion set tnt maxPower 1.0
/warden explosion disable creeper
Weapon Limits
Cap combat stats per weapon or weapon group. Supports both melee and ranged weapons.
Melee stats (sword, axe, mace, trident, spear):
damage — max attack damage
attackSpeed — max attack speed
reach — max melee reach
Ranged stats (bow, crossbow, trident):
projectileDamage — max projectile damage on hit
rechargeTime — minimum ticks required between uses
Attack cooldown (all melee):
disableCooldown <ticks> — forces an item cooldown after every attack, effectively limiting attack rate using Minecraft's built-in item cooldown system (separate from attack speed)
Targets can be individual items (minecraft:netherite_sword) or groups (sword, axe, all).
/warden weapon set sword damage 6.0
/warden weapon set bow projectileDamage 8.0
/warden weapon set all disableCooldown 10
Item Limits
Cap how many of a given item a player can hold. Overflow items are either dropped or deleted depending on your config.
maxCount <n> — max items of this type a player can carry (checked periodically)
deleteOverflowItem — if true, items exceeding the limit are deleted instead of dropped
checkIntervalTicks — how often the inventory is checked (default: every 20 ticks / 1 second)
dropPickupDelay — ticks before a dropped overflow item can be picked up again
/warden item set minecraft:diamond maxCount 64
/warden config deleteOverflowItem true
Enchantment Limits
Cap the maximum level of any enchantment globally, with optional per-item-type overrides.
- Global cap: applies to all items with that enchantment
- Item override: a different cap for a specific item type (e.g. cap Sharpness to 3 globally but allow 5 on swords)
/warden enchant set minecraft:sharpness maxLevel 3
/warden enchant set minecraft:sharpness maxLevel 5 for sword
/warden enchant disable minecraft:mending
Status Effect Limits
Cap the max level and/or max duration of any status effect applied to players.
maxLevel — clamp effect amplifier
maxDuration — clamp effect duration in ticks
/warden effect set minecraft:speed maxLevel 1
/warden effect set minecraft:strength maxDuration 200
/warden effect disable minecraft:invisibility
Exempt System
Players on the exempt list (or in Creative mode) bypass all limits entirely.
exemptCreative — toggle automatic exemption for Creative mode players (default: true)
- Named player exemptions persist across sessions
/warden exempt add Steve
/warden exempt remove Steve
/warden config exemptCreative false
Action Bar HUD
Players receive real-time action bar notices when a limit is actively affecting them. Each category (item, weapon, enchantment, effect) can be toggled globally by admins, and individual players can
opt out of specific categories themselves.
/warden actionbar item false (player opts out of item notices)
/warden config itemActionBarEnabled false (admin disables globally)
Global Config Toggles
Each limit category can be enabled or disabled independently without removing your configured rules.
/warden config weaponLimitsEnabled false
/warden config explosionLimitsEnabled true
Utility Commands
| Command |
Description |
/warden status |
Overview of all active limits |
/warden reload |
Reload config from disk |
/warden reset |
Reset all limits to defaults |
/warden reset <category> |
Reset a single category (explosion, item, weapon, enchant, effect, actionbar, exempt) |
/warden help |
In-game command reference |
Configuration
Config is saved automatically to config/warden.json on your server. All changes made via commands are written to disk instantly — no restart needed. The config also syncs to connected clients in
real time.
Requirements
- Minecraft 1.21.11
- Fabric Loader ≥ 0.16.0
- Fabric API
Permissions
All /warden admin commands require operator level 2 (gamemaster). The /warden actionbar command is available to all players to manage their own HUD preferences.
评论 0
登录后参与评分
还没有评论,来抢沙发吧