此数据包允许你自定义伤害,移除玩家原有的固定伤害,并替换为动态伤害系统。通过该系统,你可以设置基础伤害、暴击概率、暴击伤害倍率、伤害放大系数以及力量加成等属性。
在代码函数 dynamic_damage:weapon/sword/damage/set_damage 中提供了详细说明。简而言之,你的伤害数值以“十”为单位进行计算;也就是说,10 点基础伤害等同于游戏内的 1 点实际伤害。类似地,你也可以调整各项倍率:基础伤害、暴击几率、暴击伤害倍率以及最终伤害。这些数据针对每个玩家独立存在,因此可以为不同玩家设置不同的属性值。该功能仅对拥有特定标签的武器生效。使用命令 /function dynamic_damage:main/set 应用标签,且仅适用于剑、矛、斧和三叉戟。
你可以通过以下命令修改各项伤害参数:
-
"scoreboard players set @s dd.damage.base X":修改每次攻击的基础伤害。每增加 10 点,游戏内伤害增加 1。例如,70 点 = 7 点伤害。支持小数输入,如输入 75 则对应 7.5 点伤害。
-
"scoreboard players set @s dd.crit.chance X":修改暴击几率。取值范围为 0 到 100。
-
"scoreboard players set @s dd.crit.damage X":修改暴击伤害倍率。每 10 代表 1 倍,支持小数,例如 15 表示 x1.5 倍。
-
"scoreboard players set @s dd.damage.amplifier.base X":修改基础伤害放大系数。同样以 10 为增量单位,作用于每次攻击,因此通常不建议大幅增加(如 +10)。
-
"scoreboard players set @s dd.show.damage 0":隐藏每次攻击造成的伤害数值显示;保持为 1 则会通过 text_display 显示实际造成的伤害。
-
"scoreboard players set @s dd.damage.strength.base X":修改力量效果对你攻击的影响程度;正常情况建议保持为 2。该值为加法计算而非乘法,单位为整数。
你可以使用命令 "funcion dynamic_damage:main/show" 查看当前属性统计。
This Datapack allows you to customize your damage, removing the player's normal damage and replacing it with dynamic damage, allowing you to have base damage stats, critical hit probability, critical hit damage, damage amplification, and strength modifier.
Within the code, in the function dynamic_damage:weapon/sword/damage/set_damage, you can find the explanation. Simply put, your damage is handled on a scale of tens; that is, 10 base damage is equal to 1 damage in-game. Similarly, your multipliers can be adjusted: base damage, critical hit chance, the critical hit damage multiplier, and final damage. This data is unique to each player, so you can have multiple players with different stats. This only works with weapons that have special tags. The tag is applied with the function /function dynamic_damage:main/set and only applies to swords, spears, axes, and tridents.
You can modify damage with the following values:
"scoreboard players set @s dd.damage.base X" to modify the base damage per hit. Every 10 you enter increases the damage by 1. For example, 70 points = 7 damage. It works with decimals, so you can enter 75 to have 7.5 damage.
"scoreboard players set @s dd.crit.chance X" to modify your critical hit chance. It ranges from 0 to 100.
"scoreboard players set @s dd.crit.damage X" to modify the critical damage multiplier. Every 10 represents 1 and accepts decimals, so 15 = x1.5.
"scoreboard players set @s dd.damage.amplifier.base X" to modify the base damage. It also goes in increments of 10 and applies to each hit, so it's best not to increase it by 10 normally. "scoreboard players set @s dd.show.damage 0" hides the damage you deal per hit; leave it at 1 to display a text_display showing the damage dealt.
"scoreboard players set @s dd.damage.strength.base X" modifies how much the strength effect is applied to your hits; leave it at 2 for normal. This value is additive, not multiplicative, so it works in units.
you can view your stats with command "funcion dynamic_damage:main/show"
评论 0
登录后参与评分
还没有评论,来抢沙发吧