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:
.yml
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.
name
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/randomspawnsarrow-up-right
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
/mythicmobs mobs spawn StaticallyChargedSheep
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
RandomStaticallyChargedSheep: MobType: StaticallyChargedSheep Worlds: world Chance: 0.25 Priority: 1 Action: REPLACE