HardPlus
HardPlus 为 Paper 服务器增加额外难度
简介
HardPlus 为 Paper 服务器提供可选的难度调整,适用于原版“困难”模式已不足够的情况。每个模块均由配置文件控制,并拥有独立的权限节点,因此服务器管理员可以仅对选定的玩家、群组或 WorldGuard 区域应用额外难度。
模块可以改变战斗、生存压力、怪物目标锁定等机制。默认情况下,模块在配置中处于启用状态,但除非玩家拥有匹配的 hardplus.* 或对应模块的权限,否则不会受到任何影响。
WorldGuard 是可选的。当安装了 WorldGuard 时,HardPlus 会为每个模块注册一个状态标志(state flag),使用将权限节点中的 . 替换为 - 后的名称。例如,hardplus.cold-damage 变为 hardplus-cold-damage。
有关详细的模块行为,请参阅 wiki。
本插件深受 Fundy 视频内容的启发。
查看 CHANGELOG.md 以获取发行说明。
功能
- 基于权限控制的难度模块。
- 可选的 WorldGuard 标志,支持基于区域的难度控制。
- 可配置的伤害输入与输出修正系数。
- 通过寒冷物品、失气、饥饿、火焰、熔岩和水冲击增加的额外生存压力。
- 战斗限制,如禁止暴击、取消横扫攻击,以及持有锋利工具移动时的伤害。
- 通过激进的目标锁定、蓄力苦力怕、苦力怕瞬间爆炸、下界箱子危险以及凋灵骷髅弓箭等方式增加怪物压力。
- 阻止被动生命恢复。
- 食用未煮熟的食物会导致中毒。
配置
module:
# 对携带具有 'FREEZE' 伤害属性的寒冷方块或物品的玩家造成伤害。
cold-damage:
enable: true
timer:
delay: 10
period: 10
# 当附近的苦力怕正瞄准受影响的玩家时,使其进入蓄力状态。
creeper-charge:
enable: true
radius: 16.0
timer:
delay: 10
period: 10
# 当苦力怕瞄准受影响的玩家时,强制其立即爆炸。
creeper-explode:
enable: true
radius: 2.5
timer:
delay: 10
period: 10
# 防止受影响的玩家通过近战攻击或箭矢造成暴击伤害。
damage-critical:
enable: true
# 降低受影响的玩家造成的伤害,包括他们射出的箭矢。
damage-give:
enable: true
modifier: 0.4
# 根据伤害来源,按比例放大受影响的玩家受到的伤害。
damage-take:
enable: true
modifier:
default: 2.5
player: 2.5
melee: 2.5
fall: 2.5
magic: 2.5
environment: 2.5
mob:
passive: 2.5
hostile:
default: 2.5
zombie: 2.5
skeleton: 2.5
enderman: 2.5
# 使下界生物在受影响的玩家于下界群系打开箱子或 barrel 时将其作为目标。
dangerous-nether-chest:
enable: true
radius: 32.0
# 加速受影响的玩家在剩余空气减少时的失气速度。
fast-air:
enable: true
modifier: 40
# 使受影响的玩家持续燃烧,直到有水等外部行为将其熄灭。
fire-forever:
enable: true
# 将高处的水落冲击视为受影响的玩家的坠落伤害。
hard-water:
enable: true
minimum-fall-distance: 8
modifier: 1
# 当受影响的玩家食物等级低于配置值时,施加移动减速、挖掘疲劳和虚弱效果。
hunger-debuff:
enable: true
food-level: 6
# 移除熔岩伤害后的命中无敌帧,使受影响的玩家在熔岩中几乎立即死亡。
lava-death:
enable: true
# 使附近的敌对生物将受影响的玩家作为目标,除非隐身且无盔甲允许绕过。
mob-target:
enable: true
range: 16.0
timer:
delay: 10
period: 10
# 阻止受影响的玩家获得新添加的抗性提升效果。
no-fire-resistance:
enable: true
# 取消受影响的玩家配置的被动治疗原因。
no-passive-health-regen:
enable: true
blocked-reason:
- SATIATED
# 取消受影响的玩家的横扫攻击,使得只有直接命中的目标会受到伤害。
no-sweep:
enable: true
# 在末地立即移除玩家放置的水,并快速排空下界的炼药锅。
no-water:
enable: true
timer:
delay: 10
period: 10
# 当受影响的玩家手持配置的锋利工具跳跃或疾跑时,对其造成伤害并停止其动作。
sharp-cut:
enable: true
condition:
jump: true
run: true
check:
sword: true
axe: true
shear: true
# 当受影响的玩家食用配置的未煮熟食物时,使其中毒。
uncooked-poison:
enable: true
duration: 30
# 为受影响的靶子配备带有弓箭的凋灵骷髅,然后为其他目标换回石剑。
wither-skeleton-bow:
enable: true
spawn-chance: 50.0
bow:
damage-level: 3
knockback-level: 2
arrow:
wither-level: 0
module.<name>.enable 控制 HardPlus 在启动时是否启用该模块。如果设置为 false,则该模块不会被加载,其对应的权限节点和 WorldGuard 标志也不会生效。
定时模块使用 timer.delay 和 timer.period(以刻为单位)。伤害值和半径值从上述特定模块的设置中读取。
技术说明
HardPlus 仅在玩家拥有对应权限,或处于允许该标志的 WorldGuard 区域时,才会应用模组效果。
权限:
hardplus.*:启用所有模块。
hardplus.cold-damage:启用寒冷伤害。
hardplus.creeper-charge:启用苦力怕充能。
hardplus.creeper-explode:启用苦力怕爆炸。
hardplus.damage-critical:启用暴击伤害。
hardplus.damage-give:启用造成伤害。
hardplus.damage-take:启用受到伤害。
hardplus.dangerous-nether-chest:启用危险下界宝箱。
hardplus.fast-air:启用快速空气。
hardplus.fire-forever:启用永恒火焰。
hardplus.hard-water:启用硬水。
hardplus.hunger-debuff:启用饥饿减益。
hardplus.lava-death:启用熔岩死亡。
hardplus.mob-target:启用生物目标。
hardplus.no-fire-resistance:禁用火焰抗性。
hardplus.no-passive-health-regen:禁用被动生命恢复。
hardplus.no-sweep:禁用横扫之刃。
hardplus.no-water:禁用水源。
hardplus.sharp-cut:启用锋利切割。
hardplus.uncooked-poison:启用未煮熟中毒。
hardplus.wither-skeleton-bow:启用凋灵骷髅弓。
WorldGuard 标志名称由权限派生:
hardplus.cold-damage -> hardplus-cold-damage
hardplus.hard-water -> hardplus-hard-water
hardplus.wither-skeleton-bow -> hardplus-wither-skeleton-bow
鸣谢
- Fundy:通过其视频提供了 HardPlus 的主题灵感。
- Dkbay#1337:提供了 HardPlus 徽标的设计创意。
- PaperMC Discord 社区成员:在 HardPlus 开发过程中提供了大量帮助。
HardPlus
HardPlus adds extra difficulty to Paper server
Introduction
HardPlus adds optional difficulty tweaks for Paper servers where vanilla Hard difficulty is no longer enough. Each module is controlled by configuration and by its own permission node, so server owners can apply extra difficulty only to selected players, groups, or WorldGuard regions.
Modules can change combat, survival pressure, mob targeting, etc. By default, modules are enabled in the configuration, but no player receives the effects unless they have the matching hardplus.* or module permission.
WorldGuard is optional. When WorldGuard is installed, HardPlus registers one state flag for each module, using the permission node with . replaced by -. For example, hardplus.cold-damage becomes hardplus-cold-damage.
Use the wiki for detailed module behavior.
This plugin is highly motivated by Fundy's video.
See CHANGELOG.md for release notes.
Features
- Permission-gated difficulty modules.
- Optional WorldGuard flags for region-based difficulty.
- Configurable incoming and outgoing damage modifiers.
- Extra survival pressure from cold items, air loss, hunger, fire, lava, and water impacts.
- Combat restrictions such as no critical hits, no sweep attacks, and sharp-tool movement damage.
- Mob pressure through aggressive targeting, charged creepers, instant creeper explosions, Nether chest danger, and Wither Skeleton bows.
- Passive health regeneration blocking.
- Uncooked food poisoning.
Configuration
module:
# Damages players carrying cold blocks or items with 'FREEZE' damage.
cold-damage:
enable: true
timer:
delay: 10
period: 10
# Charges creepers near affected players when those creepers are targeting affected players.
creeper-charge:
enable: true
radius: 16.0
timer:
delay: 10
period: 10
# Forces nearby creepers to explode immediately when they target affected players.
creeper-explode:
enable: true
radius: 2.5
timer:
delay: 10
period: 10
# Prevents affected players from dealing critical damage with melee attacks or arrows.
damage-critical:
enable: true
# Scales down damage dealt by affected players, including arrows shot by them.
damage-give:
enable: true
modifier: 0.4
# Multiplies incoming damage for affected players according to the damage source.
damage-take:
enable: true
modifier:
default: 2.5
player: 2.5
melee: 2.5
fall: 2.5
magic: 2.5
environment: 2.5
mob:
passive: 2.5
hostile:
default: 2.5
zombie: 2.5
skeleton: 2.5
enderman: 2.5
# Makes Nether mobs target affected players who open chests or barrels in Nether biomes.
dangerous-nether-chest:
enable: true
radius: 32.0
# Accelerates air loss for affected players while their remaining air is decreasing.
fast-air:
enable: true
modifier: 40
# Keeps affected players burning until an external action, such as water, extinguishes them.
fire-forever:
enable: true
# Treats high water impacts like fall damage for affected players.
hard-water:
enable: true
minimum-fall-distance: 8
modifier: 1
# Applies movement, mining, and weakness debuffs when affected players fall below the configured food level.
hunger-debuff:
enable: true
food-level: 6
# Removes post-hit invulnerability after lava damage so affected players die almost immediately in lava.
lava-death:
enable: true
# Makes nearby hostile mobs target affected players unless invisibility and no armor allow a bypass.
mob-target:
enable: true
range: 16.0
timer:
delay: 10
period: 10
# Blocks newly added Fire Resistance effects from affected players.
no-fire-resistance:
enable: true
# Cancels configured passive healing reasons for affected players.
no-passive-health-regen:
enable: true
blocked-reason:
- SATIATED
# Cancels sweep attacks made by affected players so only the direct target can be damaged.
no-sweep:
enable: true
# Removes player-placed water immediately in The End and drains Nether cauldrons quickly.
no-water:
enable: true
timer:
delay: 10
period: 10
# Damages and stops affected players who jump or sprint while holding configured sharp tools.
sharp-cut:
enable: true
condition:
jump: true
run: true
check:
sword: true
axe: true
shear: true
# Poisons affected players when they eat configured uncooked foods.
uncooked-poison:
enable: true
duration: 30
# Arms Wither Skeletons with bows for affected targets, then swaps back to stone swords for other targets.
wither-skeleton-bow:
enable: true
spawn-chance: 50.0
bow:
damage-level: 3
knockback-level: 2
arrow:
wither-level: 0
module.<name>.enable controls whether HardPlus enables that module at startup. If it is false, the module is not loaded, so its permission and WorldGuard flag have no effect.
Scheduled modules use timer.delay and timer.period in ticks. Damage and radius values are read from the module-specific settings shown above.
Technical Notes
HardPlus applies module effects only when the player has the matching permission or is inside a WorldGuard region where the matching flag is allowed.
Permissions:
hardplus.*: Enables all modules.
hardplus.cold-damage: Enables Cold Damage.
hardplus.creeper-charge: Enables Creeper Charge.
hardplus.creeper-explode: Enables Creeper Explode.
hardplus.damage-critical: Enables Damage Critical.
hardplus.damage-give: Enables Damage Give.
hardplus.damage-take: Enables Damage Take.
hardplus.dangerous-nether-chest: Enables Dangerous Nether Chest.
hardplus.fast-air: Enables Fast Air.
hardplus.fire-forever: Enables Fire Forever.
hardplus.hard-water: Enables Hard Water.
hardplus.hunger-debuff: Enables Hunger Debuff.
hardplus.lava-death: Enables Lava Death.
hardplus.mob-target: Enables Mob Target.
hardplus.no-fire-resistance: Enables No Fire Resistance.
hardplus.no-passive-health-regen: Enables No Passive Health Regen.
hardplus.no-sweep: Enables No Sweep.
hardplus.no-water: Enables No Water.
hardplus.sharp-cut: Enables Sharp Cut.
hardplus.uncooked-poison: Enables Uncooked Poison.
hardplus.wither-skeleton-bow: Enables Wither Skeleton Bow.
WorldGuard flag names are derived from permissions:
hardplus.cold-damage -> hardplus-cold-damage
hardplus.hard-water -> hardplus-hard-water
hardplus.wither-skeleton-bow -> hardplus-wither-skeleton-bow
Credits
- Fundy: Provided the motif of HardPlus with his video.
- Dkbay#1337: Provided the design idea of the HardPlus logo.
- People on PaperMC Discord: Helped a lot while developing HardPlus.
评论 0
登录后参与评分
还没有评论,来抢沙发吧