TAA Mod - Tacz 属性增强模组
属性系统
伤害属性
- 通用枪械伤害:
taa:bullet_gundamage- 所有枪械的基础伤害加成
枪械专属伤害属性
- 手枪:
taa:bullet_gundamage_pistol- 手枪专属伤害加成 - 步枪:
taa:bullet_gundamage_rifle- 步枪专属伤害加成 - 霰弹枪:
taa:bullet_gundamage_shotgun- 霰弹枪专属伤害加成 - 狙击步枪:
taa:bullet_gundamage_sniper- 狙击步枪专属伤害加成 - 冲锋枪:
taa:bullet_gundamage_smg- 冲锋枪专属伤害加成 - 轻机枪:
taa:bullet_gundamage_lmg- 轻机枪专属伤害加成 - 发射器:
taa:bullet_gundamage_launcher- 发射器专属伤害加成(例如 RPG)
核心枪械属性(共 20 项)
- 开镜时间 (ADS):
taa:ads_time- 开镜速度加成(数值越低越快) - 子弹速度:
taa:ammo_speed- 子弹初速加成 - 穿甲能力:
taa:armor_ignore- 护甲穿透能力 - 有效射程:
taa:effective_range- 最大有效射击距离 - 移动惩罚:
taa:move_speed- 持枪移动速度降低幅度 - 爆头倍率:
taa:headshot_multiplier- 爆头伤害倍率 - 击退力:
taa:knockback- 子弹击退力度 - 穿透数量:
taa:pierce- 子弹实体穿透次数 - 射速:
taa:rounds_per_minute- 每分钟发射发数 - 后坐力:
taa:recoil- 枪械后坐力减少 - 散布误差:
taa:inaccuracy- 子弹散布范围减少(数值越低越精准) - 重量:
taa:weight- 枪械重量减少(数值越低越好) - 弹匣容量:
taa:magazine_capacity- 弹匣大小加成 - 换弹时间:
taa:reload_time- 换弹速度加成 - 近战伤害:
taa:melee_damage- 近战攻击力量加成 - 近战范围:
taa:melee_distance- 近战攻击范围加成 - 子弹数量:
taa:bullet_count- 每次射击的投射物数量加成
特殊效果
- 消音:
taa:silence- 消音效果强度(<1.0 激活被动消音) - 点燃:
taa:ignitefire- 子弹引燃概率
爆炸系统
- 爆炸半径:
taa:explosion_radius- 爆炸范围加成 - 爆炸伤害:
taa:explosion_damage- 爆炸伤害加成 - 爆炸击退:
taa:explosion_knockbacknew- 爆炸击退力度 - 方块破坏:
taa:explosion_destroy_blocknew- 方块破坏能力 - 爆炸延迟:
taa:explosion_delay- 爆炸延时时间
配件修饰符系统
- 近战伤害:
melee_damage- 近战攻击伤害 - 近战范围:
melee_distance- 近战有效范围 - 弹匣容量:
magazine_capacity- 弹匣容量 - 换弹时间:
reload_time- 换弹时间 - 子弹数量:
bullet_count- 每次射击的投射物数量
属性值规范
- 基础值: 1.0(100% 效果)
- 加成值:
- 示例:0.5 = 增加 50%(最终倍率 = 1.0 + 0.5 = 1.5x)
- 1.0 = 增加 100%(无额外效果)
- 布尔型属性: 0.0 = false,1.0 = true
- 被动激活: 如消音等属性会自动触发条件(<1.0)
伤害计算模式
可配置模式(通过 taa-attributes.toml):
- MAX 模式(默认)
- 公式:
Math.max(base_damage, specific_damage) - 选择基础伤害与枪械专属伤害中的较高值
- ADDITIVE 模式(加法)
- 公式:
base_damage + specific_damage - 1.0 - 结合两个值同时保留基础伤害
- MULTIPLICATIVE 模式(乘法)
- 公式:
base_damage * specific_damage - 将基础伤害与枪械专属伤害相乘
技术实现
核心组件
PropertyCalculator: 处理所有属性计算PlayerAttributeHelper: 获取玩家属性PropertyCacheUpdater: 在附加缓存中更新计算后的值GunPropertiesInitializer: 动态初始化枪械属性AttributeConfig: 管理配置设置GunTypeContext: 跟踪当前枪械类型上下文
客户端/服务端架构
-
客户端安全:
-
UI 方法标注为
@OnlyIn(Dist.CLIENT) -
客户端 Mixins 在
taa.mixins.json中配置 -
不执行服务端客户端代码
-
数据一致性:
-
修饰符完全兼容 TACZ 配件系统
-
计算在服务端进行
-
通过标准
AttachmentPropertyManager更新属性
计算工作流
- 枪械属性处理期间的事件触发
- 通过 Tacz API 识别枪械类型
- 在
GunTypeContext中设置上下文 - 基于模式的计算执行
- 使用新值更新缓存
- TACZ 系统应用最终属性
兼容性与配置
配件系统
- 5 种新的修饰符类型,兼容 TACZ 配件:
- 近战伤害
- 近战范围
- 弹匣容量
- 换弹时间
- 子弹数量
- 标准化实现以实现跨模组兼容性
TAA Mod - Tacz Attribute Enhancement Mod
Attribute System
Damage Attributes
- Universal Firearm Damage:
taa:bullet_gundamage- Base damage bonus for all firearms
Firearm-Specific Damage Attributes
- Pistol:
taa:bullet_gundamage_pistol- Pistol-specific damage bonus - Rifle:
taa:bullet_gundamage_rifle- Rifle-specific damage bonus - Shotgun:
taa:bullet_gundamage_shotgun- Shotgun-specific damage bonus - Sniper Rifle:
taa:bullet_gundamage_sniper- Sniper rifle-specific damage bonus - SMG:
taa:bullet_gundamage_smg- Submachine gun-specific damage bonus - LMG:
taa:bullet_gundamage_lmg- Light machine gun-specific damage bonus - Launcher:
taa:bullet_gundamage_launcher- Launcher-specific damage bonus (e.g., RPGs)
Core Firearm Attributes (20 Total)
- ADS Time:
taa:ads_time- Aim speed bonus (lower = faster) - Ammo Speed:
taa:ammo_speed- Bullet velocity bonus - Armor Penetration:
taa:armor_ignore- Armor penetration capability - Effective Range:
taa:effective_range- Maximum effective shooting distance - Mobility Penalty:
taa:move_speed- Firearm movement speed reduction - Headshot Multiplier:
taa:headshot_multiplier- Headshot damage multiplier - Knockback:
taa:knockback- Bullet knockback force - Penetration Count:
taa:pierce- Bullet entity penetration count - Firing Rate:
taa:rounds_per_minute- Rounds per minute rate - Recoil:
taa:recoil- Firearm recoil reduction - Inaccuracy:
taa:inaccuracy- Bullet spread reduction (lower = better) - Weight:
taa:weight- Firearm weight reduction (lower = better) - Magazine Capacity:
taa:magazine_capacity- Magazine size bonus - Reload Time:
taa:reload_time- Reload speed bonus - Melee Damage:
taa:melee_damage- Melee attack power bonus - Melee Range:
taa:melee_distance- Melee attack range bonus - Bullet Count:
taa:bullet_count- Projectiles per shot bonus
Special Effects
- Silencing:
taa:silence- Silencing effectiveness (<1.0 activates passive silencing) - Ignite:
taa:ignitefire- Bullet fire ignition chance
Explosive System
- Explosion Radius:
taa:explosion_radius- Blast radius bonus - Explosion Damage:
taa:explosion_damage- Blast damage bonus - Explosion Knockback:
taa:explosion_knockbacknew- Blast knockback - Block Destruction:
taa:explosion_destroy_blocknew- Block destruction capability - Explosion Delay:
taa:explosion_delay- Blast delay time
Accessory Modifier System
- Melee Damage:
melee_damage- Melee attack damage - Melee Range:
melee_distance- Melee effective range - Magazine Capacity:
magazine_capacity- Magazine capacity - Reload Time:
reload_time- Reload time - Bullet Count:
bullet_count- Projectiles per shot
Attribute Value Specifications
- Base Value: 1.0 (100% effect)
- Bonus Values:
- Example: 0.5 = 50% increase (final multiplier = 1.0 + 0.5 = 1.5x)
- 1.0 = 100% increase (no additional effect)
- Boolean Attributes: 0.0 = false, 1.0 = true
- Passive Activation: Attributes like silencing automatically trigger conditions (<1.0)
Damage Calculation Modes
Configurable Modes (via taa-attributes.toml):
- MAX Mode (Default)
- Formula:
Math.max(base_damage, specific_damage) - Selects higher value between base and firearm-specific damage
- ADDITIVE Mode
- Formula:
base_damage + specific_damage - 1.0 - Combines values while preserving base damage
- MULTIPLICATIVE Mode
- Formula:
base_damage * specific_damage - Multiplies base and firearm-specific damage
Technical Implementation
Core Components
PropertyCalculator: Handles all attribute calculationsPlayerAttributeHelper: Retrieves player attributesPropertyCacheUpdater: Updates calculated values in attachment cacheGunPropertiesInitializer: Dynamically initializes firearm propertiesAttributeConfig: Manages configuration settingsGunTypeContext: Tracks current firearm type context
Client/Server Architecture
-
Client Safety:
-
UI methods annotated with
@OnlyIn(Dist.CLIENT) -
Client-side mixins configured in
taa.mixins.json -
No server-side client code execution
-
Data Consistency:
-
Modifiers fully compatible with TACZ accessory system
-
Calculations performed server-side
-
Attribute updates via standard
AttachmentPropertyManager
Calculation Workflow
- Event trigger during firearm attribute processing
- Firearm type identification via Tacz API
- Context setup in
GunTypeContext - Mode-based calculation execution
- Cache update with new values
- TACZ system applies final attributes
Compatibility & Configuration
Accessory System
- 5 new modifier types compatible with TACZ accessories:
- Melee damage
- Melee range
- Magazine capacity
- Reload time
- Bullet count
- Standardized implementation for cross-mod compatibility
下载 TaczAttributeAdd
下载 TaczAttributeAdd
下载 TaczAttributeAdd
下载 TaczAttributeAdd
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 TaczAttributeAdd
下载 TaczAttributeAdd
下载 TaczAttributeAdd
下载 TaczAttributeAdd
下载 TaczAttributeAdd
下载 TaczAttributeAdd
通过采用栈结构优化上下文管理,防止内存泄漏并支持嵌套流程。
添加了客户端弹匣容量的回退机制:在无法获取上下文时,使用本地玩家进行计算。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧