בשימוש - MythicMobs

How to make MythicMobs handle my custom mob

If you want to make MythicMobs handle your custom mob to have more advanced features and control it's really easy!

For example I have this MythicMobs configuration:

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

Open your ItemsAdder .yml file where you created the mob and to edit the replace rule like this:

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

It's important to set replace_mythicmob name property to your mythicmob name.

Random chance

If you want to create custom spawn logic for your custom mob you must not use ItemsAdder rules, use Mythicmobs configuration: https://www.mythicmobs.net/manual/doku.php/tutorials/randomspawns

Warning:

ItemsAdder eggs and /iasummon command won't work for Mythicmobs custom mobs, you have to spawn them using Mythicmobs command if you want to spawn them manually. /mythicmobs mobs spawn StaticallyChargedSheep

Complete example

ItemsAdder configuration mobs.yml

  glow_squid:
    display_name: "Glow Squid"
    permission: iamobs
    click_in_ia_gui: false
    lore:
      - lore-1-glow_squid
      - lore-life-glow_squid
      - lore-2-glow_squid
      - lore-3-glow_squid
      - lore-4-glow_squid
      - lore-5-glow_squid
    resource:
      generate: false
      model_path: "mob/glow_squid/glow_squid"
    behaviours:
      mob:
        ai: SQUID
        hit_color: ff7e7e
        max_health: 20
        animation:
          walk: glow_squid_walking
        replace_mobs_spawn:
          mob1:
            replace_mythicmob:
              name: StaticallyChargedSheep
              always: true
            type: SHEEP

Mythicmobs configuration Mobs\example.yml

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

Mythicmobs configuration RandomSpawns\example.yml

RandomStaticallyChargedSheep:
  MobType: StaticallyChargedSheep
  Worlds: world
  Chance: 0.25
  Priority: 1
  Action: REPLACE

Last updated