PartsVitality
一款灵感源自《逃离塔科夫》的 Minecraft 硬核伤害与治疗系统。
PartsVitality 通过引入基于部位的详细生命值系统,彻底重构了 Minecraft 的标准生命值机制。该插件要求玩家具备更多的战术思维、细致的伤势管理以及更高水平的战场意识。决定攻击哪个身体部位并保护哪些部位、时刻监控自身状态与周围环境,以及在极度紧张的游戏玩法中避免任何可能导致致命的疏忽,变得至关重要。
[!NOTE] > 无需资源包! 包括部位生命值显示在内的所有功能均使用原版机制实现。玩家无需下载任何额外内容即可获得完整体验。
主要特性
- 基于部位的生命值系统:生命值不再是一个单一的条状显示,而是分为四个身体部位单独管理:“头部”、“胸部”、“腿部”和“脚部”。
- 精确命中检测:利用光线追踪技术,插件能准确判定攻击击中了哪个身体部位。诸如爆头或瞄准腿部的战术变得至关重要!
- 真实的伤势惩罚:
- 减益效果:对特定部位造成伤害会触发相应的减益效果(例如:头部受伤导致恶心,腿部受伤导致缓慢)。
- 部位损毁:当某个部位的生命值降至 0 时,该部位将处于“损毁”状态,直到玩家重生前,其最大生命值将持续降低。
- 手动治疗系统:
- 无自然再生:禁用了基于饱和度的自动生命值恢复。所有治疗必须手动进行。
- 部位专属治疗:使用
config.yml 中定义的物品,在背包中左键点击对应受伤部位的护甲部件进行治疗。
- 重伤手术:“损毁”的部位无法使用常规物品治疗。需要特殊的“手术”道具进行急救,才能使该部位重新可被治疗。
- 增强护甲的重要性:
- 部位防护:护甲在保护其覆盖的特定身体部位方面发挥着关键作用。
- 真实磨损:可以配置护甲耐久度根据所受伤害显著下降,使其成为需要严格管理的关键资源。
- 高度可定制:插件的几乎所有方面——部位生命值、伤害乘数、治疗物品、减益效果等——均可在
config.yml 中自由调整。
- 多语言支持:向玩家显示的所有消息均支持翻译。默认支持英语 (
en) 和日语 (ja)。
安装方法
- 下载最新的
.jar 文件。
- 将下载的
PartsVitality-v1.0.0-beta.1.jar 文件放入服务器的 plugins/ 文件夹中。
- 重启或重载服务器。配置文件 (
config.yml) 和语言文件 (messages_en.yml, messages_ja.yml) 将自动生成在 plugins/PartsVitality/ 文件夹中。
兼容性
本插件基于 Paper API 1.20.1 开发,并在 Purpur 1.21.1 服务器上进行了测试。
预计它可在大多数现代 Paper/Purpur 版本上运行,但上述环境是本次发布的官方支持平台。
配置 (config.yml)
您可以编辑 config.yml 文件,以微调插件行为,使其符合您服务器的难度设置和游戏风格。
点击查看 config.yml 的详细解释
# 设置使用的语言 (例如, en, ja)
language: "en"
# 每个身体部位的最大生命值
parts:
head:
max-hp: 20.0
chest:
max-hp: 29.0
# ... 以此类推
# 伤害计算设置
damage:
# 将原版心形伤害转换为部位伤害的乘数。
# 较高的值会使部位更容易损毁,从而增加难度。
damage-multiplier: 5.0
# 命中检测的精度。较大的值会降低服务器负载,但会降低准确性。(推荐: 0.1 ~ 0.5)
ray-trace-step: 0.1
# 常规治疗设置
healing:
# 治疗所需时间 (秒)。
duration-seconds: 3
# ... 音效设置 ...
# 手术设置 (治疗损毁部位)
surgery:
# 手术所需时间 (秒)。
duration-seconds: 10
# 手术恢复的部位生命值量。将其设置为 1.0 将使该部位恢复可用状态,并允许进行常规治疗。
restored-hp: 1.0
# ... 音效设置 ...
# 每个损毁部位的最大生命值惩罚 (2.0 = 1 颗心)。
health-penalty-per-broken-part: 5.0 # 2.5 颗心
# 用于常规治疗的物品及其治疗量。
healing-items:
IRON_INGOT: 10.0
GOLD_INGOT: 15.0
# 用于手术的道具 (仅可用于 HP 为 0 的部位)。
surgery-items:
DIAMOND: true
# 当部位生命值低于特定阈值时应用的减益效果。
debuffs:
head:
- threshold: 0.5 # 50% 或更低
effect: CONFUSION
level: 0
# ... 以此类推
# 耐久度设置
durability:
# 如果为 true,护甲耐久度将根据受到的部位伤害量而减少。
use-custom-durability-damage: true
# 多少部位伤害等于 1 点耐久度伤害。
# 较小的值意味着护甲磨损更快。0.4 是针对皮革装甲平衡的值。
damage-per-durability-point: 0.4
玩法指南
-
查看部位生命值:在背包中,悬停在任意护甲部件上并按 Shift + 右键 切换到部位生命值显示模式。此时护甲的耐久条将显示该部位的生命值。再次执行此操作可切换回正常模式。
-
治疗部位:鼠标指针按住治疗物品(例如铁锭),在背包中左键点击想要治疗的部位对应的护甲部件。计时器将开始启动,完成后该部位的生命值将恢复。
-
执行手术:如果某个部位已损毁(生命值为 0),您必须首先使用手术道具(例如钻石)对其进行救治。这将轻微恢复该部位的生命值,使其可以再次使用常规治疗物品进行治疗。
许可证
本插件根据 MIT 许可证发布。
PartsVitality
A hardcore damage and healing system for Minecraft, inspired by "Escape from Tarkov."
PartsVitality completely overhauls Minecraft's standard health system by introducing a detailed part-based HP system. This plugin demands more tactical thinking, careful injury management, and a new level of awareness from players. Deciding which body part to target and which to protect, constantly monitoring your own condition and surroundings, and engaging in tense gameplay where a single moment of carelessness can be fatal becomes crucial.
[!NOTE] > No Resource Pack Required! All features, including the part HP display, are achieved using vanilla mechanics. Players don't need to download anything extra to get the full experience.
Key Features
- Part-Based HP System: Health is not a single bar but is managed individually across four body parts: "Head," "Chest," "Legs," and "Feet."
- Precise Hit Detection: Using Ray Tracing technology, the plugin accurately determines which body part an attack hits. Tactics like headshots or aiming for the legs become vital!
- Realistic Injury Penalties:
- Debuff Effects: Taking damage to a specific part triggers corresponding debuffs (e.g., Nausea from head damage, Slowness from leg damage).
- Broken Parts: When a part's HP drops to 0, it becomes "broken," reducing the player's maximum HP until they respawn.
- Manual Healing System:
- No Natural Regeneration: Automatic health regeneration from saturation is disabled. All healing must be done manually.
- Part-Specific Healing: Use items defined in
config.yml to heal by clicking the corresponding armor piece for the injured part in the inventory.
- Surgery for Critical Injuries: "Broken" parts cannot be healed with regular items. A special "surgery" item is required for first aid, making the part treatable again.
- Enhanced Importance of Armor:
- Part Protection: Armor plays a crucial role in protecting the specific body part it covers.
- Realistic Wear and Tear: Armor durability can be configured to decrease significantly based on the damage received, making it a critical resource to manage.
- Highly Customizable: Nearly every aspect of the plugin—part HP, damage multipliers, healing items, debuffs, and more—can be freely adjusted in
config.yml.
- Multi-Language Support: All messages displayed to players are translatable. It supports English (
en) and Japanese (ja) by default.
Installation
- Download the latest
.jar file.
- Place the downloaded
PartsVitality-v1.0.0-beta.1.jar file into your server's plugins/ folder.
- Restart or reload the server. The configuration file (
config.yml) and language files (messages_en.yml, messages_ja.yml) will be automatically generated in the plugins/PartsVitality/ folder.
Compatibility
This plugin was developed on the Paper API 1.20.1 and tested on a Purpur 1.21.1 server.
It is expected to work on most modern Paper/Purpur versions, but these are the officially supported environments for this release.
Configuration (config.yml)
You can edit the config.yml file to fine-tune the plugin's behavior to match your server's difficulty and playstyle.
Click to see a detailed explanation of config.yml
# Set the language to use (e.g., en, ja)
language: "en"
# Max HP for each body part
parts:
head:
max-hp: 20.0
chest:
max-hp: 29.0
# ... and so on
# Damage calculation settings
damage:
# Multiplier to convert vanilla heart damage to part damage.
# A higher value makes parts break more easily, increasing difficulty.
damage-multiplier: 5.0
# Precision of the hit detection. Larger values reduce server load but decrease accuracy. (Recommended: 0.1 ~ 0.5)
ray-trace-step: 0.1
# Settings for regular healing
healing:
# Time required for healing (in seconds).
duration-seconds: 3
# ... sound settings ...
# Settings for surgery (healing broken parts)
surgery:
# Time required for surgery (in seconds).
duration-seconds: 10
# Amount of part HP restored by surgery. Setting this to 1.0 will make the part usable again and allow normal healing.
restored-hp: 1.0
# ... sound settings ...
# Max health penalty for each broken part (2.0 = 1 heart).
health-penalty-per-broken-part: 5.0 # 2.5 hearts
# Items used for regular healing and their heal amount.
healing-items:
IRON_INGOT: 10.0
GOLD_INGOT: 15.0
# Items used for surgery (only usable on parts with 0 HP).
surgery-items:
DIAMOND: true
# Debuffs applied when a part's HP falls below a certain threshold.
debuffs:
head:
- threshold: 0.5 # 50% or less
effect: CONFUSION
level: 0
# ... and so on
# Durability settings
durability:
# If true, armor durability decreases based on the amount of part damage received.
use-custom-durability-damage: true
# How much part damage equals 1 point of durability damage.
# A smaller value means armor wears out faster. 0.4 is balanced around leather armor.
damage-per-durability-point: 0.4
How to Play
-
Check Part HP: In your inventory, hover over any armor piece and Shift + Right-Click to switch to Part HP display mode. The armor's durability bar will now show the HP of that part. Repeat the action to switch back.
-
Heal a Part: Hold a healing item (e.g., Iron Ingot) on your cursor and Left-Click the armor piece of the part you want to heal in your inventory. A timer will start, and upon completion, the part's HP will be restored.
-
Perform Surgery: If a part is broken (HP is 0), you must first treat it with a surgery item (e.g., Diamond). This will slightly restore the part's HP, allowing it to be healed with regular healing items again.
License
This plugin is released under the MIT License.
评论 0
登录后参与评分
还没有评论,来抢沙发吧