Vantage TaCZ Compat
一款功能全面的模组,为 TaCZ 枪械模组添加了肢体受伤、消耗型医疗系统、负重系统、耐力机制以及 AI 敌人——专为 Vantage: Zero 整合包打造。
核心特性
负重系统
- 物品具有重量(KG);主背包和副手栏的物品重量计入总负重
- 三级状态:正常 → 负重(减速) → 超载(严重减速 + 跳跃高度降低)
- 可配置阈值(默认:重负荷 80 KG,超载 150 KG)
Weight Limit Boost 效果可临时提高这两个阈值
- 独立的护甲减速:穿戴的护甲会根据其重量使玩家减速(默认为重量百分比的 80%),与负重系统叠加生效
- 不同材质的护甲拥有不同的重量:皮革套装 10 KG,铁套装 26 KG,下界合金套装 42 KG
- 物品工具提示会显示重量;护甲还会额外显示红色的“-X% 移动速度”
肢体受伤系统
- TaCZ 枪击伤害根据命中部位判定——不使用 TaCZ 的
isHeadShot() 逻辑
- 7 个身体部位:头部、腹部、左臂、右臂、左腿、右腿
- 4 种伤口效果:
- 重伤(头部,20% 概率):最大生命值 -10%
- 腹部伤(腹部,20% 概率):最大生命值 -10%
- 流血(手臂,30% 概率):每约 6 秒受到 1 点伤害,最多叠加 4 层,当生命值 ≤1 时停止
- 骨折(腿部,20% 概率):每条腿减速 15%,双腿均骨折则减速 30%
- 所有伤口将持续存在,直到接受治疗或死亡
- 坠落骨折:从 ≥5 格高度落下触发,基础概率 50%,每多 1 格增加 10%
止痛药系统
- 止痛药可抑制流血伤害和骨折减速(HUD 图标仍然可见)
- 即使被抑制,骨折效果仍可叠加
- 药效过期后:如果存在重伤或腹部伤,会出现恶心效果并播放尖叫音效
消耗型医疗系统
- 轮盘 UI(B 键):类似 ToolBelt 的径向选择器,自动聚合背包中的消耗品
- 第一人称 3D 动画:模型跟随视角,包含屏幕震动、玩家手臂动作和环境光照
- 使用中 HUD:进度条 + 物品名称 + 剩余秒数 + 取消提示
- 两种耐久模式:
proportional(按比例):根据缺失的生命值比例消耗耐久——用于治疗类物品
fixed(固定):每次使用消耗 1 点耐久——用于清除伤口的物品
- 使用前检查:如果生命值已满或没有匹配的伤口,则阻止使用,并给出反馈消息
- 使用限制:使用过程中禁止切换快捷栏/打开背包/射击/丢弃/交换物品
- 取消:按 R 键取消(HUD 显示按键提示,支持鼠标按钮图标)
- 7 种默认消耗品:绷带、止痛药、兴奋剂、注射器、医疗包、止血带、M2 IM 注射器
新护甲机制(TaCZ 子弹伤害)
- 子弹伤害根据
armor_ignore(护甲穿透)分为两部分:穿透部分直接伤害生命值,非穿透部分消耗对应部位的护甲耐久
- 护甲耐久耗尽但不会销毁——失去防护作用,但仍保留以供修复
- 消耗品可以修复护甲,但会永久降低其最大耐久上限
耐力系统
- 冲刺消耗耐力,静止时恢复(带有短暂延迟)
- 耐力耗尽进入疲劳状态——在恢复前禁止冲刺
- 跳跃消耗 10 点耐力,滑铲消耗 20 点
Stamina Restore 效果可瞬间回满耐力
- 原版饥饿感已禁用(需要 HungerStrike)
- 瞄准会取消冲刺
- 滑铲(V 键,默认禁用):冲刺时进行滑铲,持续 30 tick 的速度衰减,支持滑铲跳加速
玩家生命值
- 基础生命值 = 20 + 30 = 50 HP(25 颗心),可配置
- 首次加入游戏和重生时完全恢复
HUD 覆盖层
- 生命值:头像 + 生命条 + 百分比 + 4 个护甲耐久图标 + 氧气条
- 耐力:位于快捷栏上方的条形图,满时隐藏,低于 20 时变红
- 状态效果:9×9 的效果方块,带有平滑的进度填充
- 消耗品使用:准星下方的进度条 + 信息
AI 敌人
- 士兵:3 阶段 AI(巡逻 → 警戒 → 战斗),随机装备冲锋枪,小队共享仇恨
- 狙击手:无法移动,随机装备狙击步枪,射击间隔 3~6 秒
- 可配置的 AI 参数和枪械黑名单
- 创造模式标签页中的生成蛋
快捷键
| 按键 |
默认值 |
功能 |
| 消耗品轮盘 |
B |
打开消耗品选择轮盘 |
| 取消使用 |
R |
取消正在使用的消耗品 |
| 滑铲 |
V |
冲刺时滑铲(如果启用) |
依赖项
| 模组 |
必需 |
备注 |
| Forge |
是 |
≥46 |
| Minecraft |
是 |
1.20.1 |
| TaCZ |
是 |
≥1.1.4 |
| HungerStrike |
是 |
禁用原版饥饿感 |
| PlayerAnimator |
否 |
滑铲动画(可选) |
| ParCool |
否 |
兴奋剂效果(可选) |
本地化
使用指南
安装
- 安装 Minecraft 1.20.1 + Forge 47.x
- 将以下模组放入
mods/ 文件夹:
- TaCZ (≥1.1.4)
- HungerStrike (≥8.0.0)
- Vantage TaCZ Compat(本模组)
- 启动游戏
快速入门
1. 受伤与治疗
- 被 TaCZ 武器击中后,根据命中部位可能会受到不同类型的伤口(头部重伤、腹部伤、手臂流血、腿部骨折)
- 按 B 打开消耗品轮盘并选择适当的物品:
- 流血 → 使用 止血带 或 绷带
- 重伤 / 腹部伤 / 骨折 → 使用 绷带
- 生命值低 → 使用 医疗包 或 注射器
- 需要持续作战 → 使用 止痛药(抑制效果)或 兴奋剂(加速效果)
- 你也可以使用 止痛药 暂时抑制流血和骨折效果(注意药效过期的副作用)
2. 负重管理
- 打开背包并将鼠标悬停在物品上以查看其重量(KG)
- 总重量超过 80 KG → 负重(轻微减速)
- 总重量超过 150 KG → 超载(严重减速 + 跳跃高度降低)
- 护甲重量不计入背包总重量,但护甲会独立导致减速(护甲越重,减速越多)
Weight Limit Boost 效果可临时提高阈值
3. 耐力管理
- 疾跑会消耗耐力;当耐力耗尽时,在恢复至 20 以上之前无法进行疾跑
- 耐力条位于快捷栏上方;低于 20 时变为红色
- 跳跃消耗 10 点耐力,滑行消耗 20 点
4. 消耗品使用流程
- 按 B 键打开轮盘
- 将鼠标移至目标消耗品所在的扇区(中心显示物品名称)
- 松开 B 键以确认使用
- 在使用期间:
- 屏幕底部会出现进度条和剩余时间
- 玩家获得缓慢 II 效果
- 禁用快捷栏切换、物品栏、射击和丢弃物品操作
- 按 R 键取消(不消耗任何效果)
- 使用完成后,自动播放拔枪音效
配置
所有设置均位于 config/vantagetaczcompat-common.toml。修改后需重启游戏生效。主要部分如下:
负重 (Weight)
[Weight]
weightMax = 200.0 # 最大负重上限
heavyThreshold = 80.0 # 沉重阈值
overloadThreshold = 150.0 # 超载阈值
armorSpeedPenaltyPerKg = 0.8 # 盔甲减速系数(0.8 = 重量的 80%)
overloadJumpReduction = 0.5 # 超载跳跃高度减少比例(0.5 = 高度减少 50%)
weightLimitBoostAmount = 40.0 # 负重上限提升效果数值
# 物品重量覆盖值,格式为 mod:item,weight
itemWeights = ["minecraft:iron_block,8.0", "minecraft:netherite_chestplate,16.0", ...]
伤口 (Wounds)
[Damage Multipliers]
headDamageMultiplier = 1.0 # 头部伤害倍率
abdomenDamageMultiplier = 1.0 # 腹部伤害倍率
limbDamageMultiplier = 0.3 # 肢体伤害倍率
[Bullet Wound Chances]
headWoundChance = 0.20 # 头部 → 重伤几率
abdomenWoundChance = 0.20 # 腹部 → 腹部受伤几率
bleedingChance = 0.30 # 手臂 → 流血几率
fractureChance = 0.20 # 腿部 → 骨折几率
[Fall Fracture]
fallFractureChance = 0.50 # 基础骨折几率
fallFractureMinDistance = 5.0 # 最小跌落距离
fallFractureChancePerBlock = 0.10 # 每额外一格高度的骨折几率
耐力 (Stamina)
[Stamina Values]
staminaMax = 100.0 # 最大耐力值
staminaSprintDrain = 0.2 # 每刻疾跑消耗的耐力
staminaRegen = 0.3 # 每刻静止恢复的耐力
staminaRegenDelay = 20 # 消耗后恢复耐力的延迟时间(刻)
staminaJumpCost = 10.0 # 跳跃消耗
staminaSlideCost = 20.0 # 滑行消耗
消耗品使用 (Consumable Use)
[Consumable Use]
healIntervalTicks = 5 # 治疗循环间隔(刻)
slowdownAmplifier = 1 # 减速放大器(1 = 缓慢 II)
slowdownExtraDuration = 20 # 动画结束后的额外减速时间(刻)
新盔甲机制 (New Armor Mechanic)
[New Armor Mechanic]
enableNewArmorMechanic = true # 开关
armorDurabilityMultiplier = 4.0 # 非穿透伤害对盔甲耐久度的影响系数
自定义消耗品
本模组通过 TaCZ 扩展包机制加载消耗品。默认扩展包位于 .minecraft/tacz/vtc_default_consumable/。
添加新消耗品
-
在扩展包目录中创建文件:
vtc_default_consumable/
└── assets/vantagetaczcompat/
├── consumable/my_item.json ← 定义文件
├── geo_models/consumable/my_item_geo.json ← 3D 模型
├── animations/consumable/my_item.animation.json ← 使用动画
└── textures/consumable/
├── model/my_item.png ← 3D 模型纹理
└── slot/my_item.png ← 2D 物品栏图标
-
定义文件示例:
{
"name": "item.vantagetaczcompat.my_item",
"model": "vantagetaczcompat:consumable/my_item_geo",
"texture": "vantagetaczcompat:consumable/model/my_item",
"slot_texture": "vantagetaczcompat:consumable/slot/my_item",
"animation": "vantagetaczcompat:consumable/my_item_use",
"animation_duration": 3.0,
"heal_start_delay": 0.5,
"durability": 4,
"use_ticks": 60,
"durability_mode": "fixed",
"armor_repair_type": null,
"armor_max_durability_reduction_percent": 0.0,
"effects_to_apply": [
{ "id": "vantagetaczcompat:clear_wound", "duration": 1, "amplifier": 0 }
],
"effects_to_remove": []
}
-
在语言文件中添加翻译:
{ "item.vantagetaczcompat.my_item": "My Item" }
-
按 F3+T 热重载资源 — 新的消耗品将立即出现在创造模式标签页中
有关完整字段参考,请参见项目中的 docs/consumable_json_format.md。
自定义物品重量
在配置的 itemWeights 中添加条目:
itemWeights = [
"minecraft:iron_block,8.0",
"mymod:my_item,15.5"
]
格式为 mod:item,weight。未列出的物品将使用默认公式(基于堆叠比率)。
获取消耗品
打开创造模式物品栏并找到 Vantage TaCZ Compat 标签页。所有已加载的消耗品都会动态显示。它们共享一个注册的 Item,通过 ConsumableId NBT 标签进行区分。
常见问题 (FAQ)
问:消耗品没有出现?
答:确保 .minecraft/tacz/vtc_default_consumable/ 存在且包含 consumable/ 目录。模组会在首次启动时自动导出该目录。如果缺失,请删除该目录并重启游戏以重新生成。
问:配置更改未生效?
答:配置更改需要重启游戏。请注意,在 gradle.properties 中更改默认值不会自动更新现有的 toml 文件——要么删除 config/vantagetaczcompat-common.toml 以重新生成它,要么直接编辑该 toml 文件。
问:看不到第一人称动画?
答:确保你的主手为空或持有消耗品。消耗品模型会自动隐藏枪械并在使用时显示。
问:重新绑定按键后,提示未更新?
答:HUD 会动态读取当前的按键绑定并显示相应的提示,包括鼠标按钮图标。更改会立即生效。
问:为什么耐久度为 0 时护甲不会消失?
答:这是新护甲机制的设计如此。耐久度为 0 的护甲会失去其保护效果,但作为物品保留下来,以便未来使用修复消耗品进行修复。
问:如何禁用滑动?
答:在配置文件中设置 enableSlide = false(默认已禁用)。
Vantage TaCZ Compat
A comprehensive mod adding body-part injuries, a consumable medical system, a weight system, stamina mechanics, and AI enemies for the TaCZ gun mod — built for the Vantage: Zero modpack.
Core Features
Weight System
- Inventory items have weight (KG); main inventory and offhand count toward total weight
- Three-tier status: Normal → Encumbrance (slowdown) → Overloaded (severe slowdown + jump reduction)
- Configurable thresholds (default: heavy 80 KG, overload 150 KG)
Weight Limit Boost effect temporarily raises both thresholds
- Independent armor slowdown: worn armor slows the player by its weight (default 80% of weight as %), stacking with the weight system
- Different armor materials have different weights: Leather 10 KG/set, Iron 26 KG/set, Netherite 42 KG/set
- Item tooltips show weight; armor additionally shows red "-X% Move Speed"
Body-Part Injury System
- TaCZ gunshot hits are judged by hit location — does NOT use TaCZ's
isHeadShot()
- 7 body parts: Head, Abdomen, Left/Right Arm, Left/Right Leg
- 4 wound effects:
- Heavy Wound (Head, 20% chance): max health -10%
- Abdomen Wound (Abdomen, 20% chance): max health -10%
- Bleeding (Arms, 30% chance): 1 damage every ~6s, up to 4 layers, stops at HP ≤1
- Fracture (Legs, 20% chance): -15% speed per leg, -30% with both legs
- All wounds persist until treated or death
- Fall fracture: ≥5 block fall triggers, base 50% + 10% per block
Painkiller System
- Painkiller suppresses bleeding damage and fracture slowdowns (HUD icons remain visible)
- Fractures can still stack while suppressed
- On expiry: nausea + scream sound if heavy/abdomen wounds present
Consumable Medical System
- Wheel UI (B key): ToolBelt-style radial selector, auto-aggregates inventory consumables
- First-person 3D animation: model follows view, with camera shake, player arms, environment lighting
- In-use HUD: progress bar + item name + remaining seconds + cancel hint
- Two durability modes:
proportional: consumes durability proportional to missing health — for healing items
fixed: 1 durability per use — for wound-clearing items
- Pre-use checks: blocks use if health full or no matching wound, with feedback message
- Use restrictions: no hotbar switching / inventory / firing / drop / swap during use
- Cancel: press R to cancel (HUD shows key hint, supports mouse button icons)
- 7 default consumables: Bandage, Painkiller, Stim, Syringe, Medical Kit, Tourniquet, M2 IM Injection
New Armor Mechanic (TaCZ Bullet Damage)
- Bullet damage splits by
armor_ignore: piercing portion damages health, non-piercing consumes body-part armor durability
- Armor durability exhausted but NOT destroyed — protection gone, reserved for repair
- Consumables can repair armor, but permanently reduce its max durability cap
Stamina System
- Sprint drains stamina, idle regenerates (with short delay)
- Fatigued state when exhausted — blocks sprint until recovered
- Jumping costs 10, sliding costs 20
Stamina Restore effect instantly refills
- Vanilla hunger disabled (requires HungerStrike)
- Aiming cancels sprint
- Slide (V key, disabled by default): slide while sprinting, 30-tick speed decay, slide-jump boost
Player Health
- Base health = 20 + 30 = 50 HP (25 hearts), configurable
- Fully restored on first join and respawn
HUD Overlays
- Health: avatar + health bar + percentage + 4 armor durability icons + oxygen bar
- Stamina: bar above hotbar, hides when full, turns red below 20
- Effect status: 9×9 effect blocks with smooth progress fill
- Consumable use: progress bar + info below crosshair
AI Enemies
- Soldier: 3-state AI (Patrol → Alert → Combat), random SMG, squad aggro sharing
- Sniper: immobilized, random sniper rifle, 3~6s shot interval
- Configurable AI parameters and gun blacklist
- Creative tab spawn eggs
Key Bindings
| Key |
Default |
Function |
| Consumable Wheel |
B |
Open consumable selection wheel |
| Cancel Use |
R |
Cancel active consumable use |
| Slide |
V |
Slide while sprinting (if enabled) |
Dependencies
| Mod |
Required |
Notes |
| Forge |
Yes |
≥46 |
| Minecraft |
Yes |
1.20.1 |
| TaCZ |
Yes |
≥1.1.4 |
| HungerStrike |
Yes |
Disables vanilla hunger |
| PlayerAnimator |
No |
Slide animations (optional) |
| ParCool |
No |
Stim effect (optional) |
Localization
Usage Guide
Installation
- Install Minecraft 1.20.1 + Forge 47.x
- Place the following mods into the
mods/ folder:
- TaCZ (≥1.1.4)
- HungerStrike (≥8.0.0)
- Vantage TaCZ Compat (this mod)
- Launch the game
Quick Start
1. Injuries & Treatment
- After being shot by a TaCZ weapon, you may receive different wounds depending on hit location (head Heavy Wound, abdomen Abdomen Wound, arm Bleeding, leg Fracture)
- Press B to open the consumable wheel and select the appropriate item:
- Bleeding → use Tourniquet or Bandage
- Heavy Wound / Abdomen Wound / Fracture → use Bandage
- Low health → use Medical Kit or Syringe
- Need sustained combat → use Painkiller (suppression) or Stim (speed)
- You can also use Painkiller to temporarily suppress bleeding and fracture effects (beware of comedown)
2. Weight Management
- Open your inventory and hover over items to see their weight (KG)
- Total weight above 80 KG → Encumbrance (light slowdown)
- Total weight above 150 KG → Overloaded (severe slowdown + jump reduction)
- Armor weight does NOT count toward inventory weight, but armor independently slows you (heavier armor = more slowdown)
- The
Weight Limit Boost effect temporarily raises thresholds
3. Stamina Management
- Sprinting drains stamina; when exhausted, you cannot sprint until you recover above 20
- The stamina bar is above the hotbar; it turns red below 20
- Jumping costs 10 stamina, sliding costs 20
4. Consumable Use Flow
- Press B to open the wheel
- Move the mouse to the target consumable's sector (center shows the item name)
- Release B to confirm use
- During use:
- A progress bar and remaining time appear at the bottom of the screen
- Slowness II is applied to the player
- Hotbar switching, inventory, firing, and item dropping are disabled
- Press R to cancel (no effects consumed)
- When use completes, the gun draw sound plays automatically
Configuration
All settings are in config/vantagetaczcompat-common.toml. Changes require a game restart. Key sections:
Weight
[Weight]
weightMax = 200.0 # Maximum weight cap
heavyThreshold = 80.0 # Encumbrance threshold
overloadThreshold = 150.0 # Overload threshold
armorSpeedPenaltyPerKg = 0.8 # Armor slowdown factor (0.8 = 80% of weight)
overloadJumpReduction = 0.5 # Overload jump reduction (0.5 = 50% less height)
weightLimitBoostAmount = 40.0 # Weight Limit Boost effect amount
# Item weight overrides, format: mod:item,weight
itemWeights = ["minecraft:iron_block,8.0", "minecraft:netherite_chestplate,16.0", ...]
Wounds
[Damage Multipliers]
headDamageMultiplier = 1.0 # Head damage multiplier
abdomenDamageMultiplier = 1.0 # Abdomen damage multiplier
limbDamageMultiplier = 0.3 # Limb damage multiplier
[Bullet Wound Chances]
headWoundChance = 0.20 # Head → Heavy Wound chance
abdomenWoundChance = 0.20 # Abdomen → Abdomen Wound chance
bleedingChance = 0.30 # Arm → Bleeding chance
fractureChance = 0.20 # Leg → Fracture chance
[Fall Fracture]
fallFractureChance = 0.50 # Base fracture chance
fallFractureMinDistance = 5.0 # Minimum fall distance
fallFractureChancePerBlock = 0.10 # Chance per additional block
Stamina
[Stamina Values]
staminaMax = 100.0 # Maximum stamina
staminaSprintDrain = 0.2 # Sprint drain per tick
staminaRegen = 0.3 # Idle regen per tick
staminaRegenDelay = 20 # Regen delay after drain (ticks)
staminaJumpCost = 10.0 # Jump cost
staminaSlideCost = 20.0 # Slide cost
Consumable Use
[Consumable Use]
healIntervalTicks = 5 # Heal loop interval (ticks)
slowdownAmplifier = 1 # Slowdown amplifier (1 = Slowness II)
slowdownExtraDuration = 20 # Extra slowdown after animation (ticks)
New Armor Mechanic
[New Armor Mechanic]
enableNewArmorMechanic = true # Toggle
armorDurabilityMultiplier = 4.0 # Non-piercing damage → armor durability factor
Custom Consumables
This mod loads consumables via the TaCZ extension pack mechanism. The default pack is at .minecraft/tacz/vtc_default_consumable/.
Adding a New Consumable
-
Create files in the extension pack directory:
vtc_default_consumable/
└── assets/vantagetaczcompat/
├── consumable/my_item.json ← Definition
├── geo_models/consumable/my_item_geo.json ← 3D model
├── animations/consumable/my_item.animation.json ← Use animation
└── textures/consumable/
├── model/my_item.png ← 3D model texture
└── slot/my_item.png ← 2D inventory icon
-
Definition file example:
{
"name": "item.vantagetaczcompat.my_item",
"model": "vantagetaczcompat:consumable/my_item_geo",
"texture": "vantagetaczcompat:consumable/model/my_item",
"slot_texture": "vantagetaczcompat:consumable/slot/my_item",
"animation": "vantagetaczcompat:consumable/my_item_use",
"animation_duration": 3.0,
"heal_start_delay": 0.5,
"durability": 4,
"use_ticks": 60,
"durability_mode": "fixed",
"armor_repair_type": null,
"armor_max_durability_reduction_percent": 0.0,
"effects_to_apply": [
{ "id": "vantagetaczcompat:clear_wound", "duration": 1, "amplifier": 0 }
],
"effects_to_remove": []
}
-
Add the translation in the lang file:
{ "item.vantagetaczcompat.my_item": "My Item" }
-
Press F3+T to hot-reload resources — the new consumable will appear in the creative tab immediately
For full field reference, see docs/consumable_json_format.md in the project.
Custom Item Weights
Add entries to itemWeights in the config:
itemWeights = [
"minecraft:iron_block,8.0",
"mymod:my_item,15.5"
]
Format is mod:item,weight. Unlisted items use the default formula (based on stack ratio).
Obtaining Consumables
Open the creative inventory and find the Vantage TaCZ Compat tab. All loaded consumables are displayed dynamically. They share a single registered Item, distinguished by the ConsumableId NBT tag.
FAQ
Q: Consumables don't appear?
A: Ensure .minecraft/tacz/vtc_default_consumable/ exists and contains a consumable/ directory. The mod auto-exports on first launch. If missing, delete the directory and restart to regenerate it.
Q: Config changes don't take effect?
A: Config changes require a game restart. Note that changing defaults in gradle.properties does NOT auto-update an existing toml file — either delete config/vantagetaczcompat-common.toml to regenerate it, or edit the toml file directly.
Q: Can't see the first-person animation?
A: Make sure your main hand is empty or holding a consumable. The consumable model automatically hides the gun and appears during use.
Q: Cancel hint didn't update after rebinding?
A: The HUD dynamically reads the current key binding and shows the corresponding hint, including mouse button icons. Changes take effect immediately.
Q: Why doesn't armor disappear at 0 durability?
A: This is by design in the new armor mechanic. Armor at 0 durability loses its protection but is preserved as an item, reserved for future repair consumables.
Q: How to disable sliding?
A: Set enableSlide = false in the config (disabled by default).
评论 0
登录后参与评分
还没有评论,来抢沙发吧