自定义状态效果
欢迎来到自定义状态效果数据包
你可以通过调整数值来暂时修改实体的属性
目前支持乘法公式,后续将添加更多功能和新的自定义状态
支持添加多个自定义状态 ID 以及针对重复 ID 的属性叠加效果
如何使用?
自定义属性状态
向目标施加自定义属性状态效果
attribute:要应用的属性
duration:持续时间(1t / 0.05s)
base:初始应用值
value:重复叠加时添加的值
max:最大值限制
type:add_value, add_multiplied_base, add_multiplied_total
id:你可以自定义 ID 以查看效果;具有相同 ID 和已修改属性的效果会叠加;否则将创建一个新的独立效果
function cse:sys/status_effects/use {attribute:"armor",duration:40,base:1,value:1,max:5, id:"global",type:"add_value"}
流血状态
当主体受到此状态影响时
所有非流血持续伤害(DoT)的累积伤害将被记录
主体将根据设定的秒数持续时间,承受基础 DoT 伤害加上之前累积的伤害
duration:持续时间(1t / 0.05s)
tick_rate:持续伤害间隔
dot:基础流血伤害
max:最大值限制
function cse:status_effects/apply/bleeding/use {duration:100, tick_rate:40, dot:20, max:100}
灵魂束缚
召唤出的长矛会在一段时间内限制你的最大移动距离
通过调整该值,你可以逐渐扩大范围或将其缩小至固定范围
duration:持续时间(1t / 0.05s)
value:仅允许输入整数。每个刻决定是放大还是缩小,或者可以设置为 0 以保持静止
max:最大值限制
function cse:status_effects/apply/soul_restraint/use {duration:100, value:1, max: 8}
熵蚀
经过特定的秒数后
在连续 5 次命中中造成 1 点真实伤害
并且此伤害无视受伤间隔
duration:持续时间(1t / 0.05s)
tick_rate:持续伤害间隔
damage:基础伤害
function cse:status_effects/apply/entropy_erosion/use {duration:305, tick_rate:100, damage: 5}
Custom Status Effects
Welcome to the Custom Status Effects Datapack
You can temporarily modify an entity's attributes by adjusting its values
Currently the multiplication formula is supported and more functions and new custom states will be added later
Supports adding multiple custom state IDs and attrubute stacking effects that repeatedly apply attributes for duplicate IDs
How to use?
Custom Attribute Status
Apply custom attributes status effects to the target
attribute: The attributes you want to apply
duration: Duration (1t / 0.05s)
base: The initial value applied
value: The value added upon repeated stacking
max: The maximum value limit
type: add_value, add_multiplied_base, add_multiplied_total
id: You can define the ID as you wish to see the effect, Effects with the same ID and modified attribute will stack; otherwise a new independent one will be created
function cse:sys/status_effects/use {attribute:"armor",duration:40,base:1,value:1,max:5, id:"global",type:"add_value"}
Bleeding Status
When the subject is afflicted with this status
all accumulated dmg other than Bleeding DoT will be recorded
and the subject will take base DoT dmg plus the previously accumulated dmg based on the set duration in seconds
duration: Duration (1t / 0.05s)
tick_rate: Interval for Dot Dmg
dot: Base bleeding dmg dealt
max: The maximum value limit
function cse:status_effects/apply/bleeding/use {duration:100, tick_rate:40, dot:20, max:100}
Soul Restraint
The summoned spear restricts your maximum movement distance for a period of time
allowing you to gradually expand the range or decrease it to a fixed range by adjusting that value
duration: Duration (1t / 0.05s)
value: Only int input is allowed. Each tick determines whether to zoom out or zoom in, or you can set it to 0 to keep it stationary
max: The maximum value limit
function cse:status_effects/apply/soul_restraint/use {duration:100, value:1, max: 8}
Entropy Erosion
After a specific number of seconds
deal 1 point of true dmg in 5 consecutive hits
and this dmg ignores injury intervals
duration: Duration (1t / 0.05s)
tick_rate: Interval for Dot Dmg
damage: Base dmg dealt
function cse:status_effects/apply/entropy_erosion/use {duration:305, tick_rate:100, damage: 5}
评论 0
登录后参与评分
还没有评论,来抢沙发吧