RPG 伤害系统重做 (RPGDO)
RPGDO 是对 Minecraft 伤害系统的全面重做,灵感来源于 DDD 和 Alembic。它为每种攻击添加了具体的伤害类型,如穿透、切割、钝击、火焰等……并且每种伤害类别都配有相应的护甲和抗性属性。该模组与 TheRedBrain's Overhauled Damage 非常相似,但本模组允许你按需创建和移除伤害类别,而它的伤害类别则是固定不可变的。此外,本模组还提供了大量与其他模组的兼容性支持。
包含对 BetterCombat 的支持!特定的攻击动画被配置为造成正确的伤害类型(钝击、切割、穿透)。该模组支持所有标准的 BetterCombat 动画,所有物品均已正确标记(剑、斧头、镐子、锤子等等),并支持以下列出的模组(其中一些模组拥有自定义的 BetterCombat 配置)。
虽然并非必需,且大多数模组默认即可兼容,但如果您已安装 AttributeSetter,以下模组的实体和物品(此列表已过时,但列出的模组仍然兼容)将具备伤害抗性/弱点,并造成相应的伤害类型:
-
Minecraft
-
Born In Chaos -
Spell Power and it's dependents(RPG Series)
如果你为其他模组制作了兼容性文件,请发送到我们的 Discord!
伤害类型
伤害类型定义了你将受到或抵抗的伤害种类。默认情况下,共有 11 种伤害类型:
- 钝击 (Blunt)
- 穿刺 (Piercing)
- 挥砍 (Slashing)
- 锐击 (Sharp)
- 没有任何攻击应该造成锐击伤害,它仅作为一个属性,用于同时赋予针对穿刺和挥砍伤害的护甲/抗性加成
- 通用物理 (Generic Physical)
- 没有任何攻击应该造成通用物理伤害,它仅作为一种将所有物理伤害抗性/护甲整合到一个属性中的方式存在
- 火焰 (Fire)
- 使目标着火
- 移除霜冻带来的减速效果
- 伤害叠加(命中次数越多,造成的伤害越高)
- 霜冻 (Frost)
- 根据伤害量减缓目标速度
- 根据伤害量降低目标的攻击速度
- 熄灭火焰
- 闪电 (Lightning)
- 对目标周围最多 5 个实体造成相当于其 75% 的闪电伤害
- 灵魂 (Soul)
- 根据伤害量降低目标的最大生命值
- 神圣 (Holy)
- 增加除其他神圣伤害外所有来源对目标造成的伤害
- 鲜血 (Blood)
- 治疗造成伤害者
- 凋零 (Wither)
- 降低目标从所有来源获得的回复效果
- 剧毒 (Poison)
- 较弱的凋零效果
- 奥术 (Arcane)
- 具有 50% 的护甲穿透效果,并使目标发光
- 真实 (True)
- 无视所有护甲和抗性
所有这些均可通过数据包进行修改,更多信息请访问 GitHub 页面。 每种伤害类型都附带以下属性:
- 护甲 (Armor)(基于原版护甲属性的伤害减免)
- 伤害 (Damage)(命中时造成该类型的伤害量)
- 抗性 (Resistance)(伤害百分比减免,1 表示免疫该伤害,-1 表示受到双倍伤害)
- 吸收 (Absorption)(开发中,但功能将与原版的生命吸收相同)
伤害覆盖
还有一种方法可以重新定义哪些伤害类型属于哪种伤害类别。例如,监守者的音波冲击会造成 40% 的奥术伤害、40% 的灵魂伤害和 20% 的真实伤害:
"minecraft:sonic_boom": {"arcane": 0.4, "soul": 0.4, "true": 0.2},
你可以在此处查看默认设置 这里
物品覆盖
你还可以在不手动更改物品属性的情况下,为特定物品分配特定的伤害分布,有两种实现方式:
不使用 BetterCombat
你可以配置一个 item_overrides.json。例如,剑将其正常伤害的 80% 转化为挥砍伤害,20% 转化为穿刺伤害,而斧头则造成 100% 的挥砍伤害:
"#c:swords": { "slashing": 0.8, "piercing": 0.2},
"#c:axes": { "slashing": 1.0 },
更多示例见 GitHub 页面。
使用 BetterCombat
如果你安装了 BetterCombat,你可以设置每次武器攻击造成的伤害类型,以下是默认的剑和斧头连击的设置方式:
"bettercombat:sword": ["slashing", "slashing", "piercing"],
"bettercombat:axe": ["slashing", "slashing"]
这些转换仅适用于物理伤害,因此如果一把剑造成 8 点伤害和 2 点火焰伤害,只有那 8 点伤害会转化为挥砍/穿刺伤害。 如果你没有定义该物品在 Without BetterCombat 情况下的行为,系统会根据 BetterCombat 的配置自动生成一个定义,例如,剑将造成 66% 的挥砍伤害和 33% 的穿刺伤害。 更多示例见 GitHub 页面。
如果你正在制作整合包
你可能对我的其他整合包专用模组感兴趣: AttributeSetter RPGDamageOverhaul FoodAttributes
或者对于服务器/SMP 尝试 Claims n Raids!
RPG Damage Overhaul (RPGDO)
RPGDO is a complete overhaul to minecraft's damage system, inspired by DDD and Alembic. It adds specific damage types for each attack, like piercing, slashing, blunt, fire, etc... and with each damage class comes an armor and resistance attributes. This mod is very similar to TheRedBrain's Overhauled Damage, but this one lets you create and remove damage classes as you wish, while his comes with a immutable set of damages. This also comes with an insane amount of compatibility with other mods.
Support for bettercombat included! Specific attack animations are configured to deal the correct type of damage(blunt, slash, pierce). The mod comes with support for all standard BetterCombat animations, all items correctly tagged(swords, axes, pickaxes, hammers, etc etc), and the mods listed below(some of these mods have some custom BetterCombat configs)
Although not necessary, and most mods will simply be compatible by default, if you have AttributeSetter installed, entities and items from the following mods(this is an outdated list, but the ones here are still compatible) will come with damage resistances and/or vulnerabilities will deal the appropriate damage types:
- Minecraft
AdventureZ
Alex's Caves
Alex's Mobs
Ancient Golems
Aquamirae
Ars Nouveau(and it's addons)
Better Combat
BetterEnd
BetterNether
Born In Chaos
Bosses of Mass Destruction
Cataclysm(A.K.A L_Ender's Cataclysm)
Enderman Overhaul
Enemy Expansion
Enigmatic Legacy
Enigmatic Addons
Iron's Spells & Spellbooks(and it's addons)
Knight Quest
Legendary Monsters
Mowzie's Mobs
Simply More
Simply Swords
Spell Power and it's dependents(RPG Series)
Threateningly Mobs
Knaves' Needs
Marium's Soulslike Weaponry
Mob Variants
Terramity
Unusual End
Too Many Bows
Relics
Ice & Fire
MineCells(missing a few mobs and effects)
Jaden's Nether Expansion
AttributesLib(A.K.A Apothic Attributes)(and it's dependents)
HexCasting
Luminous Series
If you end up making compatibility files for other mods, send it in our discord!
Damage Class
Damage classes define what type of damage you'll be receiving or protected agains. By default, there are 11 damage classes:
- Blunt
- Piercing
- Slashing
- Sharp
- Nothing should deal sharp damage, it's just an attribute to make armor/resistance attribute for piercing and slashing damage at the same time
- Generic Physical
- Nothing should deal generic physical damage, it exists only as a way to encompass all physical damage resistance/armor in one attribute
- Fire
- Sets target on fire
- Removes frost's slowdown
- Damage stacks(the more you hit the more damage you deal)
- Frost
- Slows target down based on damage
- Removes target attack speed based on damage
- Extinguishes fire
- Lightning
- Deals 75% lightning damage on entities nearby the target up to 5 targets
- Soul
- Diminishes target's max health based on damage
- Holy
- Increases all sources of damages to the target except other holy damage
- Blood
- Heals the damager
- Wither
- Diminishes target's healing from all sources
- Poison
- Weaker wither
- Arcane
- 50% armor piercing and makes target glow
- True
- Ignores all armor and resistances
All of this can be modified through datapacks, for more information visit the github page. Each damage class comes with an attribute for:
- Armor(Damage reduction based on vanilla's armor attribute)
- Damage(Deals this amount of the damage class damage on hit)
- Resistance(Percentage damage reduction of damage, 1 means you'll take no damage, -1 means you'll take double damage)
- Absorption(W.I.P, but will act the same as vanilla's absorption)
Damage Overrides
There is also a way to redefine what damage types are what damage class. For example, warden's sonic boom deals 40% arcane damage, 40% soul damage, 20% true damage:
"minecraft:sonic_boom": {"arcane": 0.4, "soul": 0.4, "true": 0.2},
You can check the defaults here
Item Overrides
You can also give specific damage distributions to items without changing their attributes manually, there are two ways of doing that:
Without BetterCombat
You can setup a item_overrides.json. For example, swords give 80% of their normal damage as slashing damage and 20% as piercing damage, while axes deal 100% slashing damage
"#c:swords": { "slashing": 0.8, "piercing": 0.2},
"#c:axes": { "slashing": 1.0 },
More examples in the GitHub page.
With BetterCombat
If you have BetterCombat installed, you can setup what damage each weapon attack deals, this is how the default sword and axe combos are setup:
"bettercombat:sword": ["slashing", "slashing", "piercing"],
"bettercombat:axe": ["slashing", "slashing"]
These only convert physical damage, so if the sword deals 8 damage and 2 fire damage, only the 8 damage will become slashing/piercing damage If you don't have a definition for how this item will behave without BetterCombat, it generates one based on the BetterCombat config, for example, swords would deal 66% slashing damage and 33% piercing damage. More examples in the GitHub page.
If you are building a modpack
you might be interested in some of my other mods for modpacks: AttributeSetter RPGDamageOverhaul FoodAttributes
Or Claims n Raids for servers/smp!
下载 RPG Damage Overhaul(RPGDO)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RPG Damage Overhaul(RPGDO)
下载 RPG Damage Overhaul(RPGDO)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RPG Damage Overhaul(RPGDO)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RPG Damage Overhaul(RPGDO)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RPG Damage Overhaul(RPGDO)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RPG Damage Overhaul(RPGDO)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RPG Damage Overhaul(RPGDO)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RPG Damage Overhaul(RPGDO)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RPG Damage Overhaul(RPGDO)
RPG Damage Overhaul 2.0.0
涵盖从 2026 年 4 月 29 日构建版本(1.2.2-forge,Minecraft 1.20.1)到 2.0.0 重写版本之间的所有内容。2.0.0 分支是一次进行中的重写,因此已接入的更改和未完成的工作将单独列出。
平台
- 移植至 Minecraft 1.21.1。
- 重构为多加载器模组。现在有一个共享的
common模块,以及单独的neoforge(NeoForge 21.1.x)和fabric(加载器 0.16.9)构建版本。旧的单一 Forge 项目结构已移除,取而代之的是使用buildSrc和共享单个gradle.properties的各加载器子项目。请注意,Fabric 构建版本目前尚不可用。 - Forge 1.20.1 系列(1.2.2)保留为其独立的分支。2.0.0 版本针对 NeoForge 和 Fabric 在 1.21.1 上的支持。
新增伤害类型
- Water(水)。霜冻的子类。命中时使目标处于湿润状态,在水中或雨天造成更高伤害(x1.5),并短暂提高目标随后受到的霜冻和闪电伤害。引用自水系法术强度属性(Aces' Spell Utils hydro、Spell Power water)。它仅继承部分霜冻的防御特性(父级防御效果系数 1.75,父级伤害防御效果系数 0.5)。
- Lava(熔岩)。元素系的子类。命中时点燃目标,可在 3 秒内叠加最多 4 层,在水中伤害减弱(x0.75)。与火焰共享伤害缩放比例。
- Fire(火焰) 现在定义为熔岩的子类。点燃时间更短,最多叠加 3 层,在水中伤害大幅减弱(x0.5)。
- 为水和熔岩添加了英文和葡萄牙语名称(包括伤害、抗性、吸收、护甲相关)。
伤害类型定义
- 每种类型现在都是位于
data/rpgdamageoverhaul/rpgdamageoverhaul/damage_class/<name>.json下的独立文件。数据包可以添加或替换其中一种类型而无需重新定义所有类型。(旧的合并damage_classes.json目前仍会加载。) - 旧的嵌套
subClasses结构已被parent字段取代。一种类型通过指定其父类型来继承行为链上的特性。层级结构为physical > {sharp > {slashing, piercing}, blunt}以及elemental > {fire > lava, frost > water, poison, holy, soul, wither, blood, lightning},此外还有arcane和true。 - 新增
parent_defense_effectiveness和parent_damage_defense_effectiveness字段,用于控制父类型的抗性和护甲减免有多少传递给子类型。 - 类型行为现在是可注册属性系统的一部分。其他模组可以通过
RPGDamageOverhaulAPI.registerPropertyBuilder和registerPropertyAlias注册它们自己的类型属性和命中效果。 - 所有字段名已移至蛇形命名法(snake_case)(例如
on_water、armor_effectiveness、damage_types、attribute_modifier等)。
行为变更
- 火焰和霜冻现在使用简单的
ignite和freeze持续时间数值,而不是命中效果列表。 - 新增
modify_damage属性。对目标造成的输出伤害应用限时倍率,支持例外列表或白名单机制。神圣(Holy)使用该属性(每点伤害增加 +5%,至少 +50%,持续 2 秒,不与神圣效果叠加)。水(Water)使用该属性来增强后续的霜冻和闪电伤害。 - 新增
modify_heal属性。根据命中情况,短时间内削减目标获得的治疗效果。毒素(Poison)现在使用此属性替代旧的抗治疗阻断机制。 - 新增
set_wet属性。使目标在一段时间内处于湿润状态。由水(Water)类型使用。 - 新增
rename_attributes属性。允许一种类型将另一个模组的属性视为其自身的槽位之一(伤害、护甲、吸收、抗性)。这是 Iron's Spellbooks 魔法抗性和法术强度属性融入相应类型的方式。 - 连锁闪电现在是通用的
chain_damage属性,包含range、max_targets和damage_modifier,且修饰符接受使用dmg和n(目标数量)的公式。 apply_potion现在需要明确的duration和amplifier,且增幅器可以是公式。当伤害达到 4 或以上时,毒素效果可达 2 级。attribute_modifier现在是一个列表,并使用 1.21 的操作名称。霜冻的减速效果经过重新调整(攻击速度每点伤害降低 8%,上限 60%;移动速度每点伤害降低 4.5%)。凋零(Wither)现在在命中时粉碎护甲和护甲韧性,而不是阻止治疗。- 灵魂(Soul)保留了最大生命值粉碎效果,并获得了一个伤害附魔钩子(Luminous Nether soul cleave)。
- 独立的
physical.json将原版抗性效果设置为每级减少 20% 的物理伤害(原为 5%)。 - 公式评估器现在向类型 JSON 暴露了更多变量(
armor用于护甲效果系数,heal用于治疗修正,n用于连锁目标数量)。
重新平衡的伤害与抗性覆盖
- 水、溺水和水生生物攻击已从霜冻迁移至新的水(Water)类型。
minecraft:drown现在属于水类型。溺尸、Cataclysm 深渊潜行者、利维坦和斯库拉、Alex's Caves 深海居民和船体破坏者、Aquamirae 鱼类、Ice and Fire 海蛇和海妖、Sea Dwellers 人鱼变种等许多实体现在抵抗水类型而非霜冻类型,且部分数值有所上调。 - 熔岩、岩浆和火山攻击已从火焰迁移至熔岩(Lava)类型:
minecraft:lava、Create 风扇熔岩、Cataclysm Ignis 和烈焰打击、Alex's Caves 核爆、火山灰和 Luxtructosaurus、Souls Weapons 火焰柱、Fryc 熔岩史莱姆、Mowzie's 太阳能束和阳光打击等。 - 为毒(Poison)类型添加了
neoforge:poison映射。 - Cataclysm 调整:斯库拉现在也造成水类型伤害,
lightning_spear和lightning_storm映射至闪电类型,Ignis 深渊火球变为熔岩加水的混合伤害,珊瑚傀儡和深渊潜行者的抗性经过重新调整。 - 对 Frostmaw、Hydra 及其他少数实体进行了小幅微调。
兼容性
- Iron's Spellbooks(新增可选依赖)。火焰、冰霜、闪电、鲜血、神圣、末影、古神与自然系法术强度与魔法抗性属性已映射至对应的 RPGDO 类别,且法术强度会复制为对应类别的伤害。
- Spell Power and Aces' Spell Utils。火、冰、水、奥术、神圣与灵魂系法术强度属性将喂给对应的类别。
- Rotten Creatures(新增)。针对烧伤、冻伤、沼泽化、木乃伊、冰川猎人、圣甲虫、死胡子、僵尸与骷髅仆从,以及不朽者(受到更多神圣伤害)提供抗性。如果存在 Food Attributes,食用岩浆腐烂肉和冰冻腐烂肉可分别提供火焰或冰霜抗性。
- Food Attributes(新增,首次迭代)。在
attributesetter/item_type/foodattributescompat.json中精心策划的食物到类别的映射:爬行者切片和绞碎爬行者提供火焰护甲与抗性;子弹胡椒与胡椒粉提供火焰伤害;辣椒与 Buffalo wings 提供火焰伤害;什锦浓汤提供火焰护甲并保留其爆炸抗性;岩浆膏提供熔岩抗性;爬行者蛋提供熔岩护甲;西瓜提供穿透抗性;紫颂果提供奥术护甲;几种鱼类提供水抗性;河豚提供毒抗性;ghasta 提供灵魂抗性;甜菜根提供鲜血伤害。完整设计请参阅docs/design/foodattributes-compat.md。 - Better Combat、Simply Swords、Simplymore、Jade 和 Curios 的兼容性已延续至 1.21.1。
网络同步
- 1.21.1 新增基于有效载荷(payload)的同步机制:
RPGDODatapackSyncPayload、DamageClassSyncStartPayload、DamageClassAddConfigPayload、DamageClassSyncFinishedPayload。加入服务器和重载时,伤害类别配置会流式传输至客户端。 - 在 NeoForge 上,该同步运行在 Forge 自身的注册表同步之前,以避免顺序错误导致的崩溃。
其他
- 属性修饰符数据移除了旧的 UUID 字段,以匹配 1.21 基于 ResourceLocation 的修饰符。
- 新增
AttributeUtils辅助工具,用于通过所有修饰符运算解析属性值,供类别伤害与抗性数学计算使用。
本版本未完成
- Better Mob Combat、Apotheosis、Dungeons and Combat 以及部分来自 1.20.1 的 Simply Swords 能力兼容性尚未移植。
- 旧的
damage_classes.json、damage_overrides.json、entity_overrides.json、item_overrides.json和bettercombat.json仍与新版的按类别文件一同分发,这是为了万一出错时,我仍能查看旧文件进行排查。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
适用于 MC 1.18+ 的 Effekseer 加载器
评论 0
登录后参与评分
还没有评论,来抢沙发吧