使用 MythicMobs

如何让 MythicMobs 处理我的自定义生物

如果你想让 MythicMobs 处理你的自定义生物以获得更高级的功能和控制,这真的很容易!

例如,我有以下 MythicMobs 配置:

StaticallyChargedSheep:
  Type: SHEEP
  Display: '&aStatically Charged Sheep'
  Health: 100
  Damage: 2
  Options:
    MovementSpeed: 0.3
  DamageModifiers:
  - LIGHTNING 0
  - FIRE 0.5
  Skills:
  - lightning @LivingInRadius{r=10} ~onTimer:100

打开你创建生物的 ItemsAdder .yml 文件,并像这样编辑 替换规则

        replace_mobs_spawn:
          mob1:
            replace_mythicmob:
              name: StaticallyChargedSheep
              always: true
            type: SHEEP

随机几率

如果你想为你的自定义生物创建自定义生成逻辑,你不应该使用 ItemsAdder 规则,而是使用 Mythicmobs 配置:https://www.mythicmobs.net/manual/doku.php/tutorials/randomspawns

完整示例

ItemsAdder 配置 mobs.yml

Mythicmobs 配置 Mobs\example.yml

Mythicmobs 配置 RandomSpawns\example.yml

Last updated

Was this helpful?