关于重锤的一切 ETDWM
创作者:neovimMan
平台:Minecraft Java Edition 1.21.11 Paper
最新版本:1.0.0
一个 Paper 服务器插件,用于修改原版重锤的合成与战斗行为。这不是客户端模组:仅安装在服务器上即可,原版客户端可以正常连接。
行为 1:重锤数量限制器
作用: 限制服务器上允许合成的重锤总数
将全服可合成的重锤数量限制在配置的最大值内
- 只有通过合成台制作的合重锤计入限制。从创造模式菜单、命令、战利品或其他插件获得的合重锤不会被追踪。
- 每个合成的合重锤都会在其持久数据容器(PersistentDataContainer)中分配一个 UUID,并记录在
data.yml 中,因此计数会在重启后保留。注册表更改会立即保存。
- 当合重锤破碎、消失、燃烧、爆炸或以其他方式离开世界时,其占用的槽位会被释放。
- 限制是针对每次合成执行的。仅当请求的批量会导致剩余槽位不足时,才会取消 Shift+点击合成。
- 默认限制为
1 个合重锤,且每次合成都会向服务器广播消息。合成最后一个合重锤的玩家会收到单独的通知。
- 如果合重锤的 UUID 被外部工具或命令移除,该物品将不再受追踪,其注册表条目也不会自动释放。当持有受追踪合重锤的容器或物品展示框被破坏且未掉落物品时,也会发生类似情况。使用
/etdwm info 可以比较活跃计数与实际存在的合重锤数量。
行为 2:玩家伤害限制器
作用: 限制合重锤对另一名玩家造成的伤害
将对玩家造成的合重锤伤害限制在配置的值内
- 接受范围从
1.0 点伤害(半颗心)到 100.0 点伤害(50 颗心)。
- 默认禁用。仅限制攻击者主手持合重锤进行的 PVP 命中;对生物的伤害、副手攻击以及使用其他武器的攻击不受影响。
行为 3:重锤冷却
作用: 在对玩家使用合重锤命中之间添加冷却时间
取消在配置冷却时间内命中的合重锤攻击,并在快捷栏显示剩余时间
- 接受以刻(ticks,
20)或分钟和秒(1:00)为单位的时间长度。数值会被限制在有效范围内。
- 默认启用,冷却时间为
1:00。仅主手持有的合重锤会启动或遵守冷却时间。
- 冷却时间也会显示在快捷栏中的合重锤上,与末影珍珠和风之电荷的显示方式相同。
行为 4:附魔等级限制器
作用: 限制合重锤上允许的每种附魔的最高等级
将任何超过配置等级的合重锤附魔等级降低至该等级
- 将附魔的限制设置为
0 可完全移除该附魔。密度(Density)、破甲(Breach)和阵风(Wind Burst)遵循相同规则,且 wind_burst 不能超过等级 3。
- 默认禁用。附魔限制在附魔、使用铁砧、拾取、丢弃、交换手持物品、交互、攻击、在背包或漏斗中移动物品以及定期背包扫描时应用。
行为 5:附魔禁用器
作用: 完全禁用合重锤上的附魔
取消合重锤的附魔,阻止铁砧的附魔结果,并移除合重锤上现有的附魔
- 这比行为 4 更严格:不允许任何合重锤附魔,无论等级如何。
- 当玩家加入游戏、拾取或丢弃物品、交换手持物品、交互、攻击或在背包中点击/拖拽时,会从玩家背包、末影箱、打开的容器及物品实体中的合重锤上移除附魔。定期扫描会捕获遗漏的内容。
- 默认禁用。如果同时启用了行为 4 和行为 5,行为 5 优先,因为所有附魔都会被移除。
config.yml
# Everything To Do With Maces
# Reload: /etdwm reload
# Inspect loaded values: /etdwm info
behavior-1-mace-limiter:
enabled: true
# Server-wide limit on all maces, including existing maces and maces obtained outside crafting
# (minimum 1). New crafts are blocked while the active count is at or above this limit.
max-maces: 3
# Placeholders: {player}, {count}, {remaining}
craft-announcement: "&6{player} &7has crafted mace &6{count}&7, only &6{remaining} &7remain!"
# Placeholder: {player}
final-craft-announcement: "&6{player} &7has crafted the final mace!"
behavior-2-player-damage-limiter:
enabled: false
# Caps damage dealt to players by a mace held in the attacker's main hand.
# 1.0 = 0.5 in-game hearts. 12.0 = 6 hearts.
# Allowed range: 1.0 to 100.0
max-damage: 12.0
behavior-3-mace-cooldown:
enabled: true
# Applies only while a mace is in the main hand.
# mm:ss ("1:00") or ticks ("1200")
cooldown: "1:00"
behavior-4-enchant-limiter:
enabled: false
# Enchantment key to maximum level. A value of 0 removes the enchantment.
# Wind Burst caps at level 3. Applies to every mace, tracked or not.
enchant-limits:
density: 4
breach: 3
wind_burst: 1
behavior-5-enchant-disabler:
# Strips ALL enchantments from maces, including enchanted maces that already
# exist and maces found in inventories, ender chests, and open containers.
enabled: false
Everything To Do With Maces ETDWM
Creator: neovimMan
Platform: Minecraft Java Edition 1.21.11 Paper
Latest Version: 1.0.0
A Paper server plugin that modifies vanilla mace crafting and combat behavior. This is not a
client mod: install it on the server only, and vanilla clients can connect normally.
Behavior 1: Mace Limiter
What it does: Limits the total number of crafted maces allowed on the server
Caps crafted maces server-wide at a configured maximum
- Only maces made through the crafting table count toward the limit. Maces obtained from the
creative menu, commands, loot, or another plugin are not tracked.
- Each crafted mace is assigned a UUID in its persistent data container and recorded in
data.yml, so the count survives restarts. Registry changes are saved immediately.
- A tracked mace frees its slot when it breaks, despawns, burns, explodes, or otherwise leaves
the world.
- The limit is enforced per craft. Shift-crafting is cancelled only when the requested batch
would exceed the number of remaining slots.
- By default the limit is
1 mace, and every craft is announced to the server. The player who
crafts the final mace receives a separate announcement.
- If a mace's UUID is removed by an external tool or command, the item becomes untracked and its
registry entry is not freed automatically. The same can happen when a container or item frame
holding a tracked mace is destroyed without dropping the item. Use
/etdwm info to compare the
active count with the number of maces that actually exist.
Behavior 2: Player Damage Limiter
What it does: Caps the damage a mace can deal to another player
Limits mace damage against players to a configured value
- Accepts values from
1.0 damage (half a heart) to 100.0 damage (50 hearts).
- Disabled by default. Only PVP hits with a mace in the attacker's main hand are capped;
damage to mobs, off-hand hits, and hits with other weapons are untouched.
Behavior 3: Mace Cooldown
What it does: Adds a cooldown between mace hits against players
Cancels mace hits that land inside the configured cooldown and shows the remaining time in the hotbar
- Accepts a duration in ticks (
20) or minutes and seconds (1:00). Values are clamped to the
valid range.
- Enabled by default with a
1:00 cooldown. Only a mace in the main hand starts or obeys the
cooldown.
- The cooldown also appears on the mace in the hotbar, matching the display used by ender pearls
and wind charges.
Behavior 4: Enchant Limiter
What it does: Caps the level of each enchantment allowed on a mace
Reduces any mace enchantment above its configured level to that level
- Set an enchantment's limit to
0 to remove it entirely. Density, Breach, and Wind Burst follow
the same rule, and wind_burst cannot exceed level 3.
- Disabled by default. Limits are applied when enchanting, using an anvil, picking up, dropping,
swapping hands, interacting, attacking, moving items through inventories or hoppers, and during
a periodic inventory sweep.
Behavior 5: Enchant Disabler
What it does: Completely disables enchantments on maces
Cancels enchanting maces, blocks enchanted anvil results, and strips existing enchantments from maces
- This is stricter than Behavior 4: no mace enchantment is allowed at all, regardless of level.
- Enchantments are stripped from maces in player inventories, ender chests, open containers, and
item entities when players join, pick items up or drop them, swap hands, interact, attack, or
click or drag in an inventory. A periodic sweep catches anything that was missed.
- Disabled by default. If both Behavior 4 and Behavior 5 are enabled, Behavior 5 takes precedence
because every enchantment is removed.
config.yml
# Everything To Do With Maces
# Reload: /etdwm reload
# Inspect loaded values: /etdwm info
behavior-1-mace-limiter:
enabled: true
# Server-wide limit on all maces, including existing maces and maces obtained outside crafting
# (minimum 1). New crafts are blocked while the active count is at or above this limit.
max-maces: 3
# Placeholders: {player}, {count}, {remaining}
craft-announcement: "&6{player} &7has crafted mace &6{count}&7, only &6{remaining} &7remain!"
# Placeholder: {player}
final-craft-announcement: "&6{player} &7has crafted the final mace!"
behavior-2-player-damage-limiter:
enabled: false
# Caps damage dealt to players by a mace held in the attacker's main hand.
# 1.0 = 0.5 in-game hearts. 12.0 = 6 hearts.
# Allowed range: 1.0 to 100.0
max-damage: 12.0
behavior-3-mace-cooldown:
enabled: true
# Applies only while a mace is in the main hand.
# mm:ss ("1:00") or ticks ("1200")
cooldown: "1:00"
behavior-4-enchant-limiter:
enabled: false
# Enchantment key to maximum level. A value of 0 removes the enchantment.
# Wind Burst caps at level 3. Applies to every mace, tracked or not.
enchant-limits:
density: 4
breach: 3
wind_burst: 1
behavior-5-enchant-disabler:
# Strips ALL enchantments from maces, including enchanted maces that already
# exist and maces found in inventories, ender chests, and open containers.
enabled: false
评论 0
登录后参与评分
还没有评论,来抢沙发吧