RPG 伤害系统重做 (RPGDO)
RPGDO 是对 Minecraft 伤害系统的全面重做,灵感来源于 DDD 和 Alembic。它为每种攻击添加了具体的伤害类型,如穿透、切割、钝击、火焰等……并且每种伤害类别都配有相应的护甲和抗性属性。该模组与 TheRedBrain's Overhauled Damage 非常相似,但本模组允许你按需创建和移除伤害类别,而它的伤害类别则是固定不可变的。此外,本模组还提供了大量与其他模组的兼容性支持。
包含对 BetterCombat 的支持!特定的攻击动画被配置为造成正确的伤害类型(钝击、切割、穿透)。该模组支持所有标准的 BetterCombat 动画,所有物品均已正确标记(剑、斧头、镐子、锤子等等),并支持以下列出的模组(其中一些模组拥有自定义的 BetterCombat 配置)。
虽然并非必需,且大多数模组默认即可兼容,但如果您已安装 AttributeSetter,以下模组的实体和物品(此列表已过时,但列出的模组仍然兼容)将具备伤害抗性/弱点,并造成相应的伤害类型:
如果你为其他模组制作了兼容性文件,请发送到我们的 Discord!
伤害类型
伤害类型定义了你将受到或抵抗的伤害种类。默认情况下,共有 11 种伤害类型:
- 钝击 (Blunt)
- 穿刺 (Piercing)
- 挥砍 (Slashing)
- 锐击 (Sharp)
- 没有任何攻击应该造成锐击伤害,它仅作为一个属性,用于同时赋予针对穿刺和挥砍伤害的护甲/抗性加成
- 通用物理 (Generic Physical)
- 没有任何攻击应该造成通用物理伤害,它仅作为一种将所有物理伤害抗性/护甲整合到一个属性中的方式存在
- 火焰 (Fire)
- 使目标着火
- 移除霜冻带来的减速效果
- 伤害叠加(命中次数越多,造成的伤害越高)
- 霜冻 (Frost)
- 根据伤害量减缓目标速度
- 根据伤害量降低目标的攻击速度
- 熄灭火焰
- 闪电 (Lightning)
- 对目标周围最多 5 个实体造成相当于其 75% 的闪电伤害
- 灵魂 (Soul)
- 神圣 (Holy)
- 鲜血 (Blood)
- 凋零 (Wither)
- 剧毒 (Poison)
- 奥术 (Arcane)
- 真实 (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:
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
- Wither
- Diminishes target's healing from all sources
- Poison
- 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!
评论 0
登录后参与评分
还没有评论,来抢沙发吧