Skip to content

MythicMobs 占位符 ​

注意

本页列出的占位符均由 MythicMobs 解析,写作 <xxx> 格式,无法在 PlaceholderAPI 中写作 %xxx%

以下占位符支持 caster、trigger、target、parent、owner 五种读取对象(下方统一以 caster 为例):

属性位置支持 id 或读取名,例如 <caster.attr.物理伤害:total:0>。

MythicMobs 可用占位符
<caster.attr.属性名[:捕获名][:小数位数]>
属性数值total / 2位小数
读取对象的指定属性值。省略后两项时默认读取 total 并保留 2 位小数
例子:<caster.attr.物理伤害:total:0>
<caster.damagedata.数据名[|默认值]>
伤害标记null
读取当前正在执行的伤害处理器 CustomDataComponent 中的值
例子:<caster.damagedata.crit-damage|0>
<caster.metadata.数据名[|默认值]>
会话数据null
读取实体 AssiyaSession.metadata 中的值(如弓箭的蓄力力度 assiya:force)
例子:<caster.metadata.Assiya:force|1.0>
<owner.uuid> / <owner.name>
召唤物主人null
获取当前召唤物主人的 UUID 或名称

例子 ​

yaml
Skills:
  - m{m="当前物理伤害: <caster.attr.physical-attack:total:0>"} @self
  - m{m="目标的护甲: <target.attr.armor:total:1>"} @self
  - m{m="本次暴击额外伤害: <caster.damagedata.crit-damage|0>"} @self