Storm

基本信息

属性 值
类名 atomicstryker.infernalmobs.common.modifiers.MM_Storm
注册名 InfernalMobs:Storm
显示前缀 striking / thundering / electrified
显示后缀 of Lightning / the Raiden
触发机制 onUpdate (有玩家目标)
最小距离 3 格
冷却时间 15000 ms

功能

Storm 词缀让怪物对其视线内的玩家周期性召唤闪电。

要求:

  1. 怪物能看到玩家 (canEntityBeSeen)
  2. 玩家目标位置上方能看到天空(worldObj.canBlockSeeTheSky)
  3. 玩家没在骑乘(ridingEntity == null)
  4. 距离 ≥ 3 格

触发时调用 mob.worldObj.addWeatherEffect(new EntityLightningBolt(...)),在玩家坐标 (posX, posY-1, posZ) 处生成闪电。

触发方式

触发 行为
怪物有可见玩家目标 冷却后召唤闪电
限制 天空可见 + 距离 ≥ 3 + 未骑乘

数值

数值 默认值 配置项
冷却时间(毫秒) 15000 MM_Storm.coolDownMillis
最小距离 3.0 MIN_DISTANCE 源码常量

相关条目